Examples of ObjectResult


Examples of net.sf.swtbot.finder.UIThreadRunnable.ObjectResult

   * @return the active editor, if any
   * @throws WidgetNotFoundException if there is no active editor.
   * @since 1.1
   */
  public static SWTBotEclipseEditor activeEditor() throws WidgetNotFoundException {
    Object editor = UIThreadRunnable.syncExec(new ObjectResult() {
      public Object run() {
        try {
          IEditorPart activeEditor = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor();
          return PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getReference(activeEditor);
        } catch (RuntimeException e) {
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.