Package org.openiaml.model.inference

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


  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) {
      return errorStatus(e);
    }
View Full Code Here


   
    if (monitor.isCanceled())
      return Status.CANCEL_STATUS;
   
    // save it
    monitor.subTask("Saving");
    loadedModel.eResource().save(getSaveOptions());
   
    // finished
    monitor.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.