Examples of SWTBotEditor


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

   * @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.widgets.SWTBotEditor

  public List<SWTBotEditor> editors(Matcher<?> matcher) {
    List<IEditorReference> editors = workbenchContentsFinder.findEditors(matcher);

    List<SWTBotEditor> editorBots = new ArrayList<SWTBotEditor>();
    for (IEditorReference editorReference : editors)
      editorBots.add(new SWTBotEditor(editorReference, this));

    return editorBots;
  }
View Full Code Here

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

   */
  public SWTBotEditor activeEditor() {
    IEditorReference editor = workbenchContentsFinder.findActiveEditor();
    if (editor == null)
      throw new WidgetNotFoundException("There is no active editor"); //$NON-NLS-1$
    return new SWTBotEditor(editor, this);
  }
View Full Code Here

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

   * @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.widgets.SWTBotEditor

  public List<SWTBotEditor> editors(Matcher<?> matcher) {
    List<IEditorReference> editors = workbenchContentsFinder.findEditors(matcher);

    List<SWTBotEditor> editorBots = new ArrayList<SWTBotEditor>();
    for (IEditorReference editorReference : editors)
      editorBots.add(new SWTBotEditor(editorReference, this));

    return editorBots;
  }
View Full Code Here

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

   */
  public SWTBotEditor activeEditor() {
    IEditorReference editor = workbenchContentsFinder.findActiveEditor();
    if (editor == null)
      throw new WidgetNotFoundException("There is no active editor"); //$NON-NLS-1$
    return new SWTBotEditor(editor, this);
  }
View Full Code Here

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

     * @throws Exception
     *             the exception
     */
    public static SWTBotTree getEntryEditorTree( final SWTWorkbenchBot bot, String title ) throws Exception
    {
        SWTBotEditor editor = bot.editorByTitle( title );
        SWTBotTree tree = editor.bot().tree();
        return tree;
    }
View Full Code Here

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

  @SuppressWarnings({ "unchecked", "rawtypes" })
  private void setTextInActiveEditor(String editorName, String text) {
    Matcher withPartName = WithPartName.withPartName(editorName);
    bot.waitUntil(Conditions.waitForEditor(withPartName));
    SWTBotEditor editor = bot.activeEditor();
    SWTBotEclipseEditor textEditor = editor.toTextEditor();
    bot.menu("Edit").menu("Select All").click();
    textEditor.setText(text);
    textEditor.saveAndClose();
  }
View Full Code Here

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

      bot.waitUntil(Conditions.waitForEditor(withPartName));
    }

    String classpathText = getClassPathText(projectName);

    SWTBotEditor editor = bot.activeEditor();
    SWTBotEclipseEditor textEditor = editor.toTextEditor();
    bot.menu("Edit").menu("Select All").click();
    textEditor.setText(classpathText);
    textEditor.saveAndClose();

    bot.viewByTitle("Package Explorer").show();
View Full Code Here

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

    private final static SWTWorkbenchBot bot = new SWTWorkbenchBot();

    private SWTBotEditor swtBotEditor;

    public static EditorBot findByName(String fileName) {
        SWTBotEditor swtBotEditor = bot.editorByTitle(fileName);
        return new EditorBot(swtBotEditor);
    }
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.