Package org.eclipse.ui.internal.dialogs

Examples of org.eclipse.ui.internal.dialogs.SelectPerspectiveDialog.open()


  private final void openOther(final IWorkbenchWindow activeWorkbenchWindow)
      throws ExecutionException {
    final SelectPerspectiveDialog dialog = new SelectPerspectiveDialog(
        activeWorkbenchWindow.getShell(), WorkbenchPlugin.getDefault()
            .getPerspectiveRegistry());
    dialog.open();
    if (dialog.getReturnCode() == Window.CANCEL) {
      return;
    }

    final IPerspectiveDescriptor descriptor = dialog.getSelection();
View Full Code Here


     * event should the meny need it.
     */
    void runOther(SelectionEvent event) {
        SelectPerspectiveDialog dlg = new SelectPerspectiveDialog(window
                .getShell(), reg);
        dlg.open();
        if (dlg.getReturnCode() == Window.CANCEL) {
      return;
    }
        IPerspectiveDescriptor desc = dlg.getSelection();
        if (desc != null) {
View Full Code Here

        if (workbenchWindow == null) {
            return;
        }
        SelectPerspectiveDialog dlg = new SelectPerspectiveDialog(workbenchWindow
                .getShell(), workbenchWindow.getWorkbench().getPerspectiveRegistry());
        dlg.open();
        if (dlg.getReturnCode() == Window.CANCEL) {
      return;
    }
        IPerspectiveDescriptor desc = dlg.getSelection();
        if (desc != null) {
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.