Examples of WaitForView


Examples of org.eclipse.swtbot.eclipse.finder.waits.WaitForView

   * @param matcher the matcher used to match views
   * @return views that match the matcher
   * @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.waits.WaitForView

   * @since 2.0
   */
  @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.waits.WaitForView

   * @deprecated use {@link SWTWorkbenchBot#views()}
   */
  @SuppressWarnings("unchecked")
  public List<SWTBotView> views() throws WidgetNotFoundException {
    Matcher matcher = allOf(instanceOf(IViewReference.class));
    WaitForView waitForView = waitForView(matcher);
    waitUntilWidgetAppears(waitForView);

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

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

Examples of org.eclipse.swtbot.eclipse.finder.waits.WaitForView

   * @param matcher the matcher used to match views
   * @return views that match the matcher
   * @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.waits.WaitForView

   */
  @SuppressWarnings("unchecked")
  public SWTBotGefView gefView(String viewName, int index) throws WidgetNotFoundException {
    Matcher<IViewReference> withPartName = withPartName(viewName);
    Matcher<IViewReference> matcher = allOf(IsInstanceOf.instanceOf(IViewReference.class), withPartName);
    WaitForView waitForView = waitForView(matcher);
    waitUntilWidgetAppears(waitForView);
    return createView(waitForView.get(index), this);
  }
View Full Code Here

Examples of org.eclipse.swtbot.eclipse.finder.waits.WaitForView

   * @param matcher the matcher used to match views
   * @return views that match the matcher
   * @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
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.