Examples of SWTBotEclipseEditor


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

  @Rule public CommentReaderRule commentReader = new CommentReaderRule();

  // import 'google/protobuf/descriptor.proto';
  @Test public void should_open_file_in_plugIn() throws InterruptedException {
    String text = commentReader.comments().get(0);
    SWTBotEclipseEditor editor = robot.createFileWithText("importDescriptor.proto", text);
    navigateToImportedFile(editor);
    robot.editorByTitle("descriptor.proto");
  }
View Full Code Here

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

    textWithLabel("Project name:").setText(name);
    button("Finish").click();
  }

  public SWTBotEclipseEditor createFileWithText(String name, String text) {
    SWTBotEclipseEditor file = createFile(name);
    file.setText(text);
    file.save();
    return file;
  }
View Full Code Here

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

  @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.SWTBotEclipseEditor

    }

    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
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.