Examples of SWTBotTree


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

   * @return a {@link SWTBotTree} with the specified <code>value</code>.
   */
  @SuppressWarnings("unchecked")
  public SWTBotTree treeWithId(String value, int index) {
    Matcher matcher = allOf(widgetOfType(Tree.class), withId(value));
    return new SWTBotTree((Tree) widget(matcher, index), matcher);
  }
View Full Code Here

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

    public static SWTBotTree getLdapBrowserTree( SWTWorkbenchBot bot )
    {
        SWTBotView view = bot.viewByTitle( "LDAP Browser" );
        view.show();
        Tree tree = ( Tree ) bot.widget( widgetOfType( Tree.class ), view.getWidget() );
        return new SWTBotTree( tree );
    }
View Full Code Here

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

   * @return a {@link SWTBotTree} with the specified <code>inGroup</code>.
   */
  @SuppressWarnings("unchecked")
  public SWTBotTree treeInGroup(String inGroup, int index) {
    Matcher matcher = allOf(widgetOfType(Tree.class), inGroup(inGroup));
    return new SWTBotTree((Tree) widget(matcher, index), matcher);
  }
View Full Code Here

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

   * @return a {@link SWTBotTree} with the specified <code>none</code>.
   */
  @SuppressWarnings("unchecked")
  public SWTBotTree tree(int index) {
    Matcher matcher = allOf(widgetOfType(Tree.class));
    return new SWTBotTree((Tree) widget(matcher, index), matcher);
  }
View Full Code Here

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

     *             the exception
     */
    public static SWTBotTree getEntryEditorTree( final SWTWorkbenchBot bot, String title ) throws Exception
    {
        SWTBotEditor editor = bot.editorByTitle( title );
        SWTBotTree tree = editor.bot().tree();
        return tree;
    }
View Full Code Here

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

   * @return a {@link SWTBotTree} with the specified <code>label</code> with the specified <code>inGroup</code>.
   */
  @SuppressWarnings("unchecked")
  public SWTBotTree treeWithLabelInGroup(String label, String inGroup, int index) {
    Matcher matcher = allOf(widgetOfType(Tree.class), withLabel(label), inGroup(inGroup));
    return new SWTBotTree((Tree) widget(matcher, index), matcher);
  }
View Full Code Here

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

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

    }


    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

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

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

     * 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
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.