Package org.eclipse.jface.wizard

Examples of org.eclipse.jface.wizard.WizardDialog.create()


  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


      wizardDialogSettings = pluginDialogSettings
          .addNewSection(settingsKey);
    }
    wizard.setDialogSettings(wizardDialogSettings);
    WizardDialog dialog = new WizardDialog(shell, wizard);
    dialog.create();
    dialog.getShell().setSize(Math.max(500, dialog.getShell().getSize().x),
        500);
    dialog.open();
  }
View Full Code Here

                AttributeWizard wizard = new AttributeWizard( Messages
                    .getString( "EditLdifAttributeAction.EditAttributeDescription" ), true, false, //$NON-NLS-1$
                    attributeDescription, dummyEntry );
                WizardDialog dialog = new WizardDialog( Display.getDefault().getActiveShell(), wizard );
                dialog.setBlockOnOpen( true );
                dialog.create();
                if ( dialog.open() == Dialog.OK )
                {
                    String newAttributeDescription = wizard.getAttributeDescription();

                    if ( newAttributeDescription != null )
View Full Code Here

            public void run() {
                NewRepLocationWizard wiz = new NewRepLocationWizard();
                wiz.init(Activator.getDefault().getWorkbench(), null);
                WizardDialog dialog =
                    new WizardDialog(RepositoryView.this.getSite().getShell(), wiz);
                dialog.create();
                dialog.open();
            }
        };
        addRepositoryLocAction.setText(Messages.getString("action.add.rep")); //$NON-NLS-1$
        addRepositoryLocAction.setToolTipText(Messages.getString("action.add.rep.desc")); //$NON-NLS-1$
View Full Code Here

        wizard.setDialogSettings(wizardSettings);
        wizard.setForcePreviousAndNextButtons(true);

        Shell parent = workbenchWindow.getShell();
        WizardDialog dialog = new WizardDialog(parent, wizard);
        dialog.create();
        dialog.getShell().setSize(
                Math.max(SIZING_WIZARD_WIDTH, dialog.getShell().getSize().x),
                SIZING_WIZARD_HEIGHT);
        PlatformUI.getWorkbench().getHelpSystem().setHelp(dialog.getShell(),
        IWorkbenchHelpContextIds.NEW_WIZARD);
View Full Code Here

        wizard.setDialogSettings(wizardSettings);
        wizard.setForcePreviousAndNextButtons(true);

        Shell parent = workbenchWindow.getShell();
        WizardDialog dialog = new WizardDialog(parent, wizard);
        dialog.create();
        dialog.getShell().setSize(
                Math.max(SIZING_WIZARD_WIDTH, dialog.getShell().getSize().x),
                SIZING_WIZARD_HEIGHT);
        PlatformUI.getWorkbench().getHelpSystem().setHelp(dialog.getShell(),
        IWorkbenchHelpContextIds.IMPORT_WIZARD);
View Full Code Here

        wizard.setDialogSettings(wizardSettings);
        wizard.setForcePreviousAndNextButtons(true);

        Shell parent = workbenchWindow.getShell();
        WizardDialog dialog = new WizardDialog(parent, wizard);
        dialog.create();
        dialog.getShell().setSize(
                Math.max(SIZING_WIZARD_WIDTH, dialog.getShell().getSize().x),
                SIZING_WIZARD_HEIGHT);
        PlatformUI.getWorkbench().getHelpSystem().setHelp(dialog.getShell(),
        IWorkbenchHelpContextIds.EXPORT_WIZARD);
View Full Code Here

          return null;
        }
       
        Shell parent = activeWindow.getShell();
        WizardDialog dialog = new WizardDialog(parent, wizard);
        dialog.create();
        dialog.open();

      } catch (CoreException ex) {
        throw new ExecutionException("error creating wizard", ex); //$NON-NLS-1$
      }
View Full Code Here

    if ((resource != null) && (resource.getType() == IResource.FILE)) {
      RunOnHadoopWizard wizard =
          new RunOnHadoopWizard(new JarModule(resource));

      WizardDialog dialog = new Dialog(null, wizard);
      dialog.create();
      dialog.setBlockOnOpen(true);
      dialog.open();

      return;
    }
View Full Code Here

    IWorkbench workbench = PlatformUI.getWorkbench();
    Shell shell = workbench.getActiveWorkbenchWindow().getShell();
    NewMapReduceProjectWizard wizard = new NewMapReduceProjectWizard();
    wizard.init(workbench, new StructuredSelection());
    WizardDialog dialog = new WizardDialog(shell, wizard);
    dialog.create();
    dialog.open();
    // did the wizard succeed?
    notifyResult(dialog.getReturnCode() == Window.OK);
  }
}
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.