Examples of IWorkbenchSiteProgressService


Examples of org.eclipse.ui.progress.IWorkbenchSiteProgressService

    /* Create the Search Bar */
    createSearchBar(parent);

    /* Show Busy when reload occurs */
    IWorkbenchSiteProgressService service = (IWorkbenchSiteProgressService) fViewSite.getAdapter(IWorkbenchSiteProgressService.class);
    service.showBusyForFamily(Controller.getDefault().getReloadFamily());
  }
View Full Code Here

Examples of org.eclipse.ui.progress.IWorkbenchSiteProgressService

    /* Create the Search Bar */
    createSearchBar(parent);

    /* Show Busy when reload occurs */
    IWorkbenchSiteProgressService service = (IWorkbenchSiteProgressService) fViewSite.getAdapter(IWorkbenchSiteProgressService.class);
    service.showBusyForFamily(Controller.getDefault().getReloadFamily());
  }
View Full Code Here

Examples of org.eclipse.ui.progress.IWorkbenchSiteProgressService

    /* Create the Search Bar */
    createSearchBar(parent);

    /* Show Busy when reload occurs */
    IWorkbenchSiteProgressService service = (IWorkbenchSiteProgressService) fViewSite.getAdapter(IWorkbenchSiteProgressService.class);
    service.showBusyForFamily(Controller.getDefault().getReloadFamily());
  }
View Full Code Here

Examples of org.eclipse.ui.progress.IWorkbenchSiteProgressService

  public void run() {

    UIJob job = getUIJob();

    IWorkbenchSiteProgressService service = (IWorkbenchSiteProgressService) editorPage.getEditorSite().getService(
        IWorkbenchSiteProgressService.class);
    if (service != null) {
      service.schedule(job, 0L, true);
    }
    else {
      job.schedule();
    }
View Full Code Here

Examples of org.eclipse.ui.progress.IWorkbenchSiteProgressService

    Job job = getJob();
    runJob(job);
  }

  protected void runJob(Job job) {
    IWorkbenchSiteProgressService service = (IWorkbenchSiteProgressService) editorPage.getEditorSite().getService(
        IWorkbenchSiteProgressService.class);
    if (service != null) {
      service.schedule(job, 0L, true);
    }
    else {
      job.schedule();
    }
  }
View Full Code Here

Examples of org.eclipse.ui.progress.IWorkbenchSiteProgressService

        {
            asyncExec(new Runnable() {
                @Override
                public void run()
                {
                    IWorkbenchSiteProgressService progressService =
                        (IWorkbenchSiteProgressService)getSite().getAdapter(IWorkbenchSiteProgressService.class);
                   
                    progressService.decrementBusy();
                    progressService.warnOfContentChange();
                }
            });
        }
       
        stopWatchingFile();
View Full Code Here

Examples of org.eclipse.ui.progress.IWorkbenchSiteProgressService

           
            asyncExec(new Runnable() {
                @Override
                public void run()
                {
                    IWorkbenchSiteProgressService progressService =
                        (IWorkbenchSiteProgressService)getSite().getAdapter(IWorkbenchSiteProgressService.class);
                   
                    progressService.incrementBusy();
                }
            });       
        }
    }
View Full Code Here

Examples of org.eclipse.ui.progress.IWorkbenchSiteProgressService

               
                asyncExec(new Runnable() {
                    @Override
                    public void run()
                    {
                        IWorkbenchSiteProgressService progressService =
                            (IWorkbenchSiteProgressService)getSite().getAdapter(IWorkbenchSiteProgressService.class);
                       
                        progressService.decrementBusy();
                    }
                });
            }
        }
View Full Code Here

Examples of org.eclipse.ui.progress.IWorkbenchSiteProgressService

            .getPartsForSaveable(model);

        // this will cause the parts tabs to show the ongoing background operation
        for (int i = 0; i < parts.length; i++) {
          IWorkbenchPart workbenchPart = parts[i];
          IWorkbenchSiteProgressService progressService = (IWorkbenchSiteProgressService) workbenchPart
              .getSite().getAdapter(
                  IWorkbenchSiteProgressService.class);
          progressService.showBusyForFamily(model);
        }
        model.disableUI(parts, blockUntilSaved);
        // Add a listener for enabling the UI after the save job has
        // finished, and for displaying an error dialog if
        // necessary.
View Full Code Here

Examples of org.eclipse.ui.progress.IWorkbenchSiteProgressService

     * @see java.lang.Runnable#run()
     */
    public void run() {
      IWorkbenchPartSite site = editor.getEditorPart().getSite();
      final IWorkbenchWindow workbenchWindow = (site == null) ? null : site.getWorkbenchWindow();
      final IWorkbenchSiteProgressService jobService = (IWorkbenchSiteProgressService) ((site == null) ? null : site.getAdapter(IWorkbenchSiteProgressService.class));
      /*
       * Try to use the progress service so the workbench can give more
       * feedback to the user (although editors seem to make less use of
       * the service than views -
       * https://bugs.eclipse.org/bugs/show_bug.cgi?id=86221 .
       */
      if (workbenchWindow != null && jobService != null) {
        /*
         * Doc is ambiguous, but it must be run from the UI thread -
         * https://bugs.eclipse.org/bugs/show_bug.cgi?id=165180
         */
        try {
          jobService.runInUI(workbenchWindow, this, (ISchedulingRule) editor.getEditorPart().getEditorInput().getAdapter(IResource.class));
        }
        catch (InvocationTargetException e) {
          Logger.logException(e);
        }
        catch (InterruptedException e) {
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.