Examples of IWizard


Examples of org.eclipse.jface.wizard.IWizard

          .findWizard(id);
    }
    try {
      // Then if we have a wizard, open it.
      if (descriptor != null) {
        IWizard wizard = descriptor.createWizard();
        ((IWorkbenchWizard) wizard).init(workbench, selection);
        WizardDialog wd = new WizardDialog(shell, wizard);
        wd.setTitle(wizard.getWindowTitle());
        wd.open();
      }
    } catch (CoreException e) {
      e.printStackTrace();
    }
View Full Code Here

Examples of org.eclipse.jface.wizard.IWizard

public class CreateBranchOnCommitHandler extends AbstractHistoryCommandHandler {
  public Object execute(ExecutionEvent event) throws ExecutionException {
    Repository repo = getRepository(event);
    IStructuredSelection selection = getSelection(event);

    IWizard wiz = null;
    List<Ref> branches = getBranches(selection, repo);

    if (branches.isEmpty()) {
      PlotCommit commit = (PlotCommit) selection
          .getFirstElement();
View Full Code Here

Examples of org.eclipse.jface.wizard.IWizard

    RepositoriesViewCommandHandler<RepositoryTreeNode> {
  public Object execute(ExecutionEvent event) throws ExecutionException {
    List<RepositoryTreeNode> nodes = getSelectedNodes(event);
    RepositoryTreeNode node = nodes.get(0);

    IWizard pushWiz = null;

    try {
      switch (node.getType()) {
      case REF:
        Ref ref = (Ref) node.getObject();
        pushWiz = new PushBranchWizard(node.getRepository(), ref);
        break;
      case TAG:
        pushWiz = createPushTagsWizard(nodes);
        break;
      case REPO:
        pushWiz = new PushWizard(node.getRepository());
        break;
      default:
        throw new UnsupportedOperationException("type not supported!"); //$NON-NLS-1$
      }
    } catch (URISyntaxException e1) {
      Activator.handleError(e1.getMessage(), e1, true);
      return null;
    }

    WizardDialog dlg = new WizardDialog(getShell(event), pushWiz);
    dlg.setHelpAvailable(pushWiz.isHelpAvailable());
    dlg.open();

    return null;
  }
View Full Code Here

Examples of org.eclipse.jface.wizard.IWizard

    mainPage.saveWidgetValues();
    // if we're finishing from the main page then perform finish on the
    // selected wizard.
    if (getContainer().getCurrentPage() == mainPage) {
      if (mainPage.canFinishEarly()) {
        IWizard wizard = mainPage.getSelectedNode().getWizard();
        wizard.setContainer(getContainer());
        return wizard.performFinish();
      }
    }
    return true;
  }
View Full Code Here

Examples of org.eclipse.jface.wizard.IWizard

    }
    enableTemplates();
  }

  protected IProject getProject() {
    IWizard wizard = getWizard();
    IProject project = null;
    if (wizard instanceof PHPFileCreationWizard) {
      project = ((PHPFileCreationWizard) wizard).getProject();
    }
    return project;
View Full Code Here

Examples of org.eclipse.jface.wizard.IWizard

      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);
      wd.setTitle(wizard.getWindowTitle());
      wd.open();
      break;
  default:
      Common.log(new Status(IStatus.ERROR, ArduinoConst.CORE_PLUGIN_ID, "Adding libraries to multiple projects is not supported"));
  }
View Full Code Here

Examples of org.eclipse.jface.wizard.IWizard

      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);
      wd.setTitle(wizard.getWindowTitle());
      wd.open();
      break;
  default:
      Common.log(new Status(IStatus.ERROR, ArduinoConst.CORE_PLUGIN_ID, "Adding a source folder to multiple projects is not supported"));
  }
View Full Code Here

Examples of org.eclipse.jface.wizard.IWizard

    @Override
    public Object execute(ExecutionEvent event) throws ExecutionException {
  if (!ArduinoInstancePreferences.isConfigured(true))
      return null;
  IWizard wizard = new NewArduinoSketchWizard();
  WizardDialog wd = new WizardDialog(ConsolePlugin.getStandardDisplay().getActiveShell(), wizard);
  wd.setTitle(wizard.getWindowTitle());
  wd.open();
  return null;
    }
View Full Code Here

Examples of org.eclipse.jface.wizard.IWizard

    /**
     * {@inheritDoc}
     */
    public void run()
    {
        IWizard wizard = null;

        if ( this.type == TYPE_IMPORT_LDIF )
        {
            if ( getEntry() != null )
            {
View Full Code Here

Examples of org.eclipse.jface.wizard.IWizard

  @Override
  public void run() {
    String url = labelProvider.getColumnText(getStructuredSelection()
        .getFirstElement(), RequestMappingView.COLUMN_URL);
    if (url != null) {
      IWizard wizard = new OpenRequestMappingUrlWizard(
          (RequestMappingMethodToClassMap) getStructuredSelection()
              .getFirstElement(), labelProvider,
          getProject(element));
      Shell shell = viewPart.getSite().getShell();
      if (shell != 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.