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

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


        "Git Repositories").doubleClick();

    SWTBotTree repositoriesTree = bot.viewByTitle("Git Repositories").bot()
        .tree();
    SWTBotTreeItem egitRoot = repositoriesTree.getAllItems()[0];
    egitRoot.expand();
    egitRoot.collapse();
    egitRoot.expand();
    SWTBotTreeItem remoteBranch = egitRoot.expandNode("Branches")
        .expandNode("Remote Branches");
    SWTBotTreeItem branchNode = remoteBranch.getNode("origin/stable-0.7");
View Full Code Here


    SWTBotTree repositoriesTree = bot.viewByTitle("Git Repositories").bot()
        .tree();
    SWTBotTreeItem egitRoot = repositoriesTree.getAllItems()[0];
    egitRoot.expand();
    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();
View Full Code Here

  }

  private void getGitConfigurationPreferencePage() {
    preferencePage = new Eclipse().openPreferencePage(preferencePage);
    SWTBotTreeItem team = preferencePage.bot().tree().getTreeItem("Team");
    team.expand()
        .getNode(util.getPluginLocalizedValue("GitPreferences_name"))
        .expand()
        .getNode(util.getPluginLocalizedValue("ConfigurationPage.name"))
        .select();
  }
View Full Code Here

    launchSynchronization(INITIAL_TAG, HEAD, true);

    // then
    SWTBotTree syncViewTree = bot.viewByTitle("Synchronize").bot().tree();
    SWTBotTreeItem projectTree = waitForNodeWithText(syncViewTree, PROJ1);
    projectTree.expand();
    assertEquals(1, projectTree.getItems().length);
  }

  @Test
  public void shouldRefreshSyncResultAfterWorkspaceChange() throws Exception {
View Full Code Here

    // then
    SWTBotTree syncViewTree = bot.viewByTitle("Synchronize").bot().tree();
    SWTBotTreeItem workingTree = syncViewTree.expandNode(PROJ1);
    assertEquals(1, syncViewTree.getAllItems().length);
    workingTree.expand().getNode(name).doubleClick();

    SWTBotEditor editor = bot.editorByTitle(name);
    editor.setFocus();

    // the WidgetNotFoundException will be thrown when widget with given content cannot be not found
View Full Code Here

        .select()
        .expand()
        .getNode(
            UIText.RepositoriesViewLabelProvider_SubmodulesNodeText);
    assertNotNull(submodules);
    submodules.expand();
    assertEquals(1, submodules.rowCount());
  }
}
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.