Examples of NewWizardAction


Examples of org.eclipse.ui.actions.NewWizardAction

   */
  public static final class New extends WizardHandler {

    protected IAction createWizardChooserDialogAction(
        IWorkbenchWindow window) {
      return new NewWizardAction(window);
    }
View Full Code Here

Examples of org.eclipse.ui.actions.NewWizardAction

   * @param page
   *            The current {@link IWorkbenchPage}.
   */
  protected String createNewFile(Vertex vertex, Shell shell) {
    IWorkbench workbench = PlatformUI.getWorkbench();
    NewWizardAction action = new NewWizardAction(
        workbench.getActiveWorkbenchWindow());

    IWorkspace workspace = ResourcesPlugin.getWorkspace();
    NewFileListener listener = new NewFileListener(vertex);
    workspace.addResourceChangeListener(listener,
        IResourceChangeEvent.POST_BUILD);
    action.run();
    workspace.removeResourceChangeListener(listener);

    return listener.getRefinement();
  }
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.