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

Examples of org.eclipse.swtbot.swt.finder.widgets.SWTBotTree


    private SWTBotTree getConnectionsTree()
    {
        SWTBotView view = bot.viewByTitle( "Connections" );
        view.show();
        SWTBotTree tree = view.bot().tree();
        return tree;
    }
View Full Code Here


    }


    private SWTBotTreeItem getEntry( String... path )
    {
        SWTBotTree browserTree = bot.tree();
        List<String> pathList = new ArrayList<String>( Arrays.asList( path ) );
        SWTBotTreeItem entry = null;

        while ( !pathList.isEmpty() )
        {
            String node = pathList.remove( 0 );

            if ( entry == null )
            {
                node = adjustNodeName( browserTree, node );
                entry = browserTree.getTreeItem( node );
            }
            else
            {
                // adjust current path, because the label is decorated with the
                // number of children
View Full Code Here

    private SWTBotTree getConnectionsTree()
    {
        SWTBotView view = bot.viewByTitle( "Connections" );
        view.show();
        SWTBotTree tree = view.bot().tree();
        return tree;
    }
View Full Code Here

     * Opens the "Additional" preferences page.
     */
    protected static void openAdditionalPreferencesPage() {
        bot.menu("Window").menu("Preferences").click();

        SWTBotTree tree = bot.tree();

        SWTBotTreeItem item = tree.getTreeItem("Log4j-Viewer");
        item.doubleClick(); // click "Log4j-Viewer"

        // Filters menu item
        SWTBotTreeItem additionalItem = item.getNode("Additional");
        additionalItem.doubleClick(); // click "Additional"
View Full Code Here

     * Opens the "Filters" preferences page.
     */
    protected static void openFiltersPreferencesPage() {
        bot.menu("Window").menu("Preferences").click();

        SWTBotTree tree = bot.tree();

        // Log4j-Viewer menu item
        SWTBotTreeItem item = tree.getTreeItem("Log4j-Viewer");
        item.doubleClick();

        SWTBotTreeItem filtersItem = item.getNode("Filters");
        filtersItem.doubleClick();
    }
View Full Code Here

    private SWTBotTree getConnectionsTree()
    {
        SWTBotView view = bot.viewByTitle( "Connections" );
        view.show();
        SWTBotTree tree = view.bot().tree();
        return tree;
    }
View Full Code Here

    }


    private SWTBotTreeItem getEntry( String... path )
    {
        SWTBotTree browserTree = bot.tree();
        List<String> pathList = new ArrayList<String>( Arrays.asList( path ) );
        SWTBotTreeItem entry = null;

        while ( !pathList.isEmpty() )
        {
            String node = pathList.remove( 0 );

            if ( entry == null )
            {
                node = adjustNodeName( browserTree, node );
                entry = browserTree.getTreeItem( node );
            }
            else
            {
                // adjust current path, because the label is decorated with the
                // number of children
View Full Code Here

    }


    List<String> getAttributeValues()
    {
        SWTBotTree tree = bot.tree();
        List<String> attributes = new ArrayList<String>();
        int rowCount = tree.rowCount();
        for ( int i = 0; i < rowCount; i++ )
        {
            String attribute = tree.cell( i, 0 );
            String value = tree.cell( i, 1 );
            attributes.add( attribute + ": " + value );
        }
        return attributes;
    }
View Full Code Here

    }


    void cancelEditValue()
    {
        SWTBotTree tree = bot.tree( 0 );
        tree.getTreeItem( "objectClass" ).click();
    }
View Full Code Here

    }


    void addValue( String attributeType )
    {
        SWTBotTree tree = bot.tree();
        tree.getTreeItem( attributeType ).click();
        ContextMenuHelper.clickContextMenu( bot.tree(), "New Value" );
    }
View Full Code Here

TOP

Related Classes of org.eclipse.swtbot.swt.finder.widgets.SWTBotTree

Copyright © 2018 www.massapicom. 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.