Package org.eclipse.jface.wizard

Examples of org.eclipse.jface.wizard.WizardDialog


      ConvertProjectsWizard wizard = new ConvertProjectsWizard(applicableProjects, initialSelection,
                    "Convert to Bundle Project(s)", "Select project(s) to convert to Bundle project(s)\n"
                            + "List contains open Java projects that are not yet bundle or content projects.");

      final Display display = getDisplay();
      final WizardDialog dialog = new WizardDialog(display.getActiveShell(), wizard);
      BusyIndicator.showWhile(display, new Runnable() {
        public void run() {
          dialog.open();
        }
      });
      if (dialog.getReturnCode()!=WizardDialog.OK) {
        // user did not click OK
        return;
      }
      final List<IProject> selectedProjects = wizard.getSelectedProjects();
      if (selectedProjects == null || selectedProjects.size()==0) {
View Full Code Here


                }

                ImportWizard wiz = new ImportWizard();
                wiz.init(PlatformUI.getWorkbench(), structuredSelection);

                WizardDialog dialog = new WizardDialog(PlatformUI.getWorkbench().getDisplay().getActiveShell(), wiz);
                dialog.open();

            }
        }
    }
View Full Code Here

                Shell activeShell = PlatformUI.getWorkbench().getDisplay().getActiveShell();

                ExportWizard wiz = new ExportWizard();
                wiz.init(PlatformUI.getWorkbench(), resource);

                WizardDialog dialog = new WizardDialog(activeShell, wiz);
                dialog.open();
            }
        }

    }
View Full Code Here

    if (HandlerUtil.getCurrentSelection(event) instanceof IStructuredSelection) {
      selection = (IStructuredSelection)HandlerUtil.getCurrentSelection(event);
    }
    PlayWizard wizard = getWizard();
    wizard.init(HandlerUtil.getActiveWorkbenchWindow(event).getWorkbench(), selection);
    WizardDialog dialog = new WizardDialog(HandlerUtil.getActiveShell(event), wizard);
    dialog.create();
    dialog.open();
    return null;
  }
View Full Code Here

        ConnectionWizard wizard = new ConnectionWizard();
        Shell shell = PlatformUI.getWorkbench()
            .getActiveWorkbenchWindow().getShell();

        WizardDialog dialog = new WizardDialog(shell, wizard);
        dialog.create();
        dialog.open();
        mView.refreshMe();
      }
    };

    connection.setText(getCaption("connection.new"));
View Full Code Here

    }
    try {
      // Then if we have a wizard, open it.
      if (descriptor != null) {
        IWizard wizard = descriptor.createWizard();
        WizardDialog wd = new WizardDialog(PlatformUI.getWorkbench()
            .getDisplay().getActiveShell(), wizard);
        wd.setTitle(wizard.getWindowTitle());
        wd.open();
      }
    } catch (CoreException e) {
      e.printStackTrace();
    }
  }
View Full Code Here

          protected void createChildFragments(List<WizardFragment> list) {
            list.add(new LicenseWizardFragment());
          }
        }, taskModel);
       
        WizardDialog dialog2 = new WizardDialog(getShell(), wizard2);
        if (dialog2.open() == Window.CANCEL)
          return;
       
        DirectoryDialog dialog = new DirectoryDialog(LHttpdRuntimeComposite.this.getShell());
        dialog.setMessage(Messages.LHttpdRuntimeComposite_SelectXamppInstallDir);
        dialog.setFilterPath(installDir.getText());
View Full Code Here

  public void openWizard(ExecutionEvent event, Wizard wizard)
  {
    Shell shell = HandlerUtil.getActiveShell(event);
   
        WizardDialog dialog = new WizardDialog(shell, wizard);
        dialog.create();
        int res = dialog.open();
        if (res == Window.OK && wizard instanceof NewElementWizard) {
         
        }   
  }
View Full Code Here

     * @generated
     */
    public void run(IAction action) {
      URMLModelWizard wizard = new URMLModelWizard();
      wizard.init(getWindow().getWorkbench(), StructuredSelection.EMPTY);
      WizardDialog wizardDialog = new WizardDialog(getWindow().getShell(), wizard);
      wizardDialog.open();
    }
View Full Code Here

     * @generated
     */
    public void run(IAction action) {
      OntoUMLModelWizard wizard = new OntoUMLModelWizard();
      wizard.init(getWindow().getWorkbench(), StructuredSelection.EMPTY);
      WizardDialog wizardDialog = new WizardDialog(getWindow().getShell(), wizard);
      wizardDialog.open();
    }
View Full Code Here

TOP

Related Classes of org.eclipse.jface.wizard.WizardDialog

Copyright © 2018 www.massapicom. 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.