Examples of expandNode()


Examples of org.eclipse.swtbot.swt.finder.widgets.SWTBotTree.expandNode()

  private void setupProjectDependency(String projectName) {
    bot.menu("Window").menu("Show View").menu("Navigator").click();
    SWTBot localBot = bot.viewByTitle("Navigator").bot();
    SWTBotTree tree = localBot.tree();
    SWTBotTreeItem node = tree.expandNode(projectName + "Test");
    node = node.expandNode(".classpath").select();

    final SWTBotContextMenu cmenu = new SWTBotContextMenu(tree);
    bot.performWithTimeout(new VoidResult() {
View Full Code Here

Examples of org.eclipse.swtbot.swt.finder.widgets.SWTBotTree.expandNode()

  }
  /** Test if a project exists by checking the Package Explorer View */
  public static void assertProjectExists(SWTWorkbenchBot bot, String projectName) {
    SWTBotView packageExplorer = bot.viewByTitle("Package Explorer");
    SWTBotTree projectsTree = packageExplorer.bot().tree();
    projectsTree.expandNode(projectName);
  }
 
  /**************************************************************************
   * TESTS                                                                  *
   **************************************************************************/
 
View Full Code Here

Examples of org.eclipse.swtbot.swt.finder.widgets.SWTBotTree.expandNode()

        .button(UIText.CreateBranchPage_SourceSelectButton).click();

    SWTBotShell sourceSelectionDialog = bot
        .shell(UIText.CreateBranchPage_SourceSelectionDialogTitle);
    SWTBotTree tree = sourceSelectionDialog.bot().tree();
    SWTBotTreeItem tags = tree
        .expandNode(UIText.RepositoriesViewLabelProvider_TagsNodeText);
    TestUtil.getChildNode(tags, "SomeTag").select();
    sourceSelectionDialog.bot().button(IDialogConstants.OK_LABEL).click();

    SWTBotLabel sourceLabel = createBranchDialog.bot().label(3);
View Full Code Here

Examples of org.eclipse.swtbot.swt.finder.widgets.SWTBotTree.expandNode()

    // when
    launchSynchronization(INITIAL_TAG, HEAD, true);

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

  @Test @Ignore// workspace model dosn't show non-workspace files ... yet ;)
View Full Code Here

Examples of org.eclipse.swtbot.swt.finder.widgets.SWTBotTree.expandNode()

    // when
    launchSynchronization(INITIAL_TAG, HEAD, true);

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

Examples of org.eclipse.swtbot.swt.finder.widgets.SWTBotTree.expandNode()

  }

  @Test
  public void MyMailBoxContainsDrafts() throws Exception {
    SWTBotTree mailbox = mailBox();
    SWTBotTreeItem myMailBox = mailbox.expandNode("me@this.com");
    assertTrue(myMailBox.getNodes().contains("Drafts"));
  }

  // oops this fails
  @Test
View Full Code Here

Examples of org.eclipse.swtbot.swt.finder.widgets.SWTBotTree.expandNode()

  // oops this fails
  @Test
  public void OtherMailBoxContainsDrafts() throws Exception {
    SWTBotTree mailbox = mailBox();
    SWTBotTreeItem otherMailBox = mailbox.expandNode("other@aol.com");
    assertTrue(otherMailBox.getNodes().contains("Drafts"));
  }

  private SWTBotTree mailBox() throws WidgetNotFoundException {
    // find the tree
View Full Code Here

Examples of org.eclipse.swtbot.swt.finder.widgets.SWTBotTree.expandNode()

  private void openSWTBotTestView() throws Exception {
    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();
  }
View Full Code Here

Examples of org.eclipse.swtbot.swt.finder.widgets.SWTBotTree.expandNode()

    SWTBotShell shell = bot.shell("New");
    shell.activate();
   
   
      SWTBotTree wizardTree = bot.tree();
      wizardTree.expandNode("Examples").expandNode("GEF (Graphical Editing Framework)").expandNode("Logic M Diagram").select();
      bot.button("Next >").click();
   
      SWTBotTree projectSelectionTree = bot.tree();
      projectSelectionTree.select(projectName);
     
View Full Code Here

Examples of org.eclipse.swtbot.swt.finder.widgets.SWTBotTree.expandNode()

    SWTBotShell shell = bot.shell("New");
    shell.activate();
   
   
      SWTBotTree wizardTree = bot.tree();
      wizardTree.expandNode("Examples").expandNode("GEF (Graphical Editing Framework)").select("Logic Diagram");
      bot.button("Next >").click();
   
      SWTBotTree projectSelectionTree = bot.tree();
      projectSelectionTree.select(projectName);
     
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.