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

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


            public boolean test() throws Exception
            {
                if ( nextName != null )
                {
                    String adjustedNodeName = nextName != null ? adjustNodeName( entry, nextName ) : null;
                    SWTBotTreeItem node = entry.getNode( adjustedNodeName );
                    if ( node == null )
                    {
                        return false;
                    }
                }
View Full Code Here


    }


    void selectEntry( String... path )
    {
        SWTBotTreeItem entry = getEntry( path );
        select( entry );
    }
View Full Code Here

    }


    void selectChildrenOfEnty( String[] children, String... path )
    {
        SWTBotTreeItem entry = getEntry( path );
        entry.select( children );
    }
View Full Code Here

    }


    ReferralDialogBot selectEntryExpectingReferralDialog( String... path )
    {
        SWTBotTreeItem entry = getEntry( path );
        select( entry );
        return new ReferralDialogBot();
    }
View Full Code Here

    }


    void expandEntry( String... path )
    {
        SWTBotTreeItem entry = getEntry( path );
        expand( entry, true, null );
    }
View Full Code Here

    }


    ReferralDialogBot expandEntryExpectingReferralDialog( String... path )
    {
        SWTBotTreeItem entry = getEntry( path );
        expand( entry, false, null );
        return new ReferralDialogBot();
    }
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
                node = adjustNodeName( entry, node );
                entry = entry.getNode( node );
            }

            if ( !pathList.isEmpty() )
            {
                // expand entry and wait till
View Full Code Here

    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

        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

      public List<SWTBotTreeItem> run() {
        TreeItem[] items = widget.getSelection();
        List<SWTBotTreeItem> results  = new ArrayList<SWTBotTreeItem>();
        if(items != null){
          for(TreeItem item : items){
            results.add(new SWTBotTreeItem(item));
          }

        }
        return results;
      }
View Full Code Here

TOP

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

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.