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

Examples of org.eclipse.swtbot.eclipse.finder.widgets.SWTBotView


  public List<SWTBotView> views(Matcher<?> matcher) {
    List<IViewReference> views = workbenchContentsFinder.findViews(matcher);

    List<SWTBotView> viewBots = new ArrayList<SWTBotView>();
    for (IViewReference viewReference : views)
      viewBots.add(new SWTBotView(viewReference, this));
    return viewBots;
  }
View Full Code Here


   */
  public SWTBotView activeView() {
    IViewReference view = workbenchContentsFinder.findActiveView();
    if (view == null)
      throw new WidgetNotFoundException("There is no active view"); //$NON-NLS-1$
    return new SWTBotView(view, this);
  }
View Full Code Here

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

        Tree tree = ( Tree ) bot.widget( widgetOfType( Tree.class ), view.getWidget() );
        return new SWTBotTree( tree );
    }
View Full Code Here

     * @throws Exception
     *             the exception
     */
    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


    public BrowserViewBot()
    {
        bot = new SWTWorkbenchBot();
        SWTBotView view = bot.viewByTitle( "LDAP Browser" );
        view.show();

        browserBot = new BrowserWidgetBot( view.bot() );
    }
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 SWTBotTree getConnectionsTree()
    {
        SWTBotView view = bot.viewByTitle( "Connections" );
        view.show();
        SWTBotTree tree = view.bot().tree();
        return tree;
    }
View Full Code Here

                UITestConstants.MOUSE_CLICK_ACTIVATION);

        pressApplyButton();
        closePreferencesDialog();

        SWTBotView log4jView = BOT.viewByTitle("Log4j-Viewer");
        log4jView.show();
        log4jView.setFocus();

        Composite log4jViewComposite = (Composite) log4jView.getWidget();

        Matcher matcher = instanceOf(Table.class);
        SWTBotTable mainViewTable = new SWTBotTable((Table) BOT.widget(matcher, log4jViewComposite));

        // TODO: Invalid thread access here
View Full Code Here

        pressMoveDownButton();
        pressApplyButton();

        closePreferencesDialog();

        SWTBotView log4jView = BOT.viewByTitle("Log4j-Viewer");
        log4jView.show();
        log4jView.setFocus();

        Composite log4jViewComposite = (Composite) log4jView.getWidget();

        Matcher matcher = instanceOf(Table.class);
        SWTBotTable mainViewTable = new SWTBotTable((Table) BOT.widget(matcher, log4jViewComposite));

        String firstColumnName = mainViewTable.columns().get(0);
View Full Code Here


    public BrowserViewBot()
    {
        bot = new SWTWorkbenchBot();
        SWTBotView view = bot.viewByTitle( "LDAP Browser" );
        view.show();

        browserBot = new BrowserWidgetBot( view.bot() );
    }
View Full Code Here

TOP

Related Classes of org.eclipse.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.