Package org.eclipse.ui.internal.actions

Examples of org.eclipse.ui.internal.actions.NewWizardShortcutAction


        IAction action = (IAction) actions.get(id);
        if (action == null) {
            IWizardDescriptor wizardDesc = WorkbenchPlugin.getDefault()
          .getNewWizardRegistry().findWizard(id);
            if (wizardDesc != null) {
                action = new NewWizardShortcutAction(workbenchWindow,
            wizardDesc);
        actions.put(id, action);
        IConfigurationElement element = (IConfigurationElement) Util
            .getAdapter(wizardDesc, IConfigurationElement.class);
        if (element != null) {
View Full Code Here


  public void execute() {
    IWorkbenchWindow window = PlatformUI.getWorkbench()
        .getActiveWorkbenchWindow();
    if (window != null) {
      NewWizardShortcutAction wizardAction = new NewWizardShortcutAction(
          window, wizardDescriptor);
      wizardAction.run();
    }
  }
View Full Code Here

    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(
View Full Code Here

      for (Iterator iterator = shortCuts.iterator(); iterator.hasNext();) {
        Object curr = iterator.next();
        if (curr instanceof ActionContributionItem) {
          ActionContributionItem item = (ActionContributionItem) curr;
          if (item.getAction() instanceof NewWizardShortcutAction) {
            NewWizardShortcutAction action = (NewWizardShortcutAction) item
                .getAction();
            if (id.equals(action.getWizardDescriptor().getId())) {
              result.add(item);
              iterator.remove();
            }
          }
        }
View Full Code Here

TOP

Related Classes of org.eclipse.ui.internal.actions.NewWizardShortcutAction

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.