Examples of IWorkingSetNewWizard


Examples of org.eclipse.ui.dialogs.IWorkingSetNewWizard

    }

    public void run() {
      IWorkingSetManager manager = WorkbenchPlugin.getDefault()
      .getWorkingSetManager();
      IWorkingSetNewWizard wizard = manager.createWorkingSetNewWizard(null);
      // the wizard can never be null since we have at least a resource
      // working set
      // creation page
      WizardDialog dialog = new WizardDialog(PlatformUI.getWorkbench()
                .getDisplay().getActiveShell(), wizard);
   
      dialog.create();
      PlatformUI.getWorkbench().getHelpSystem().setHelp(dialog.getShell(),
          IWorkbenchHelpContextIds.WORKING_SET_NEW_WIZARD);
      if (dialog.open() == Window.OK) {
        IWorkingSet workingSet = wizard.getSelection();
        if(workingSet != null) {
          manager.addWorkingSet(workingSet);
        }
      }     
    }
View Full Code Here

Examples of org.eclipse.ui.dialogs.IWorkingSetNewWizard

    String ids[] = null;
    if (workingSetIds != null) {
      ids = (String[]) workingSetIds.toArray(new String[workingSetIds
          .size()]);
    }
    IWorkingSetNewWizard wizard = manager.createWorkingSetNewWizard(ids);
    // the wizard can never be null since we have at least a resource
    // working set
    // creation page
    WizardDialog dialog = new WizardDialog(getShell(), wizard);

    dialog.create();
    PlatformUI.getWorkbench().getHelpSystem().setHelp(dialog.getShell(),
        IWorkbenchHelpContextIds.WORKING_SET_NEW_WIZARD);
    if (dialog.open() == Window.OK) {
      IWorkingSet workingSet = wizard.getSelection();
      manager.addWorkingSet(workingSet);
      addedWorkingSets.add(workingSet);
      availableWorkingSetsChanged();
    }
  }
View Full Code Here

Examples of org.eclipse.ui.dialogs.IWorkingSetNewWizard

  }

  private void createWorkingSet() {
    IWorkingSetManager manager = PlatformUI.getWorkbench()
        .getWorkingSetManager();
    IWorkingSetNewWizard wizard = manager
        .createWorkingSetNewWizard(new String[] { "org.eclipse.php.ui.workingset.PHPWorkingSetPage" }); //$NON-NLS-1$
    // the wizard can't be null since we have at least the Script working
    // set.
    WizardDialog dialog = new WizardDialog(getShell(), wizard);
    dialog.create();
    if (dialog.open() == Window.OK) {
      IWorkingSet workingSet = wizard.getSelection();
      Filter filter = new Filter();
      if (filter.select(null, null, workingSet)) {
        fAllWorkingSets.add(workingSet);
        fTableViewer.add(workingSet);
        fTableViewer.setSelection(new StructuredSelection(workingSet),
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.