Package org.eclipse.core.runtime

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


      if (monitor.isCanceled())
        throw new InterruptedException();
      else
        throw new InvocationTargetException(e);
    } finally {
      monitor.done();
      if (repository != null)
        repository.close();
    }
  }
View Full Code Here


      for (DirCacheEditor editor:edits.values())
        if (editor.getDirCache() != null)
          editor.getDirCache().unlock();
      edits.clear();
      mappings.clear();
      monitor.done();
    }
  }

  /* (non-Javadoc)
   * @see org.eclipse.egit.core.op.IEGitOperation#getSchedulingRule()
View Full Code Here

  }

  public void done() {
    IProgressMonitor monitor = getMonitor();
    if (monitor != null)
      monitor.done();
    this.worked = 0;
    this.subTaskName = ""; //$NON-NLS-1$
  }

  public void internalWorked(double work) {
View Full Code Here

    } catch (CoreException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }

    monitor.done();   

    return true;
  }

  @Override
View Full Code Here

    } catch (CoreException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }

    monitor.done();   

    return true;
  }
 
  @Override
View Full Code Here

    List filtered= filterAndSortProposals(proposals, monitor);
    fNumberOfComputedResults= filtered.size();
    long filter= DEBUG ? System.currentTimeMillis() : 0;
   
    ICompletionProposal[] result= (ICompletionProposal[]) filtered.toArray(new ICompletionProposal[filtered.size()]);
    monitor.done();
   
    if (DEBUG) {
      System.err.println("Code Assist Stats (" + result.length + " proposals)"); //$NON-NLS-1$ //$NON-NLS-2$
      System.err.println("Code Assist (setup):\t" + (setup - start) ); //$NON-NLS-1$
      System.err.println("Code Assist (collect):\t" + (collect - setup) ); //$NON-NLS-1$
View Full Code Here

    monitor.subTask("Sorting contexts");
    List filtered= filterAndSortContextInformation(proposals, monitor);
    fNumberOfComputedResults= filtered.size();
   
    IContextInformation[] result= (IContextInformation[]) filtered.toArray(new IContextInformation[filtered.size()]);
    monitor.done();
    return result;
  }

  private List collectContextInformation(ITextViewer viewer, int offset, IProgressMonitor monitor) {
    List proposals= new ArrayList();
View Full Code Here

            monitor.subTask(String.format("Saving diagram to %s format", marshaller.getFormatName()));
            invokeExportMarshaller(marshaller, diagram, subMonitor);
          } finally {
            // enforce calling of done() if the client hasn't
            // done so itself
            subMonitor.done();
          }
        }
      }
    } finally {
      monitor.done();
View Full Code Here

        } catch (InvalidConfigurationException e) {
            throw new BuildException(e.getMessage());
        } catch (InterruptedException e) {
            throw new BuildException("Cancelled by user");
        } finally {
            monitor.done();
        }

        for (String warning : warnings) {
            log(warning, Project.MSG_WARN);
        }
View Full Code Here

          ((IReloadableBeansConfig) config).reload();
          config.getBeans();
          subMonitor.worked(1);
        }
      }
      subMonitor.done();
    }
  }

  /**
   * {@inheritDoc}
 
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.