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

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


        entryEditorTree.contextMenu( "New Value" ).click();
        bot.text( "" ).setText( "This is the 2nd description." );
        entryEditorTree.getTreeItem( "objectClass" ).click();

        // edit second value
        entryEditorTree.select( 7 );
        entryEditorTree.contextMenu( "Edit Value" ).click();
        bot.text( "This is the 2nd description." ).setText( "This is the 3rd description." );
        entryEditorTree.getTreeItem( "objectClass" ).click();

        // delete second value
View Full Code Here


        entryEditorTree.contextMenu( "Edit Value" ).click();
        bot.text( "This is the 2nd description." ).setText( "This is the 3rd description." );
        entryEditorTree.getTreeItem( "objectClass" ).click();

        // delete second value
        entryEditorTree.select( 7 );
        entryEditorTree.contextMenu( "Delete Value" ).click();
        bot.shell( "Delete Value" );
        bot.button( "OK" ).click();

        // edit 1st value
View Full Code Here

        entryEditorTree.contextMenu( "Delete Value" ).click();
        bot.shell( "Delete Value" );
        bot.button( "OK" ).click();

        // edit 1st value
        entryEditorTree.select( 6 );
        entryEditorTree.contextMenu( "Edit Value" ).click();
        bot.text( "This is the 1st description." ).setText( "This is the final description." );
        entryEditorTree.getTreeItem( "objectClass" ).click();

        // delete 1st value/attribute
View Full Code Here

        entryEditorTree.contextMenu( "Edit Value" ).click();
        bot.text( "This is the 1st description." ).setText( "This is the final description." );
        entryEditorTree.getTreeItem( "objectClass" ).click();

        // delete 1st value/attribute
        entryEditorTree.select( 6 );
        entryEditorTree.contextMenu( "Delete Value" ).click();
        bot.shell( "Delete Value" );
        bot.button( "OK" ).click();
    }
View Full Code Here

  private void testPushToOrigin(boolean useRemote) throws Exception {
    Activator.getDefault().getRepositoryUtil().addConfiguredRepository(
        clonedRepositoryFile);
    shareProjects(clonedRepositoryFile);
    SWTBotTree tree = getOrOpenView().bot().tree();
    tree.select(0);

    Repository repository = lookupRepository(clonedRepositoryFile);
    // add the configuration for push
    repository.getConfig().setString("remote", "origin", "push",
        "refs/heads/*:refs/remotes/origin/*");
 
View Full Code Here

  }

  @Test
  public void testOpenHistoryMultiSelection() throws Exception {
    SWTBotTree projectExplorerTree = TestUtil.getExplorerTree();
    projectExplorerTree.select(0, 1);
    String menuString = util
        .getPluginLocalizedValue("ShowResourceInHistoryAction_label");
    // Team->show in history must be enabled on a multiple selection
    assertTrue(ContextMenuHelper.isContextMenuItemEnabled(projectExplorerTree, "Team",
          menuString));
View Full Code Here

  }

  @Test
  public void testOpenRepoViewMultiSelection() throws Exception {
    SWTBotTree projectExplorerTree = TestUtil.getExplorerTree();
    projectExplorerTree.select(0, 1);
    String menuString = util
        .getPluginLocalizedValue("ShowRepositoryAction_label");
    // Team->show in repository must be disabled on a multiple selection
    assertFalse(ContextMenuHelper.isContextMenuItemEnabled(projectExplorerTree, "Team",
        menuString));
View Full Code Here

  }

  public static void openWizard(final String... projects) {
    SWTBotTree projectExplorerTree = TestUtil.getExplorerTree();
    SWTBotTreeItem[] items = util.getProjectItems(projectExplorerTree, projects);
    projectExplorerTree.select(items);

    String[] menuPath = new String[] {
        util.getPluginLocalizedValue("TeamMenu.label"),
        util.getPluginLocalizedValue("CreatePatchAction.label") };
    ContextMenuHelper.clickContextMenu(projectExplorerTree, menuPath);
View Full Code Here

  private static final SWTWorkbenchBot bot = new SWTWorkbenchBot();

  public ExistingOrNewPage openWizard(String ... projectNames) {
    SWTBotTree tree = bot.viewByTitle("Package Explorer").bot().tree();

    tree.select(projectNames);
    ContextMenuHelper.clickContextMenu(tree, "Team", "Share Project...");

    bot.table().getTableItem("Git").select();
    bot.button("Next >").click();
View Full Code Here

  private SWTWorkbenchBot  bot  = new SWTWorkbenchBot();

  public void deleteProject(String projectName) throws Exception {
    SWTBotTree tree = tree();
    tree.setFocus();
    tree.select(projectName);
    bot.menu("Edit").menu("Delete").click();
    SWTBotShell shell = bot.shell("Delete Resources");
    shell.activate();
    Button button = bot.widget(widgetOfType(Button.class), shell.widget);
    new SWTBotCheckBox(button).select();
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.