Package org.eclipse.swtbot.swt.finder.widgets

Examples of org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem.select()


    // assert 2 children
    item = myRepoViewUtil.getRemotesItem(tree, repositoryFile).expand()
        .getNode("testRemote").expand();
    children = item.getNodes();
    assertEquals(1, children.size());
    item.select();
    ContextMenuHelper.clickContextMenu(tree, myUtil
        .getPluginLocalizedValue("RepoViewRemoveRemote.label"));
    shell = bot.shell(UIText.RepositoriesView_ConfirmDeleteRemoteHeader);
    // Cancel
    shell.bot().button(IDialogConstants.CANCEL_LABEL).click();
View Full Code Here


    refreshAndWait();
    SWTBotTreeItem tagsItem = myRepoViewUtil.getTagsItem(tree,
        repositoryFile).expand();
    SWTBotTreeItem[] items = tagsItem.getItems();
    assertEquals("Wrong number of tags", initialCount + 1, items.length);
    tagsItem.select("Delete1");
    ContextMenuHelper.clickContextMenu(tree,
        myUtil.getPluginLocalizedValue("DeleteTagCommand.name"));
    bot.shell(UIText.DeleteTagCommand_titleConfirm).bot()
        .button(IDialogConstants.OK_LABEL).click();
    TestUtil.joinJobs(JobFamilies.TAG);
View Full Code Here

    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);
View Full Code Here

  public void testContextMenuRepository() throws Exception {
    // We just check if the dialogs open, the actual commit and import projects
    // is tested elsewhere
    SWTBotTree tree = getOrOpenView().bot().tree();
    SWTBotTreeItem item = myRepoViewUtil.getRootItem(tree, repositoryFile);
    item.select();
    assertClickOpens(tree,
        myUtil.getPluginLocalizedValue("RepoViewCommit.label"),
        UIText.CommitDialog_CommitChanges);
    assertClickOpens(tree,
        myUtil.getPluginLocalizedValue("RepoViewImportProjects.label"),
View Full Code Here

   */
  @Test
  public void testShowProperties() throws Exception {
    SWTBotTree tree = getOrOpenView().bot().tree();
    SWTBotTreeItem item = myRepoViewUtil.getRootItem(tree, repositoryFile);
    item.select();
    ContextMenuHelper.clickContextMenuSync(tree,
        myUtil.getPluginLocalizedValue("ShowIn"),
        "Properties");
    SWTBotView propertieView = bot.viewById("org.eclipse.ui.views.PropertySheet");
    assertTrue(propertieView.isActive());
View Full Code Here

    SWTBotTreeItem item = myRepoViewUtil.getRootItem(tree, repositoryFile);
    String wizardTitle = NLS.bind(
        UIText.GitCreateProjectViaWizardWizard_WizardTitle,
        repositoryFile.getPath());
    // start wizard from root item
    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();
View Full Code Here

    SWTBotTreeItem project1 = getProjectItem(packageExplorer, PROJ1)
        .select();

    SWTBotTreeItem folderNode = project1.expand().getNode(FOLDER);
    SWTBotTreeItem fileNode = folderNode.expand().getNode(FILE1);
    fileNode.select();
    ContextMenuHelper.clickContextMenu(packageExplorer,
        util.getPluginLocalizedValue("TeamMenu.label"),
        util.getPluginLocalizedValue("MergeToolAction.label"));

    CompareEditorTester compareEditor = CompareEditorTester
View Full Code Here

    egitRoot.collapse();
    egitRoot.expand();
    SWTBotTreeItem remoteBranch = egitRoot.expandNode("Branches")
        .expandNode("Remote Branches");
    SWTBotTreeItem branchNode = remoteBranch.getNode("origin/stable-0.7");
    branchNode.select();
    branchNode.contextMenu("Synchronize").click();

    // when

    // then
View Full Code Here

        .showView(RepositoriesView.VIEW_ID);
    SWTBotTree tree = repositoriesView.bot().tree();

    SWTBotTreeItem repoNode = repoViewUtil
        .getRootItem(tree, repositoryFile);
    repoNode.select();
  }
}
View Full Code Here

    bot.sleep(1000);
    bot.menu("Window").menu("Show View").menu("Other...").click();
    bot.shell("Show View").activate();
    SWTBotTree tree = bot.tree();
    SWTBotTreeItem expandNode = tree.expandNode("SWTBot Test Category");
    expandNode.select("SWTBot Test View").click();
    bot.button("OK").click();
    bot.viewByTitle("SWTBot Test View").show();
  }

  @Test
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.