Package org.eclipse.ui.progress

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


    }

    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


        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

            }
        }

        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

        }
      };
        };
       
      try {
      service.busyCursorWhile(runnable);
    } catch (InvocationTargetException e) {
      e.getMessage();
      return;
    } catch (InterruptedException e) {
      return;
View Full Code Here

        getContainer().run(true, true, runnable);
      } else if (getSearchContainer() != null) {
        getSearchContainer().getRunnableContext().run(true, true, runnable);
      } else {
        IProgressService service = PlatformUI.getWorkbench().getProgressService();
        service.busyCursorWhile(runnable);
      }
    } catch (InvocationTargetException e) {
      ((AbstractRedmineRepositoryQueryPage)getContainer().getCurrentPage()).setErrorMessage(e.getMessage());
      return;
    } catch (InterruptedException e) {
View Full Code Here

        throws Exception {
      final Map<IJavaProject, IMarker[]> problems = new HashMap<IJavaProject, IMarker[]>();
      final List<Exception> exceptionHolder = new ArrayList<Exception>();
      IWorkbench wb = PlatformUI.getWorkbench();
      IProgressService ps = wb.getProgressService();
      ps.busyCursorWhile(new IRunnableWithProgress() {
        public void run(IProgressMonitor progressMonitor) {
          try {
            IProgress progress = new SwtProgressImpl(
                progressMonitor);
            ProjectUtils.updateProjectLocations(progress);
View Full Code Here

    super();
    final List<Throwable> exceptions = new ArrayList<Throwable>();
    IWorkbench wb = PlatformUI.getWorkbench();
    IProgressService ps = wb.getProgressService();
    try {
      ps.busyCursorWhile(new IRunnableWithProgress() {
        public void run(final IProgressMonitor progressMonitor) {
          try {
            runTask(new SwtProgressImpl(progressMonitor));
          } catch (InterruptedException exc) {
            Thread.currentThread().interrupt();
View Full Code Here

  }
 
  protected void performLongRunningComputation_usingProgressDialog() throws OperationCancellation, CoreException {
    IProgressService ps = PlatformUI.getWorkbench().getProgressService();
    try {
      ps.busyCursorWhile(new IRunnableWithProgress() {
        @Override
        public void run(IProgressMonitor monitor) throws InterruptedException, InvocationTargetException {
          monitor.setTaskName(MessageFormat.format(MSG_EXECUTING_OPERATION, operationName));
         
          try {
View Full Code Here

      }

      final IProgressService progressService = PlatformUI.getWorkbench().getProgressService();

      final ExportMarshallerRunnable runnable = new ExportMarshallerRunnable(getDiagram(), ActivitiConstants.BPMN_MARSHALLER_NAME);
      progressService.busyCursorWhile(runnable);

    } catch (Exception e) {
      e.printStackTrace();
    }
  }
View Full Code Here

    } catch(Throwable e) {
      return;
    }
    final IProgressService progressService = PlatformUI.getWorkbench().getProgressService();
    try {
      progressService.busyCursorWhile(new IRunnableWithProgress() {

        @Override
        public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
         
          try {
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.