Package org.eclipse.ui.ide.undo

Examples of org.eclipse.ui.ide.undo.CreateProjectOperation.execute()


                final CreateProjectOperation op1 = new CreateProjectOperation(
                        description, WizardMessages.NewProject_windowTitle);
                try {
                    // https://bugs.eclipse.org/bugs/show_bug.cgi?id=219901
                    // Making this undoable would be a bad idea
                    op1.execute(monitor, notifier);

                    newProjectHandle.open(monitor);
                    description.setNatureIds(new String[] { ErlangCore.NATURE_ID });
                    newProjectHandle.setDescription(description, null);
View Full Code Here


      public void run(IProgressMonitor monitor)
          throws InvocationTargetException, InterruptedException {
        CreateProjectOperation op = new CreateProjectOperation(
            description, WINDOW_TITLE);
        try {
          op.execute(monitor,
              WorkspaceUndoUtil.getUIInfoAdapter(getShell()));
        } catch (ExecutionException e) {
          throw new InvocationTargetException(e);
        }
       
View Full Code Here

      public void run(IProgressMonitor monitor)
          throws InvocationTargetException, InterruptedException {
        CreateProjectOperation op = new CreateProjectOperation(
            description, WINDOW_TITLE);
        try {
          op.execute(monitor,
              WorkspaceUndoUtil.getUIInfoAdapter(getShell()));
        } catch (ExecutionException e) {
          throw new InvocationTargetException(e);
        }
       
View Full Code Here

  private void createProject(IProjectDescription description,
      IProgressMonitor monitor) throws InvocationTargetException {
    CreateProjectOperation op = new CreateProjectOperation(description,
        WINDOW_TITLE);
    try {
      op.execute(monitor, WorkspaceUndoUtil.getUIInfoAdapter(getShell()));
    } catch (ExecutionException e) {
      throw new InvocationTargetException(e);
    }
  }
View Full Code Here

      public void run(IProgressMonitor monitor)
          throws InvocationTargetException, InterruptedException {
        CreateProjectOperation op = new CreateProjectOperation(
            description, WINDOW_TITLE);
        try {
          op.execute(monitor,
              WorkspaceUndoUtil.getUIInfoAdapter(getShell()));
        } catch (ExecutionException e) {
          throw new InvocationTargetException(e);
        }
       
View Full Code Here

      public void run(IProgressMonitor monitor)
          throws InvocationTargetException, InterruptedException {
        CreateProjectOperation op = new CreateProjectOperation(
            description, WINDOW_TITLE);
        try {
          op.execute(monitor,
              WorkspaceUndoUtil.getUIInfoAdapter(getShell()));
        } catch (ExecutionException e) {
          throw new InvocationTargetException(e);
        }
       
View Full Code Here

        try {
          // see bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=219901
          // directly execute the operation so that the undo state is
          // not preserved.  Making this undoable resulted in too many
          // accidental file deletions.
          op.execute(monitor, WorkspaceUndoUtil
            .getUIInfoAdapter(getShell()));
        } catch (ExecutionException e) {
          throw new InvocationTargetException(e);
        }
      }
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.