Examples of showPerspective()


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

    if (activePage != null) {
      input = activePage.getInput();
    }

    try {
      workbench.showPerspective(perspectiveId, activeWorkbenchWindow,
          input);
    } catch (WorkbenchException e) {
      throw new ExecutionException("Perspective could not be opened.", e); //$NON-NLS-1$
    }
  }
View Full Code Here

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

                    {
                        activeShell.close();
                    }

                    // open LDAP perspective
                    workbench.showPerspective(
                        "org.apache.directory.studio.ldapbrowser.ui.perspective.BrowserPerspective", window );

                    // reset LDAP perspective
                    page.closeAllEditors( false );
                    page.resetPerspective();
View Full Code Here

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

  public void activate() {
    UIThreadRunnable.syncExec(new VoidResult() {
      public void run() {
        try {
          IWorkbench workbench = PlatformUI.getWorkbench();
          workbench.showPerspective(perspectiveDescriptor.getId(), workbench.getActiveWorkbenchWindow());
        } catch (Exception e) {
          // TODO: what's the correct exception for such an error? Own exception class?
          throw new WidgetNotFoundException(e.getMessage(), e);
        }
      }
View Full Code Here

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

                    {
                        activeShell.close();
                    }

                    // open LDAP perspective
                    workbench.showPerspective(
                        "org.apache.directory.studio.ldapbrowser.ui.perspective.BrowserPerspective", window );

                    // close "LDAP Browser view" as it sometimes does not respond, will be re-opened by the following reset
                    for ( IViewReference viewref : page.getViewReferences() )
                    {
View Full Code Here

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

                    {
                        activeShell.close();
                    }

                    // open LDAP perspective
                    workbench.showPerspective(
                        "org.apache.directory.studio.ldapbrowser.ui.perspective.BrowserPerspective", window );

                    // reset LDAP perspective
                    page.closeAllEditors( false );
                    page.resetPerspective();
View Full Code Here

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

                eomodelerEditorCount++;
              }
            }

            if (eomodelerEditorCount == 0) {
              workbench.showPerspective("org.objectstyle.wolips.ui.Perspective", activeWorkbenchWindow);
            }
          }
        }
      } catch (WorkbenchException e) {
        // ErrorUtils.openErrorDialog(Display.getDefault().getActiveShell(),
View Full Code Here

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

    try {
      if (Activator.getDefault().getPreferenceStore().getBoolean(PreferenceConstants.CHANGE_PERSPECTIVES_KEY)) {
        IWorkbench workbench = Activator.getDefault().getWorkbench();
        IWorkbenchWindow activeWorkbenchWindow = workbench.getActiveWorkbenchWindow();
        if (activeWorkbenchWindow != null) {
          workbench.showPerspective(EOModelerPerspectiveFactory.EOMODELER_PERSPECTIVE_ID, activeWorkbenchWindow);
        }
      }
    } catch (WorkbenchException e) {
      Activator.getDefault().log(e);
    }
View Full Code Here

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

        } else {
            input= ResourcesPlugin.getWorkspace().getRoot();
        }

        try {
            workbench.showPerspective(UIConstants.FORCE_PERSPECTIVE_ID, window, input);
        } catch (WorkbenchException e) {
            logger.error("Unable to open Force.com Perspective", e);
        }
    }
View Full Code Here

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

    } else {
      input = ResourcesPlugin.getWorkspace().getRoot();
    }

    try {
      workbench.showPerspective(Constants.FORCE_PLUGIN_PREFIX
          + ".perspective", window, input);
    } catch (WorkbenchException e) {
      logger.error("Unable to open Force.com Perspective", e);
    }
  }
View Full Code Here

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

  public void activate() {
    UIThreadRunnable.syncExec(new VoidResult() {
      public void run() {
        try {
          IWorkbench workbench = PlatformUI.getWorkbench();
          workbench.showPerspective(perspectiveDescriptor.getId(), workbench.getActiveWorkbenchWindow());
        } catch (Exception e) {
          // TODO: what's the correct exception for such an error? Own exception class?
          throw new WidgetNotFoundException(e.getMessage(), 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.