Package net.sf.swtbot.eclipse.finder.widgets

Examples of net.sf.swtbot.eclipse.finder.widgets.SWTBotView


    }


    public static SWTBotTree getConnectionsTree( SWTEclipseBot bot ) throws Exception
    {
        SWTBotView view = bot.view( "Connections" );
        view.show();
        SWTBotTree connectionsTree = bot.tree( 0 );
        return connectionsTree;
    }
View Full Code Here


    }


    public static SWTBotTree getLdapBrowserTree( SWTEclipseBot bot ) throws Exception
    {
        SWTBotView view = bot.view( "LDAP Browser" );
        view.show();
        SWTBotTree browserTree = bot.tree( 1 );
        return browserTree;
    }
View Full Code Here

   * @param name the name of the view.
   * @return a view with the specified label.
   * @throws WidgetNotFoundException if the view is not found.
   */
  public SWTBotView view(String name) throws WidgetNotFoundException {
    return new SWTBotView(finder, name);
  }
View Full Code Here

    List views = SWTBotView.findViews();

    List result = new ArrayList(views.size());
    for (Iterator iterator = views.iterator(); iterator.hasNext();) {
      IViewReference viewReference = (IViewReference) iterator.next();
      result.add(new SWTBotView(viewReference));
    }
    return result;
  }
View Full Code Here

     *
     * @throws Exception the exception
     */
    public static SWTBotTree getConnectionsTree( SWTEclipseBot bot ) throws Exception
    {
        SWTBotView view = bot.view( "Connections" );
        view.show();

        List<Tree> findControls = new ControlFinder().findControls( view.widget, new ClassMatcher( Tree.class ), true );
        if ( findControls.isEmpty() )
        {
            throw new WidgetNotFoundException( "Could not find Connections tree" );
View Full Code Here

     *
     * @throws Exception the exception
     */
    public static SWTBotTree getLdapBrowserTree( SWTEclipseBot bot ) throws Exception
    {
        SWTBotView view = bot.view( "LDAP Browser" );
        view.show();

        List<Tree> findControls = new ControlFinder().findControls( view.widget, new ClassMatcher( Tree.class ), true );
        if ( findControls.isEmpty() )
        {
            throw new WidgetNotFoundException( "Could not find LDAP Browser tree" );
View Full Code Here

                        IEditorPart editor = editorReference.getEditor( true );
                        editorReference.getPage().activate( editor );
                    }
                } );

                final SWTBotView editor = new SWTBotView( editorReference );
                List<Tree> findControls = new ControlFinder().findControls( editor.widget,
                    new ClassMatcher( Tree.class ), true );
                if ( findControls.isEmpty() )
                {
                    throw new WidgetNotFoundException( "Could not find Entry Editor tree" );
View Full Code Here

   * @param name the name of the view.
   * @return a view with the specified label.
   * @throws WidgetNotFoundException if the view is not found.
   */
  public SWTBotView view(String name) throws WidgetNotFoundException {
    return new SWTBotView(finder, name);
  }
View Full Code Here

    List editors = SWTBotView.findViews();

    List result = new ArrayList(editors.size());
    for (Iterator iterator = editors.iterator(); iterator.hasNext();) {
      IViewReference viewReference = (IViewReference) iterator.next();
      result.add(new SWTBotView(viewReference));
    }
    return result;
  }
View Full Code Here

TOP

Related Classes of net.sf.swtbot.eclipse.finder.widgets.SWTBotView

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.