Package org.eclipse.ui.progress

Examples of org.eclipse.ui.progress.IProgressService.run()


  @Override
  public void run() {
    IProgressService progressService = PlatformUI.getWorkbench().getProgressService();

    try {
      progressService.run(true, false, mRunnable);
    } catch (InvocationTargetException e) {

      Status status = new Status(IStatus.ERROR, CasEditorPlugin.ID, 0, getRootCauseStackTrace(e),
              null);
View Full Code Here


  @Override
  public void run() {
    IProgressService progressService = PlatformUI.getWorkbench().getProgressService();

    try {
      progressService.run(true, false, mRunnable);
    } catch (InvocationTargetException e) {

      Status status = new Status(IStatus.ERROR, CasEditorPlugin.ID, 0, getRootCauseStackTrace(e),
              null);
View Full Code Here

    try {
      Refresh runner = new Refresh(this.resource, this.resource.getProject());
     
      IWorkbench wb = PlatformUI.getWorkbench();
      IProgressService ps = wb.getProgressService();
      ps.run(false, true, runner);
     
      //IWorkspace workspace = ResourcesPlugin.getWorkspace();
      //workspace.run(runner, this.resource.getProject(), IWorkspace.AVOID_UPDATE, null);//TODO add a progress monitor
     
    //} catch (CoreException e) {
View Full Code Here

    public static void importFromRepository(IProject project, IWizardContainer container){
      try {
      if (container == null){
        IWorkbench wb = PlatformUI.getWorkbench();
        IProgressService ps = wb.getProgressService();
        ps.run(false, true, new RepositoryExport(project));
      } else {
        container.run(false, true, new RepositoryExport(project));
      }
    } catch (InvocationTargetException e) {
      ToolPlugin.showError("Error importing from Tool Repository",e);
View Full Code Here

      }
    };
    IProgressService service = PlatformUI.getWorkbench()
        .getProgressService();
    try {
      service.run(true, true, op);

    } catch (InvocationTargetException e) {
      LogService.error(MusicMessages.MeiseEditor_12, e);
    } catch (InterruptedException e) {
      LogService.error(MusicMessages.MeiseEditor_14, e);
View Full Code Here

      }
    };
    IProgressService service = PlatformUI.getWorkbench()
        .getProgressService();
    try {
      service.run(true, true, op);
    } catch (InvocationTargetException e) {
      LogService.error(MusicMessages.MeiseEditor_12, e);
    } catch (InterruptedException e) {
      LogService.error(MusicMessages.MeiseEditor_14, e);
    } catch (Exception e) {
View Full Code Here

      public void run(IProgressMonitor monitor) throws InvocationTargetException {
        CardPool.instance().initFromPlugins(monitor, true);
      }
    };
      try {
      service.run(false, false, runnableCardPool);
    } catch (InvocationTargetException e) {
      e.getMessage();
    } catch (InterruptedException e) {
      e.getMessage();
    }
View Full Code Here

        CardPool.instance().initFromPlugins(monitor, false);       
      }
    };
       
      try {
      service.run(true, false, runnable);
    } catch (InvocationTargetException e) {
      e.printStackTrace();
    } catch (InterruptedException e) {
      e.printStackTrace();
    }
View Full Code Here

public class ProgressBox
{
  public ProgressBox(IRunnableWithProgress ptr) throws Exception
  {
    IProgressService service = PlatformUI.getWorkbench().getProgressService();
    service.run(true, false, ptr);
  }
}
View Full Code Here

            return;
        }

        IProgressService service = PlatformUI.getWorkbench().getProgressService();
        try {
            service.run(false, true, new IRunnableWithProgress() {
                public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
                    monitor.beginTask("Running tests...", 4);
                    try {
                        IDeployResultExt results = serviceLocator.getRunTestsService().runTests(resource, monitor);
                        processRunTestResults(results, resource);
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.