Package org.eclipse.core.runtime

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


        monitor.beginTask(Messages.AddFeaturesCommand_undoTaskMessage, commands.size()*2);
       
        for( int i=commands.size()-1; i>-1; i--){
            SubProgressMonitor subProgressMonitor = new SubProgressMonitor(monitor, 2);
            commands.get(i).rollback(subProgressMonitor);
            subProgressMonitor.done();
        }
        monitor.done();
    }

}
View Full Code Here


            handler.setCurrentState(EditState.BUSY);

            SubProgressMonitor submonitor = new SubProgressMonitor(monitor, 5);
            writeCommand.rollback(submonitor);
            submonitor.done();

            EditBlackboard bb = handler.getEditBlackboard(layer);
            bb.clear();
            for( EditGeom geom : geoms ) {
                addGeom(bb, geom);
View Full Code Here

            }
          }
        }
      } finally {
        if (subMonitor != null)
          subMonitor.done();
        manager.batchContainerInitializationsProgress.initializeAfterLoadMonitor.set(null);
      }

      // avoid leaking source attachment properties (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=183413 )
      // and recreate links for external folders if needed
View Full Code Here

      CopyToImageUtil img = getCopyToImageUtil();
      img.copyToImage(part, destination, ImageFileFormat.SVG, new SubProgressMonitor(monitor, 1));
      saveMonitor.worked(1);
    }

    saveMonitor.done();
   
    // close the editor once we're done
    // (this is done asynchronously, so there might still be things going on in the
    // editor when the monitor is marked 'done')
   
View Full Code Here

        monitor.subTask("Saving image " + destination.lastSegment() + " ( " + format.getName() + ")");
        CopyToImageUtil img = getCopyToImageUtil();
        img.copyToImage(part, destination, format, new SubProgressMonitor(monitor, 1));
        imagesSaved++;
      }
      saveMonitor.done();
    }
   
    // get children
    for (Object obj : part.getChildren()) {
      if (monitor.isCanceled())
View Full Code Here

      finalMonitor.worked(5);
    } catch (IOException e) {
      throw new ExportImageException("Could not export Latex page '" + latexDestination + "': " + e.getMessage(), e);
    }
   
    finalMonitor.done();
   
    // once finished, refresh parent (folder, project)
    try {
      targetDiagram.getParent().refreshLocal(IResource.DEPTH_INFINITE, new SubProgressMonitor(monitor, 5));
    } catch (CoreException e) {
View Full Code Here

      ae.destroy();
    }
    IFolder folder = outputFolder;
    folder.refreshLocal(IResource.DEPTH_INFINITE, new NullProgressMonitor());
    clearConsoleLink(handler);
    mon.done();
  }

  private static String getText(File each) {
    try {
      return org.apache.uima.pear.util.FileUtil.loadTextFile(each, "UTF-8");
View Full Code Here

    } catch (InterruptedException e) {
      reportError(e);
    } catch (CoreException e) {
      reportError(e);
    } finally {
      subMonitor.done();
    }
  }


  public Process rpcreate(IPath reposPath){
View Full Code Here

      subMonitor.worked(100);

    } catch (InterruptedException e) {
      reportError(e);
    } finally {
      subMonitor.done();
    }
  }

  public Process consumeWex() {
    writeToConsole("-- Import WEX at: " + wexFile);
View Full Code Here

    catch (IOException e1) {
      /* file is unreadable, create no property groups */
    }
    finally {
      groups = (PropertyGroup[]) groupList.toArray(new PropertyGroup[groupList.size()]);
      subMonitor.done();
    }

    if (groups == null) {
      groups = NO_PROPERTY_GROUPS;
    }
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.