Package org.eclipse.ui.actions

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


   * @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

Related Classes of org.eclipse.ui.actions.NewWizardAction

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.