Examples of WaitForPart


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

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

   * @throws WidgetNotFoundException if the views are not found.
   */
  @SuppressWarnings("unchecked")
  public List<SWTBotView> views() throws WidgetNotFoundException {
    Matcher matcher = allOf(instanceOf(IViewReference.class));
    WaitForPart waitForView = waitForPart(matcher);
    waitUntilWidgetAppears(waitForView);

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

    for (IWorkbenchPartReference editor : editors) {
      result.add(new SWTBotView((IViewReference) editor, 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.