Examples of toTextEditor()


Examples of org.eclipse.swtbot.eclipse.finder.widgets.SWTBotEditor.toTextEditor()

  @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.toTextEditor()

    }

    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.toTextEditor()

    SWTBotTreeItem rootNode = coreTreeItem.expand().getNode(0)
        .expand().select();
    rootNode.getNode(0).select().doubleClick();

    SWTBotEditor corePomEditor = bot.editorByTitle(FILE1);
    corePomEditor.toTextEditor()
        .insertText("<!-- EGit jUnit test case -->");
    corePomEditor.saveAndClose();

    rootNode.getNode(1).select().doubleClick();
    SWTBotEditor uiPomEditor = bot.editorByTitle(FILE2);
View Full Code Here

Examples of org.eclipse.swtbot.eclipse.finder.widgets.SWTBotEditor.toTextEditor()

        .insertText("<!-- EGit jUnit test case -->");
    corePomEditor.saveAndClose();

    rootNode.getNode(1).select().doubleClick();
    SWTBotEditor uiPomEditor = bot.editorByTitle(FILE2);
    uiPomEditor.toTextEditor().insertText("<!-- EGit jUnit test case -->");
    uiPomEditor.saveAndClose();
    coreTreeItem.collapse();
  }

  protected void createTag(String tagName)
View Full Code Here

Examples of org.eclipse.swtbot.eclipse.finder.widgets.SWTBotEditor.toTextEditor()

  public static CompareEditorTester forTitleContaining(String title) {
    SWTWorkbenchBot bot = new SWTWorkbenchBot();
    SWTBotEditor editor = bot.editor(new CompareEditorTitleMatcher(title));
    // Ensure that both StyledText widgets are enabled
    SWTBotStyledText styledText = editor.toTextEditor().getStyledText();
    bot.waitUntil(Conditions.widgetIsEnabled(styledText));
    return new CompareEditorTester(editor);
  }

  private CompareEditorTester(SWTBotEditor editor) {
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.