Examples of WaitForEditor


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

   * @since 2.0
   */
  @SuppressWarnings("unchecked")
  public SWTBotEclipseEditor editor(String fileName, int index) throws WidgetNotFoundException {
    Matcher matcher = allOf(instanceOf(IEditorReference.class), withPartName(fileName));
    WaitForEditor waitForView = waitForEditor(matcher);
    waitUntilWidgetAppears(waitForView);
    return new SWTBotEclipseEditor(waitForView.get(index), this);
  }
View Full Code Here

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

   * @throws WidgetNotFoundException if there are errors finding editors.
   */
  @SuppressWarnings("unchecked")
  public List<SWTBotEclipseEditor> editors() throws WidgetNotFoundException {
    Matcher matcher = allOf(instanceOf(IEditorReference.class));
    WaitForEditor waiForEditor = waitForEditor(matcher);
    waitUntilWidgetAppears(waiForEditor);

    List<IEditorReference> editors = waiForEditor.all();
    List<SWTBotEclipseEditor> result = new ArrayList<SWTBotEclipseEditor>(editors.size());

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

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

   * @param matcher the matcher used to find the editor
   * @return an editor that matches the matcher
   * @throws WidgetNotFoundException if the editor is not found
   */
  public SWTBotEditor editor(Matcher<?> matcher) {
    WaitForEditor waitForEditor = waitForEditor(matcher);
    waitUntilWidgetAppears(waitForEditor);
    return new SWTBotEditor(waitForEditor.get(0), this);
  }
View Full Code Here

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

   * @since 2.0
   */
  @SuppressWarnings("unchecked")
  public SWTBotEclipseEditor editor(String fileName, int index) throws WidgetNotFoundException {
    Matcher matcher = allOf(instanceOf(IEditorReference.class), withPartName(fileName));
    WaitForEditor waitForEditor = waitForEditor(matcher);
    waitUntilWidgetAppears(waitForEditor);
    return new SWTBotEclipseEditor(waitForEditor.get(index), this);
  }
View Full Code Here

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

   * @deprecated use {@link SWTWorkbenchBot#editors()}
   */
  @SuppressWarnings("unchecked")
  public List<SWTBotEclipseEditor> editors() throws WidgetNotFoundException {
    Matcher matcher = allOf(instanceOf(IEditorReference.class));
    WaitForEditor waitForEditor = waitForEditor(matcher);
    waitUntilWidgetAppears(waitForEditor);

    List<IEditorReference> editors = waitForEditor.getAllMatches();
    List<SWTBotEclipseEditor> result = new ArrayList<SWTBotEclipseEditor>(editors.size());

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

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

   * @param matcher the matcher used to find the editor
   * @return an editor that matches the matcher
   * @throws WidgetNotFoundException if the editor is not found
   */
  public SWTBotEditor editor(Matcher<IEditorReference> matcher) {
    WaitForEditor waitForEditor = waitForEditor(matcher);
    waitUntilWidgetAppears(waitForEditor);
    return new SWTBotEditor(waitForEditor.get(0), this);
  }
View Full Code Here

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

   */
  @SuppressWarnings("unchecked")
  public SWTBotGefEditor gefEditor(String fileName, int index) throws WidgetNotFoundException {
    Matcher<IEditorReference> withPartName = withPartName(fileName);
    Matcher<IEditorReference> matcher = allOf(IsInstanceOf.instanceOf(IEditorReference.class), withPartName);
    WaitForEditor waitForEditor = waitForEditor(matcher);
    waitUntilWidgetAppears(waitForEditor);
    return createEditor(waitForEditor.get(index), this);
  }
View Full Code Here

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

   * @param matcher the matcher used to find the editor
   * @return an editor that matches the matcher
   * @throws WidgetNotFoundException if the editor is not found
   */
  public SWTBotEditor editor(Matcher<IEditorReference> matcher) {
    WaitForEditor waitForEditor = waitForEditor(matcher);
    waitUntilWidgetAppears(waitForEditor);
    return new SWTBotEditor(waitForEditor.get(0), this);
  }
View Full Code Here

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

   * @param matcher the matcher used to find the editor
   * @return an editor that matches the matcher
   * @throws WidgetNotFoundException if the editor is not found
   */
  public SWTBotMultiPageEditor multipageEditor(Matcher<IEditorReference> matcher) {
    WaitForEditor waitForEditor = waitForEditor(matcher);
    waitUntilWidgetAppears(waitForEditor);
    return new SWTBotMultiPageEditor(waitForEditor.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.