Package org.eclipse.core.runtime

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


                    projectDiffs.add(new ProjectDiff(project, jarDiffs));
                }
                if (mon.isCanceled()) {
                    return Status.CANCEL_STATUS;
                }
                mon.worked(1);
            }

            if (projectDiffs.size() == 0) {
                Runnable runnable = new Runnable() {
                    @Override
View Full Code Here


      final List<ProjectDiff> projectDiffs = new ArrayList<ProjectDiff>();
      mon.setTaskName(Messages.processingProjects);
      for (Project project : orderedProjects) {
        IProject eProject = ReleaseUtils.getProject(project);
                if (!isIncluded(eProject)) {
                    mon.worked(1);
                    continue;
                }
        if (eProject == null || !eProject.isOpen() || !eProject.isAccessible()) {
                  mon.worked(1);
          continue;
View Full Code Here

                if (!isIncluded(eProject)) {
                    mon.worked(1);
                    continue;
                }
        if (eProject == null || !eProject.isOpen() || !eProject.isAccessible()) {
                  mon.worked(1);
          continue;
        }
        List<Builder> builders = project.getBuilder(null)
            .getSubBuilders();
        List<Baseline> jarDiffs = null;
View Full Code Here

          projectDiffs.add(new ProjectDiff(project, jarDiffs));
        }
        if (mon.isCanceled()) {
          return Status.CANCEL_STATUS;
        }
        mon.worked(1);
      }

      if (projectDiffs.size() == 0) {
        Runnable runnable = new Runnable() {
          public void run() {
View Full Code Here

    LineString splitter = getSplittingLineInMapCRS(handler);
    assert splitter.getUserData() instanceof CoordinateReferenceSystem;

    FeatureCollection<SimpleFeatureType, SimpleFeature> featuresToSplit = getFeaturesToSplit(splitter);
    prepMonitor.worked(2);

    final List<UndoableMapCommand> undoableCommands = new ArrayList<UndoableMapCommand>();

    List<UndoableMapCommand> commands = buildCommandList(featuresToSplit, splitter);
    undoableCommands.addAll(commands);
View Full Code Here

    final List<UndoableMapCommand> undoableCommands = new ArrayList<UndoableMapCommand>();

    List<UndoableMapCommand> commands = buildCommandList(featuresToSplit, splitter);
    undoableCommands.addAll(commands);
    prepMonitor.worked(3);

    prepMonitor.done();

    if (undoableCommands.size() == 0) {
            ProjectPlugin.log("The split did not apply to any feature"); //$NON-NLS-1$
View Full Code Here

                }               
                java.awt.Point p = getContext().worldToPixel(worldLocation);
                g.fillOval(p.x, p.y, 10, 10);
                String name = row[nameIndex];
                g.drawString(name, p.x + 15, p.y + 15);
                drawMonitor.worked(1);

                if (drawMonitor.isCanceled())
                    break;
            }
            drawMonitor.done();           
View Full Code Here

            monitor = monitor2;
        try {
            if (adaptee == null)
                return null;
            monitor.beginTask(Messages.CatalogImpl_resolving + adaptee.getSimpleName(), 2);
            monitor.worked(1);
            if (adaptee.isAssignableFrom(CatalogImpl.class))
                return adaptee.cast(this);
            if (adaptee.isAssignableFrom(CatalogInfoImpl.class))
                return adaptee.cast(metadata);
            if (adaptee.isAssignableFrom(services.getClass()))
View Full Code Here

            if (adaptee.isAssignableFrom(List.class))
                return adaptee.cast(new LinkedList<IService>(services));
            if (adaptee.isAssignableFrom(catalogListeners.getClass()))
                return adaptee.cast(getListenersCopy());
        } finally {
            monitor.worked(1);
            monitor.done();
        }
        return null;
    }
View Full Code Here

    {
      IPath destination = generateImageDestination(cls, ".png");
      monitor.subTask("Saving PNG image " + destination.lastSegment());
      CopyToImageUtil img = getCopyToImageUtil();
      img.copyToImage(part, destination, ImageFileFormat.PNG, new SubProgressMonitor(monitor, 1));
      saveMonitor.worked(1);
    }

    // issue 193: then save as svg
    {
      IPath destination = generateImageDestination(cls, ".svg");
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.