Examples of beginTask()


Examples of org.eclipse.core.runtime.SubProgressMonitor.beginTask()

    DiagramEditPart part = editor.getDiagramEditPart();
   
    // save this image
    // (even if there isn't anything in it)
    IProgressMonitor saveMonitor = new SubProgressMonitor(monitor, 2);
    saveMonitor.beginTask("Saving image for " + cls.getName(), 2);
   
    // issue 193: first save as png
    {
      IPath destination = generateImageDestination(cls, ".png");
      monitor.subTask("Saving PNG image " + destination.lastSegment());
View Full Code Here

Examples of org.eclipse.core.runtime.SubProgressMonitor.beginTask()

    DiagramEditPart part = editor.getDiagramEditPart();
   
    // save this image if there is something in it
    if (part.getChildren().size() > 0) {
      IProgressMonitor saveMonitor = new SubProgressMonitor(monitor, 1);
      saveMonitor.beginTask("Saving container " + part.resolveSemanticElement(), 1 + formats.size());
      for (ImageFileFormat format : formats) {
        IPath destination = generateImageDestination(container, format);
        monitor.subTask("Saving image " + destination.lastSegment() + " ( " + format.getName() + ")");
        CopyToImageUtil img = getCopyToImageUtil();
        img.copyToImage(part, destination, format, new SubProgressMonitor(monitor, 1));
View Full Code Here

Examples of org.eclipse.jgit.lib.ProgressMonitor.beginTask()

    if (sideBand) {
      SideBandProgressMonitor pm = new SideBandProgressMonitor(msgOut);
      pm.setDelayStart(250, TimeUnit.MILLISECONDS);
      updating = pm;
    }
    updating.beginTask(JGitText.get().updatingReferences, toApply.size());
    for (ReceiveCommand cmd : toApply) {
      updating.update(1);
      execute(cmd);
    }
    updating.endTask();
View Full Code Here

Examples of org.eclipse.ui.internal.dialogs.EventLoopProgressMonitor.beginTask()

   
    // Create save block.
    IRunnableWithProgress progressOp = new IRunnableWithProgress() {
      public void run(IProgressMonitor monitor) {
        IProgressMonitor monitorWrap = new EventLoopProgressMonitor(monitor);
        monitorWrap.beginTask(WorkbenchMessages.Save, dirtyModels.size());
        for (Iterator i = dirtyModels.iterator(); i.hasNext();) {
          Saveable model = (Saveable) i.next();
          // handle case where this model got saved as a result of saving another
          if (!model.isDirty()) {
            monitor.worked(1);
View Full Code Here

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

      // TODO: Option to save sources?
      File tempDir = OperatingSystemUtils.createTempDir();
      DirectoryResource projectRoot = resourceFactory.create(DirectoryResource.class, tempDir);
      UIProgressMonitor progressMonitor = context.getProgressMonitor();
      UIOutput output = context.getUIContext().getProvider().getOutput();
      progressMonitor.beginTask("Installing Addon from Git", 4);

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

      // Clone repository
      cloneTo(projectRoot);
View Full Code Here

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

   */
  @Override
  public IStatus doExecute(IFile o, IProgressMonitor monitor2) throws InferenceException, FileNotFoundException, IOException, CoreException {
    IProgressMonitor monitor = new InfiniteSubProgressMonitor(monitor2, 100);
   
    monitor.beginTask("Removing phantom edges: '" + o.getName() + "'", 60);
   
    monitor.subTask("Loading model");
    try {
      loadedModel = ModelLoader.load(o);
    } catch (ModelLoadException e) {
View Full Code Here

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

            System.exit(0);
        }

        final SplashScreen splash = new SplashScreen();
        final ProgressMonitor monitor = splash.getProgressMonitor();
        monitor.beginTask(tr("Initializing"));
        splash.setVisible(Main.pref.getBoolean("draw.splashscreen", true));
        Main.setInitStatusListener(new InitStatusListener() {

            @Override
            public void updateStatus(String event) {
View Full Code Here

Examples of org.openstreetmap.josm.gui.progress.SwingRenderingProgressMonitor.beginTask()

        return model;
    }

    protected void launchSafeAndUploadTask() {
        ProgressMonitor monitor = new SwingRenderingProgressMonitor(pnlUploadLayers);
        monitor.beginTask(tr("Uploading and saving modified layers ..."));
        this.saveAndUploadTask = new SaveAndUploadTask(model, monitor);
        new Thread(saveAndUploadTask).start();
    }

    protected void cancelSafeAndUploadTask() {
View Full Code Here

Examples of org.terasology.monitoring.impl.SingleThreadMonitor.beginTask()

    private ThreadMonitor() {
    }

    public static ThreadActivity startThreadActivity(String activityName) {
        SingleThreadMonitor monitor = getMonitor();
        monitor.beginTask(activityName);
        return new ThreadActivityInternal(monitor);

    }

    public static synchronized List<SingleThreadMonitor> getThreadMonitors(List<SingleThreadMonitor> output, boolean aliveThreadsOnly) {
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.