Package org.eclipse.ui.progress

Examples of org.eclipse.ui.progress.IProgressService


    // Suspend background jobs while we startup
    Job.getJobManager().suspend();

    // Register the build actions
    IProgressService service = PlatformUI.getWorkbench()
        .getProgressService();
    ImageDescriptor newImage = IDEInternalWorkbenchImages
        .getImageDescriptor(IDEInternalWorkbenchImages.IMG_ETOOL_BUILD_EXEC);
    service.registerIconForFamily(newImage,
        ResourcesPlugin.FAMILY_MANUAL_BUILD);
    service.registerIconForFamily(newImage,
        ResourcesPlugin.FAMILY_AUTO_BUILD);
  }
View Full Code Here


            }
        };

        job.schedule();

        IProgressService p = PlatformUI.getWorkbench().getProgressService();
        p.showInDialog(shell, job);
    }
View Full Code Here

            }
        };

        job.schedule();

        IProgressService p = PlatformUI.getWorkbench().getProgressService();
        p.showInDialog(shell, job);
    }
View Full Code Here

    boolean _canRunInBackground = query.canRunInBackground();
    if (_canRunInBackground) {
      NewSearchUI.runQueryInBackground(query);
    } else {
      IWorkbench _workbench = PlatformUI.getWorkbench();
      final IProgressService progressService = _workbench.getProgressService();
      final IStatus status = NewSearchUI.runQueryInForeground(progressService, query);
      boolean _matches = status.matches(((IStatus.ERROR + IStatus.INFO) + IStatus.WARNING));
      if (_matches) {
        ErrorDialog.openError(shell, "Search",
          ("Problems occurred while searching. " + "The affected files will be skipped."), status);
View Full Code Here

        return container;
    }

    private void fillProcessesList(final TableViewer tableViewer) {
        final IProgressService ps = PlatformUI.getWorkbench().getProgressService();
        try {
            ps.busyCursorWhile(new IRunnableWithProgress() {
                @Override
                public void run(final IProgressMonitor pm) {
                    final TracedProcess[] processesList = ProcessHelper
                            .getProcsOnTracedNodes();
                    TraceBackend.getInstance().setProcesses(processesList);
View Full Code Here

    mRunnable = runnable;
  }

  @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

    public boolean performFinish() {
        Display.getDefault().asyncExec(new Runnable(){
            public void run() {
                try {
                    IWorkbench wb = PlatformUI.getWorkbench();
                    IProgressService ps = wb.getProgressService();
                    ps.busyCursorWhile(new IRunnableWithProgress(){

                        public void run( IProgressMonitor pm ) {

                            String geopaparazziFolderPath = mainPage.getGeopaparazziFolderPath();
                            File geopapFolderFile = new File(geopaparazziFolderPath);
View Full Code Here

                return;
            }
        }

        IWorkbench wb = PlatformUI.getWorkbench();
        final IProgressService ps = wb.getProgressService();
        ps.busyCursorWhile(new IRunnableWithProgress(){
            public void run( IProgressMonitor pm ) {
                try {
                    op.op(Display.getDefault(), selectedLayer, pm);
                } catch (Exception e) {
                    e.printStackTrace();
View Full Code Here

       * types used in the method signature, eventually triggering the loading of
       * a plug-in (in this case ISearchQuery results in Search plug-in being loaded).
       */
      SearchUtil.runQueryInBackground(query);
    } else {
      IProgressService progressService= PlatformUI.getWorkbench().getProgressService();
      /*
       * This indirection with Object as parameter is needed to prevent the loading
       * of the Search plug-in: the Interpreter verifies the method call and hence loads the
       * types used in the method signature, eventually triggering the loading of
       * a plug-in (in this case it would be ISearchQuery).
View Full Code Here

    mRunnable = runnable;
  }

  @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

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.