void (WatchNode node) { int index = getIndex(node); if (inlinesRootNodeIsShown()) { index--; } if (index < getWatchChildren().size() - 1) { ContainerUtil.swapElements(getWatchChildren(), index, index + 1); } fireNodeStructureChanged(); int selectionRow = inlinesRootNodeIsShown() ? index + 2 : index + 1; getTree().setSelectionRow(selectionRow); }