Package org.eclipse.ui.progress

Examples of org.eclipse.ui.progress.IProgressService


        if (project == null) {
            Utils.openWarn("Project Unknown", "Unable to run tests - project not provided.");
            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


        }
      }

    };

    IProgressService progressService = CommonUtils.getService(part.getSite(), IProgressService.class);
    progressService.run(true, true, runnable);

    return relatedChanges.toArray(new IResource[relatedChanges.size()]);
  }
View Full Code Here

        super.setVisible(visible);
    }

    private void initializeConflicts() {
        try {
            IProgressService service = PlatformUI.getWorkbench().getProgressService();
            service.run(false, true, new IRunnableWithProgress() {
                @Override
                public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
                    monitor.beginTask("Project Upgrade Analysis", 5);
                    monitor.worked(1);
                    try {
View Full Code Here

    // compares destination artifacts with deployment candidates
    private void performDestinationComparison(final DeploymentController deploymentWizardController)
            throws InvocationTargetException, InterruptedException {

        IProgressService service = PlatformUI.getWorkbench().getProgressService();
        service.run(false, true, new IRunnableWithProgress() {
            @Override
            public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
                monitor.beginTask(DeploymentMessages.getString("DeploymentWizard.GeneratePayload.message"), 2);
                monitor.worked(1);
                try {
View Full Code Here

            }
        }
    }

    private void testDeployOperation() throws InvocationTargetException, InterruptedException {
        IProgressService service = PlatformUI.getWorkbench().getProgressService();
        service.run(false, true, new IRunnableWithProgress() {
            @Override
            public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
                monitor.beginTask("Validating deployment plan...", 3);
                monitor.worked(1);
View Full Code Here

    public void finish(IProgressMonitor monitor) throws Exception {
      if(monitor==null){
        monitor = new NullProgressMonitor();
      }

        IProgressService service = PlatformUI.getWorkbench().getProgressService();

        service.run(false, true, new WorkspaceModifyOperation() {
            @Override
            protected void execute(IProgressMonitor monitor) throws CoreException, InvocationTargetException,
                    InterruptedException {
              if(monitor==null){
                monitor = new NullProgressMonitor();
View Full Code Here

      Logger.logException(ex);
    }
  }

  private void install(final IProject project) {
    IProgressService service = null;
    if (fPart != null) {
      service = (IProgressService) fPart.getSite().getService(
          IProgressService.class);
    }
    if (service == null) {
      doInstall(project, null);
    } else {
      IRunnableWithProgress runnable = new IRunnableWithProgress() {
        public void run(IProgressMonitor monitor)
            throws InvocationTargetException, InterruptedException {
          doInstall(project, monitor);
        }
      };
      try {
        service.run(false, false, runnable);
      } catch (InvocationTargetException e) {
        Logger.logException(e);
      } catch (InterruptedException e) {
        Logger.logException(e);
      }
View Full Code Here

            }
        }
    }

    public void updateCache(final URL cacheUrl) throws InvocationTargetException, InterruptedException {
        final IProgressService service = PlatformUI.getWorkbench().getProgressService();
        service.run(false, false, new IRunnableWithProgress() {
            @Override
            public void run(final IProgressMonitor monitor) throws InvocationTargetException {
                Set<String> keySet = ext.getFilePropertiesMap(typeList).keySet();

                monitor.beginTask("Updating project cache...", Utils.isNotEmpty(keySet) ? keySet.size() + 4 : 4);
View Full Code Here

            Utils.openError("Refresh Error", strBuff.toString());
        }
    }

    private void loadFileMetadata() throws InvocationTargetException, InterruptedException {
        final IProgressService service = PlatformUI.getWorkbench().getProgressService();
        service.run(false, false, new IRunnableWithProgress() {
            @Override
            public void run(final IProgressMonitor monitor) throws InvocationTargetException {
                monitor.beginTask("Fetching organization details...", 3);
                monitor.worked(1);
View Full Code Here

                    IDialogConstants.RETRY_ID);
        return dialog.open();
    }

    private void loadOrgDetails() throws InvocationTargetException, InterruptedException {
        final IProgressService service = PlatformUI.getWorkbench().getProgressService();
        service.run(false, false, new IRunnableWithProgress() {
            @Override
            public void run(final IProgressMonitor monitor) throws InvocationTargetException {
                monitor.beginTask("Fetching organization details...", 3);
                monitor.worked(1);
View Full Code Here

TOP

Related Classes of org.eclipse.ui.progress.IProgressService

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.