Examples of IWizardDescriptor


Examples of org.eclipse.ui.wizards.IWizardDescriptor

  private IAction getAction(String id) {
    // Keep a cache, rather than creating a new action each time,
    // so that image caching in ActionContributionItem works.
    IAction action = (IAction) actions.get(id);
    if (action == null) {
      IWizardDescriptor wizardDesc = WorkbenchPlugin.getDefault()
          .getNewWizardRegistry().findWizard(id);
      if (wizardDesc != null) {
        action = new NewWizardShortcutAction(window, wizardDesc);
        actions.put(id, action);
        IConfigurationElement element = (IConfigurationElement) wizardDesc
            .getAdapter(IConfigurationElement.class);
        if (element != null)
          window.getExtensionTracker().registerObject(
              element.getDeclaringExtension(), action,
              IExtensionTracker.REF_WEAK);
View Full Code Here

Examples of org.eclipse.ui.wizards.IWizardDescriptor

    // Create wizard selection wizard.
    IWorkbench workbench = PlatformUI.getWorkbench();

    IWizardCategory root = WorkbenchPlugin.getDefault()
        .getNewWizardRegistry().getRootCategory();
    IWizardDescriptor localphpWizard = root
        .findWizard("com.zend.php.ide.ui.project.wizard.localphp"); //$NON-NLS-1$
    if (localphpWizard == null) {// pdt
      org.eclipse.ui.internal.dialogs.NewWizard wizard = new org.eclipse.ui.internal.dialogs.NewWizard();
      wizard.setProjectsOnly(true);
      ISelection selection = window.getSelectionService().getSelection();
View Full Code Here

Examples of org.eclipse.ui.wizards.IWizardDescriptor

      return;
    }

    IWizardCategory root = WorkbenchPlugin.getDefault()
        .getNewWizardRegistry().getRootCategory();
    IWizardDescriptor localphpWizard = root
        .findWizard("com.zend.php.ide.ui.project.wizard.localphp"); //$NON-NLS-1$
    if (localphpWizard == null) {// pdt
      org.eclipse.ui.internal.dialogs.NewWizard wizard = new org.eclipse.ui.internal.dialogs.NewWizard();
      wizard.setCategoryId(categoryId);
View Full Code Here

Examples of org.eclipse.ui.wizards.IWizardDescriptor

    return result;
  }

  private boolean isNewProjectWizardAction(IAction action) {
    if (action instanceof NewWizardShortcutAction) {
      IWizardDescriptor wizardDescriptor = ((NewWizardShortcutAction) action)
          .getWizardDescriptor();
      String[] tags = wizardDescriptor.getTags();
      for (int i = 0; i < tags.length; i++) {
        if (WorkbenchWizardElement.TAG_PROJECT.equals(tags[i])) {
          return true;
        }
      }
View Full Code Here

Examples of org.eclipse.ui.wizards.IWizardDescriptor

   */
  public abstract IWizardRegistry getWizardRegistry();

  public void run() {
    try {
      IWizardDescriptor wizardDescriptor = getWizardRegistry()
          .findWizard(getWizardId());

      IWorkbenchWizard wizard = wizardDescriptor.createWizard();
      wizard.init(PlatformUI.getWorkbench(), StructuredSelection.EMPTY);

      if (wizardDescriptor.canFinishEarly()
          && !wizardDescriptor.hasPages()) {
        wizard.performFinish();
        return;
      }

      Shell parent = PlatformUI.getWorkbench().getActiveWorkbenchWindow()
View Full Code Here

Examples of org.eclipse.ui.wizards.IWizardDescriptor

  case 0:
      Common.log(new Status(IStatus.ERROR, ArduinoConst.CORE_PLUGIN_ID, "No project found to build"));
      break;
  case 1:
      //
      IWizardDescriptor wizardDescriptor = PlatformUI.getWorkbench().getImportWizardRegistry()
        .findWizard("it.baeyens.arduino.Import_Arduino_Libraries");
      IWizard wizard;
      try {
    wizard = wizardDescriptor.createWizard();
      } catch (CoreException e) {
    Common.log(new Status(IStatus.ERROR, ArduinoConst.CORE_PLUGIN_ID, "Failed to find import wizard", e));
    return null;
      }
      WizardDialog wd = new WizardDialog(ConsolePlugin.getStandardDisplay().getActiveShell(), wizard);
View Full Code Here

Examples of org.eclipse.ui.wizards.IWizardDescriptor

  case 0:
      Common.log(new Status(IStatus.ERROR, ArduinoConst.CORE_PLUGIN_ID, "No project found to build"));
      break;
  case 1:
      //
      IWizardDescriptor wizardDescriptor = PlatformUI.getWorkbench().getImportWizardRegistry()
        .findWizard("it.baeyens.arduino.Import_Source_Folder");
      IWizard wizard;
      try {
    wizard = wizardDescriptor.createWizard();
      } catch (CoreException e) {
    Common.log(new Status(IStatus.ERROR, ArduinoConst.CORE_PLUGIN_ID, "Failed to find import wizard", e));
    return null;
      }
      WizardDialog wd = new WizardDialog(ConsolePlugin.getStandardDisplay().getActiveShell(), wizard);
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.