Examples of worked()


Examples of org.jboss.forge.addon.ui.progress.UIProgressMonitor.worked()

      progressMonitor.subTask("Cloning repository in " + tempDir);

      // Clone repository
      cloneTo(projectRoot);

      progressMonitor.worked(1);
      progressMonitor.subTask("Installing project into local repository");
      // Build project
      Project project = projectFactory.findProject(projectRoot);
      if (project == null)
      {
View Full Code Here

Examples of org.openiaml.model.inference.InfiniteSubProgressMonitor.worked()

    try {
      loadedModel = ModelLoader.load(o);
    } catch (ModelLoadException e) {
      return errorStatus(e);
    }
    monitor.worked(10);
   
    // load the handler to remove elements
    EcoreInferenceHandler handler = new EcoreInferenceHandler(loadedModel.eResource());
   
    // actually remove the edges
View Full Code Here

Examples of org.openstreetmap.josm.gui.progress.ProgressMonitor.worked()

                        i++;
                        monitor.subTask(tr("Fixing ({0}/{1}): ''{2}''", i, testErrors.size(),error.getMessage()));
                        if (this.canceled)
                            return;
                        fixError(error);
                        monitor.worked(1);
                    }
                } finally {
                    SwingUtilities.invokeAndWait(new Runnable() {
                        @Override
                        public void run() {
View Full Code Here

Examples of org.springframework.richclient.progress.ProgressMonitor.worked()

                        tr.get(ID + ".downloadQuestion"), JOptionPane.YES_NO_OPTION);
                if (resultDownload == JOptionPane.YES_OPTION) {
                    String str = "http://peat_hal.users.sourceforge.net/sessions_catalog.j1";
                    bar.setMessage(tr.get("downloadFrom", str));
                    istream = new UrlResource(str).getInputStream();
                    pm.worked(5);
                    bar.setMessage("");
                }

                pm.taskStarted(tr.get(ID + ".startTask"), -1);
                pm.worked(10);
View Full Code Here

Examples of org.springframework.richclient.progress.ProgressMonitor.worked()

                    pm.worked(5);
                    bar.setMessage("");
                }

                pm.taskStarted(tr.get(ID + ".startTask"), -1);
                pm.worked(10);

                ImportJavaOne importer = new ImportJavaOne();
                ImportJavaOne.overwriteSettings(settings);
                FastMap<String, Person> persons = new FastMap<String, Person>();
                // TODO update progres:
View Full Code Here

Examples of org.springframework.richclient.progress.ProgressMonitor.worked()

                Collection<JavaOneInterval> coll = importer.parse(istream);
                double tmp = 80.0 / (coll.size() + 1);
                int counter = 0;
                Dao<Event> eDao = dataPool.getDao(Event.class);
                for (JavaOneInterval ev : coll) {
                    pm.worked(10 + (int) (counter * tmp));
                    counter++;
                    Event event = eDao.create();
                    if (ev.getStart() >= 0 && ev.getDuration() > 0) {
                        IntervalInt si = settings.toInterval(ev.getStartDateTime(), ev.getEndDateTime());
                        if (si != null)
View Full Code Here

Examples of org.springframework.richclient.progress.ProgressMonitor.worked()

                            p.addEvent(event, Role.TEACHER, true);
                        }
                    }
                    eDao.attach(event);
                }
                pm.worked(90);
                dataPool.getDao(Person.class).attachAll(persons.values());
                pm.worked(100);
            }

            @Override
View Full Code Here

Examples of org.springframework.richclient.progress.ProgressMonitor.worked()

                    }
                    eDao.attach(event);
                }
                pm.worked(90);
                dataPool.getDao(Person.class).attachAll(persons.values());
                pm.worked(100);
            }

            @Override
            protected void done() {
                openAllViews();
View Full Code Here

Examples of org.tmatesoft.hg.util.ProgressSupport.worked()

      final CancelSupport cancel = getCancelSupport(insp, true);
      int fileRevIndex1 = fileRevIndex(df, startRevIndex);
      int fileRevIndex2 = fileRevIndex(df, endRevIndex);
      BlameHelper bh = new BlameHelper(insp);
      bh.prepare(df, startRevIndex, endRevIndex);
      progress.worked(1);
      cancel.checkCancelled();
      bh.diff(fileRevIndex1, startRevIndex, fileRevIndex2, endRevIndex);
      progress.worked(1);
      cancel.checkCancelled();
    } catch (HgRuntimeException ex) {
View Full Code Here

Examples of org.tmatesoft.hg.util.ProgressSupport.worked()

      BlameHelper bh = new BlameHelper(insp);
      bh.prepare(df, startRevIndex, endRevIndex);
      progress.worked(1);
      cancel.checkCancelled();
      bh.diff(fileRevIndex1, startRevIndex, fileRevIndex2, endRevIndex);
      progress.worked(1);
      cancel.checkCancelled();
    } catch (HgRuntimeException ex) {
      throw new HgLibraryFailureException(ex);
    } finally {
      progress.done();
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.