.expand().rowCount();
createTag("Delete2", "The first tag");
createTag("Delete3", "The second tag");
refreshAndWait();
SWTBotTreeItem tagsItem = myRepoViewUtil.getTagsItem(tree,
repositoryFile).expand();
SWTBotTreeItem[] items = tagsItem.getItems();
assertEquals("Wrong number of tags", initialCount + 2, items.length);
tagsItem.select("Delete2", "Delete3");
ContextMenuHelper.clickContextMenu(tree,
myUtil.getPluginLocalizedValue("DeleteTagCommand.name"));
bot.shell(UIText.DeleteTagCommand_titleConfirm).bot()
.button(IDialogConstants.OK_LABEL).click();
TestUtil.joinJobs(JobFamilies.TAG);
refreshAndWait();
tagsItem = myRepoViewUtil.getTagsItem(tree, repositoryFile).expand();
items = tagsItem.getItems();
assertEquals("Wrong number of tags", initialCount, items.length);
}