Examples of run()


Examples of org.eclipse.jdt.ui.jarpackager.IJarExportRunnable.run()

          Shell shell = CloudUiUtil.getShell();

          IJarExportRunnable runnable = packageData
              .createJarExportRunnable(shell);
          try {
            runnable.run(subProgress);

            File file = new File(packageData.getJarLocation()
                .toString());
            if (!file.exists()) {
              handleApplicationDeploymentFailure();
View Full Code Here

Examples of org.eclipse.jface.action.Action.run()

                    "Comment.",
                    editor,
                    ITextOperationTarget.PREFIX);
            }

            action.run();
        }
        catch (BadLocationException e)
        {
            // TODO Auto-generated catch block
            e.printStackTrace();
View Full Code Here

Examples of org.eclipse.jface.action.IAction.run()

      @Override
      protected void fillMenu(IMenuManager menu) {
        SurroundWithAction.fillMenu(menu);       
      }     
    };
    theAction.run();
  }

}
View Full Code Here

Examples of org.eclipse.jface.dialogs.ProgressMonitorDialog.run()

                public void run(IProgressMonitor arg0) throws InvocationTargetException, InterruptedException {
                    Job.getJobManager().join(WGADesignerPlugin.JOB_FAMILY_WGA_DISTRIBUTION_DOWNLOAD, arg0);
                }
            };
            try {
                dialog.run(true, true, runnable);
            }
            catch (InvocationTargetException e) {
            }
            catch (InterruptedException e) {
            }
View Full Code Here

Examples of org.eclipse.jface.operation.IRunnableContext.run()

        };

        try {
            IRunnableContext runContext = searchContext.getRunContext();
            if (runContext != null) {
                runContext.run(false, false, runnable);
            } else {
                runnable.run(new NullProgressMonitor());
            }
            return result;
        } catch (InvocationTargetException e) {
View Full Code Here

Examples of org.eclipse.jface.operation.IRunnableWithProgress.run()

        Job job = new Job("validation") {

          @Override
          protected IStatus run(IProgressMonitor monitor) {
            try {
              runnable.run(monitor);
              return Status.OK_STATUS;
            } catch (Exception e) {
              return new Status(Status.ERROR, Plugin.PLUGIN_ID, "Validation failed", e);
            }
          }
View Full Code Here

Examples of org.eclipse.jface.wizard.IWizardContainer.run()

     */
    private void run( final IRunnableWithProgress runnable ) throws InvocationTargetException,
            InterruptedException {
        IWizardContainer wizardContainer = getContainer();
        if (wizardContainer != null && Display.getCurrent() != null) {
            wizardContainer.run(false, true, new IRunnableWithProgress(){

                public void run( IProgressMonitor monitor ) throws InvocationTargetException,
                        InterruptedException {
                    runnable.run(monitor);
                }
View Full Code Here

Examples of org.eclipse.jst.jsf.common.internal.RunOnCompletionPattern.run()

    {
        final Job refreshJob = getRefreshJob(flushCaches);

        final RunOnCompletionPattern runPattern = new RunOnCompletionPattern(
                refreshJob, runAfter);
        runPattern.run();
    }

    /**
     * @param flushCaches
     * @return a job that, when run, will perform the registry refresh.  Job
View Full Code Here

Examples of org.eclipse.ltk.core.refactoring.PerformChangeOperation.run()

        }

        PerformChangeOperation changeOperation = new PerformChangeOperation(change);
        changeOperation.setUndoManager(
            RefactoringCore.getUndoManager(), proposal.getName());
        changeOperation.run(monitor);

        if (edits.length > 0 &&
            change instanceof CompilationUnitChange &&
            src.equals(((CompilationUnitChange)change).getCompilationUnit()))
        {
View Full Code Here

Examples of org.eclipse.ltk.core.refactoring.PerformRefactoringOperation.run()

          PerformRefactoringOperation op =
            new PerformRefactoringOperation(
                r,
                CheckConditionsOperation.FINAL_CONDITIONS
            );
          op.run(monitor);
          Object newElement = p.getNewElement();
          if(newElement instanceof IPackageFragment) {
            javaElement = (IPackageFragment)newElement;
          }
          /*
 
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.