Examples of contextMenu()


Examples of net.sf.swtbot.widgets.SWTBotTree.contextMenu()

            }
        } );

        // edit 1st value
        entryEditorTree.select( 6 );
        SWTBotUtils.asyncClick( bot, entryEditorTree.contextMenu( "Edit Value" ), new DefaultCondition()
        {
            public boolean test() throws Exception
            {
                return bot.text( "This is the 1st description." ) != null;
            }
View Full Code Here

Examples of net.sf.swtbot.widgets.SWTBotTree.contextMenu()

        // Select "Connections" view, ensure no connections exists yet
        SWTBotTree connectionsTree = SWTBotUtils.getConnectionsTree( bot );
        assertEquals( 0, connectionsTree.rowCount() );

        // open "New Connection" wizard
        SWTBotMenu newConnectionMenu = connectionsTree.contextMenu( "New Connection..." );
        newConnectionMenu.click();

        // get buttons
        SWTBotButton backButton = bot.button( "< Back" );
        SWTBotButton nextButton = bot.button( "Next >" );
View Full Code Here

Examples of net.sf.swtbot.widgets.SWTBotTree.contextMenu()

        // ensure connection is visible in Connections view
        assertEquals( 1, connectionsTree.rowCount() );

        // close connection
        connectionsTree.select( "NewConnectionWizardTest" );
        SWTBotMenu contextMenu = connectionsTree.contextMenu( "Close Connection" );
        contextMenu.click();
    }


    /**
 
View Full Code Here

Examples of net.sf.swtbot.widgets.SWTBotTree.contextMenu()

        // Select "Connections" view, ensure no connections exists yet
        SWTBotTree connectionsTree = SWTBotUtils.getConnectionsTree( bot );
        assertEquals( 0, connectionsTree.rowCount() );

        // open "New Connection" wizard
        SWTBotMenu newConnectionMenu = connectionsTree.contextMenu( "New Connection..." );
        newConnectionMenu.click();

        // enter connection parameter
        SWTBotText connText = bot.textWithLabel( "Connection name:" );
        connText.setText( "NewConnectionWizardTest" );
View Full Code Here

Examples of net.sf.swtbot.widgets.SWTBotTree.contextMenu()

        // Select "Connections" view, ensure no connections exists yet
        SWTBotTree connectionsTree = SWTBotUtils.getConnectionsTree( bot );
        assertEquals( 0, connectionsTree.rowCount() );

        // open "New Connection" wizard
        SWTBotMenu newConnectionMenu = connectionsTree.contextMenu( "New Connection..." );
        newConnectionMenu.click();

        // enter connection parameter
        SWTBotText connText = bot.textWithLabel( "Connection name:" );
        connText.setText( "NewConnectionWizardTest" );
View Full Code Here

Examples of net.sf.swtbot.widgets.SWTBotTree.contextMenu()

        SWTBotUtils.selectEntry( bot, browserTree, false, "DIT", "Root DSE", "ou=system", "ou=users",
            "cn=Barbara Jensen+uid=bjensen" );

        bot.sleep( 2000 );
        SWTBotMenu contextMenu = browserTree.contextMenu( "Rename Entry..." );
        contextMenu.click();

        bot.text( "Barbara Jensen" ).setText( "Babs Jensen" );
        bot.text( "bjensen" ).setText( "babsjens" );
        bot.button( "OK" ).click();
View Full Code Here

Examples of org.eclipse.swtbot.swt.finder.widgets.SWTBotTable.contextMenu()

    SWTBot viewBot = getHistoryViewBot();
    SWTBotTable fileDiffTable = viewBot.table(1);
    assertEquals(1, fileDiffTable.rowCount());

    fileDiffTable.select(0);
    assertFalse(fileDiffTable.contextMenu(
        UIText.CommitFileDiffViewer_OpenInEditorMenuLabel).isEnabled());
    fileDiffTable.contextMenu(
        UIText.CommitFileDiffViewer_OpenPreviousInEditorMenuLabel)
        .click();
View Full Code Here

Examples of org.eclipse.swtbot.swt.finder.widgets.SWTBotTable.contextMenu()

    assertEquals(1, fileDiffTable.rowCount());

    fileDiffTable.select(0);
    assertFalse(fileDiffTable.contextMenu(
        UIText.CommitFileDiffViewer_OpenInEditorMenuLabel).isEnabled());
    fileDiffTable.contextMenu(
        UIText.CommitFileDiffViewer_OpenPreviousInEditorMenuLabel)
        .click();

    // Editor for old file version should be opened
    bot.editorByTitle(FILE1 + " " + commit.getParent(0).getName());
View Full Code Here

Examples of org.eclipse.swtbot.swt.finder.widgets.SWTBotTableItem.contextMenu()

    Repository repo = lookupRepository(repoFile);
    Ref stable = repo.getRef("stable");
    SWTBotTable table = getHistoryViewTable(PROJ1);
    SWTBotTableItem stableItem = getTableItemWithId(table, stable.getObjectId());

    stableItem.contextMenu(UIText.GitHistoryPage_rebaseMenuItem).click();
    TestUtil.joinJobs(JobFamilies.REBASE);
  }

  private RevCommit[] checkoutLine(final SWTBotTable table, int line)
      throws InterruptedException {
View Full Code Here

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

        final SWTBotTree entryEditorTree = SWTBotUtils.getEntryEditorTree( bot, "cn=Barbara Jensen,ou=users,ou=system" );
        entryEditorTree.setFocus();

        // add description attribute
        entryEditorTree.contextMenu( "New Attribute..." ).click();
        bot.comboBoxWithLabel( "Attribute type:" ).setText( "description" );
        bot.button( "Finish" ).click();
        bot.text( "" ).setText( "This is the 1st description." );
        entryEditorTree.getTreeItem( "objectClass" ).click();
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.