Examples of SWTBotView


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

  @SuppressWarnings("unchecked")
  public SWTBotView view(String label, int index) throws WidgetNotFoundException {
    Matcher matcher = allOf(instanceOf(IViewReference.class), withPartName(label));
    WaitForPart waitForView = waitForPart(matcher);
    waitUntilWidgetAppears(waitForView);
    return new SWTBotView(waitForView.get(index), this);
  }
View Full Code Here

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

    List<IViewReference> editors = waitForView.all();
    List<SWTBotView> result = new ArrayList<SWTBotView>(editors.size());

    for (IWorkbenchPartReference editor : editors) {
      result.add(new SWTBotView((IViewReference) editor, this));
    }
    return result;
  }
View Full Code Here

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

   * @throws WidgetNotFoundException if the view is not found
   */
  public SWTBotView view(Matcher<?> matcher) {
    WaitForView waitForView = waitForView(matcher);
    waitUntilWidgetAppears(waitForView);
    return new SWTBotView(waitForView.get(0), this);
  }
View Full Code Here

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

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

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

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

    }


    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.eclipse.finder.widgets.SWTBotView

  @SuppressWarnings("unchecked")
  public SWTBotView view(String label, int index) throws WidgetNotFoundException {
    Matcher matcher = allOf(instanceOf(IViewReference.class), withPartName(label));
    WaitForView waitForView = waitForView(matcher);
    waitUntilWidgetAppears(waitForView);
    return new SWTBotView(waitForView.get(index), this);
  }
View Full Code Here

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

    List<IViewReference> editors = waitForView.getAllMatches();
    List<SWTBotView> result = new ArrayList<SWTBotView>(editors.size());

    for (IWorkbenchPartReference editor : editors) {
      result.add(new SWTBotView((IViewReference) editor, this));
    }
    return result;
  }
View Full Code Here

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

   * @throws WidgetNotFoundException if the view is not found
   */
  public SWTBotView view(Matcher<IViewReference> matcher) {
    WaitForView waitForView = waitForView(matcher);
    waitUntilWidgetAppears(waitForView);
    return new SWTBotView(waitForView.get(0), this);
  }
View Full Code Here

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