Package org.eclipse.core.runtime

Examples of org.eclipse.core.runtime.IProgressMonitor.done()


                sub.beginTask("Bytecode Outline: comparing...", 100); //$NON-NLS-1$

                return differencer.findDifferences(
                    false, sub, null, null, left, right);
            } finally {
                sub.done();
            }
        } catch (OperationCanceledException e) {
            throw new InterruptedException(e.getMessage());
        } finally {
            monitor.done();
View Full Code Here


                    nextJob.schedule();
                    nextJob.join();
                }
                Job finishingJob = new Job("finishing") {
            protected IStatus run(IProgressMonitor monitor) {
              monitor.done();
              return Status.OK_STATUS;
            }
                };
                finishingJob.setProgressGroup(monitor, 0);
                finishingJob.schedule();
View Full Code Here

                if (t != null && originalPriority > -1 && t.isAlive())
                  t.setPriority(originalPriority);
              }
            } finally {
              if (subProgress != null)
                subProgress.done();
            }
        }
      }
      status = searchJob.execute(progress == null ? null : new SubProgressMonitor(progress, concurrentJobWork));
    } finally {
View Full Code Here

        } finally {
            if (connectedCU != null) {
                connectedCU.discardWorkingCopy();
            }
            monitorInternal.done();
        }
    }

    private CompilationUnit createASTForImports(ICompilationUnit cu) {
        ASTParser parser = ASTParser.newParser(ASTProvider.SHARED_AST_LEVEL);
View Full Code Here

                  // Do not let service creation errors
                  // stop the application deployment
                  CloudFoundryPlugin.log(e);
                }
                finally {
                  subMonitor.done();
                }
              }

            }
            else {
View Full Code Here

            // Do not let this error propagate, as failing to write
            // to the manifest should not stop the app's deployment
            CloudFoundryPlugin.logError(ce);
          }
          finally {
            subMonitor.done();
          }
        }

        return configuration[0];
      }
View Full Code Here

                        monitor.beginTask("Processing "
                                + textEditor.getEditorInput().getName(),
                                IProgressMonitor.UNKNOWN);
                        doAction(sel, textEditor);
                    } finally {
                        monitor.done();
                    }
                }
            };

            try {
View Full Code Here

                SubProgressMonitor _subProgressMonitor_2 = new SubProgressMonitor(monitor, 1);
                ErlProject.this.workspaceProject.setDescription(description, _subProgressMonitor_2);
                SubProgressMonitor _subProgressMonitor_3 = new SubProgressMonitor(monitor, 1);
                ErlProject.this.workspaceProject.setDefaultCharset("UTF-8", _subProgressMonitor_3);
              } finally {
                monitor.done();
              }
            } catch (Throwable _e) {
              throw Exceptions.sneakyThrow(_e);
            }
          }
View Full Code Here

            } catch (final CoreException e) {
                displayErrorNotification(rpcErrorMsg);
            } catch (final IOException e) {
                displayErrorNotification(rpcErrorMsg);
            } finally {
                monitor.done();
            }
        }

    }
View Full Code Here

            /* (non-Javadoc)
             * @see org.eclipse.core.runtime.IProgressMonitor#done()
             */
            public void done() {
                progressDelegate.done();
            }

            /* (non-Javadoc)
             * @see org.eclipse.core.runtime.IProgressMonitor#internalWorked(double)
             */
 
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.