SWTBotTree tree = getOrOpenView().bot().tree();
myRepoViewUtil.getRootItem(tree, repositoryFile).select();
// the selection should be root
assertTrue(tree.selection().get(0, 0).startsWith(REPO1));
SWTBotView view = TestUtil.showExplorerView();
SWTBotTree projectExplorerTree = view.bot().tree();
SWTBotTreeItem item = getProjectItem(projectExplorerTree, PROJ1)
.expand().getNode(FOLDER).expand().getNode(FILE1);
view.show();
item.doubleClick();
item = getProjectItem(projectExplorerTree, PROJ1).expand()
.getNode(FOLDER).expand().getNode(FILE2);
view.show();
item.doubleClick();
// now we should have two editors
// the selection should be still be root
assertTrue(tree.selection().get(0, 0).startsWith(REPO1));