Examples of showPerspective()


Examples of org.eclipse.ui.IWorkbench.showPerspective()

        // Make sure to run the UI thread.
        display.syncExec(new Runnable() {
            public void run() {
                IWorkbenchWindow window = workBench.getActiveWorkbenchWindow();
                try {
                    workBench.showPerspective(perspectiveId, window);
                } catch (WorkbenchException e) {
                    failException = e;
                }
            }
        });
View Full Code Here

Examples of org.eclipse.ui.IWorkbench.showPerspective()

  public static void showPerspective() {
    IWorkbench workbench = ReviewPlugin.getInstance().getWorkbench();
    IWorkbenchWindow window = workbench.getActiveWorkbenchWindow();
    if (window != null) {
      try {
        workbench.showPerspective(ReviewPerspectiveFactory.ID, window);
      }
      catch (WorkbenchException e) {
        log.error(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.