Examples of run()


Examples of org.eclipse.ui.IWorkbenchWindowActionDelegate.run()

        public void run() {
          NavigationActionFactory factory = new NavigationActionFactory();
          try {
            factory.setInitializationData(null, null, NavigationActionFactory.NavigationActionType.NEXT_FEED.getId());
            IWorkbenchWindowActionDelegate action = (IWorkbenchWindowActionDelegate) factory.create();
            action.run(null);
          } catch (CoreException e) {
            /* Ignore */
          }
        }
      });
View Full Code Here

Examples of org.eclipse.ui.actions.ActionFactory.IWorkbenchAction.run()

      }

        /* Close */
      case CLOSE: {
        IWorkbenchAction action = ActionFactory.CLOSE.create(fWindow);
        action.run();
        break;
      }

        /* Close Others */
      case CLOSE_OTHERS: {
View Full Code Here

Examples of org.eclipse.ui.actions.DeleteResourceAction.run()

  private void runNormalAction(List<IResource> resources) {
    DeleteResourceAction action = new DeleteResourceAction(shellProvider);
    IStructuredSelection selection = new StructuredSelection(resources);
    action.selectionChanged(selection);
    action.run();
  }

  private void runNonWorkspaceAction() {
    boolean performAction = MessageDialog.openConfirm(
        shellProvider.getShell(),
View Full Code Here

Examples of org.eclipse.ui.actions.NewProjectAction.run()

        Utils.runSafeSWTSync(log, new Runnable() {
            public void run() {
                IWorkbenchWindow window = PlatformUI.getWorkbench()
                    .getActiveWorkbenchWindow();
                NewProjectAction newProjectAction = new NewProjectAction(window);
                newProjectAction.run();
            }
        });
    }

    /**
 
View Full Code Here

Examples of org.eclipse.ui.actions.NewWizardAction.run()

    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

Examples of org.eclipse.ui.actions.RefreshAction.run()

        List result= new ArrayList(1);
        result.add(resource);
        return result;
      }
    };
    impl.run();
  }

  /*
   * @see org.eclipse.ui.texteditor.IUpdate#update()
   */
 
View Full Code Here

Examples of org.eclipse.ui.actions.SelectionListenerAction.run()

    public void run() {
        // By default, delegate to the underlying action, using the current
        // selection
        SelectionListenerAction underlyingAction = getUnderlyingAction();
        underlyingAction.selectionChanged(getStructuredSelection());
        underlyingAction.run();
    }
}
View Full Code Here

Examples of org.eclipse.ui.actions.WorkspaceModifyDelegatingOperation.run()

  /*
   * @see org.eclipse.jface.operation.IRunnableContext#run(boolean, boolean, org.eclipse.jface.operation.IRunnableWithProgress)
   */
  public void run(boolean fork, boolean cancelable, IRunnableWithProgress runnable, ISchedulingRule schedulingRule) throws InvocationTargetException, InterruptedException {
    WorkspaceModifyDelegatingOperation operation= new WorkspaceModifyDelegatingOperation(runnable, schedulingRule);
    operation.run(getProgressMonitor());
  }
}
View Full Code Here

Examples of org.eclipse.ui.actions.WorkspaceModifyOperation.run()

                public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
                    monitor.beginTask("Creating Algorithm Project...", 150);
                   
                    try {
                        op.run(new SubProgressMonitor(monitor, 100));
                    } catch (Throwable e) {
                        e.printStackTrace();
                    }
                   
                    File outFile = provider.getProject().getLocation().append(
View Full Code Here

Examples of org.eclipse.ui.cheatsheets.OpenCheatSheetAction.run()

        //mark as in progress
        ((IIssue) issue).setResolution(Resolution.IN_PROGRESS);
        //instantiate the cheat sheet
        final String requiredExtension = fixerMemento.getString(KEY_CHEATSHEET);
        OpenCheatSheetAction openAction = new OpenCheatSheetAction(requiredExtension); //, "", null);
        openAction.run();

//TODO: investigate alternative (custom cheat sheet XML)
//        URL url = new URL(null, null, new URLStreamHandler()  {
//
//            @Override
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.