item.select();
ContextMenuHelper.clickContextMenu(tree, myUtil
.getPluginLocalizedValue("ImportProjectsCommand"));
SWTBotShell shell = bot.shell(wizardTitle);
bot.radio(UIText.GitSelectWizardPage_ImportExistingButton).click();
TableCollection selected = shell.bot().tree().selection();
String wizardNode = selected.get(0, 0);
// wizard directory should be working dir
assertEquals(myRepoViewUtil.getWorkdirItem(tree, repositoryFile)
.getText(), wizardNode);
shell.close();
// start wizard from .git
myRepoViewUtil.getWorkdirItem(tree, repositoryFile).expand().getNode(
Constants.DOT_GIT).select();
ContextMenuHelper.clickContextMenu(tree, myUtil
.getPluginLocalizedValue("ImportProjectsCommand"));
shell = bot.shell(wizardTitle);
selected = shell.bot().tree().selection();
wizardNode = selected.get(0, 0);
// wizard directory should be .git
assertEquals(Constants.DOT_GIT, wizardNode);
shell.bot().button(IDialogConstants.NEXT_LABEL).click();
shell.bot().label("Import Projects"); // wait for import projects page
assertEquals(0, shell.bot().tree().getAllItems().length);