Package org.eclipse.core.runtime

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


                if (command instanceof PostDeterminedEffectCommand) {
                    ((PostDeterminedEffectCommand)command).execute(submonitor);
                }else{
                    command.run(submonitor);
                }
                submonitor.done();
            }
        }
        return !commandsRan.isEmpty();
    }
View Full Code Here


        monitor.worked(2);
        for( UndoableMapCommand command : commandsRan ) {
            command.setMap(getMap());
            IProgressMonitor submonitor = new SubProgressMonitor(monitor, 10);
            command.rollback(submonitor);
            submonitor.done();
        }
    }
   

    public void run( IProgressMonitor monitor ) throws Exception {
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

    } catch (CoreException e) {
      if (DLTKCore.DEBUG_PARSER) {
        e.printStackTrace();
      }
    }
    monitor.done();
  }

  private IPath[] generateResources(ModuleDeclaration moduleDeclaration, IPath outputPath,
          IContainer container, ISourceModule sourceModule) throws CoreException {
    List<IPath> result = new ArrayList<IPath>();
View Full Code Here

    monitor.subTask(SSEUIMessages.ContentAssist_sorting_proposals);
    List filtered = filterAndSortProposals(proposals, monitor, context);
    fNumberOfComputedResults= filtered.size();

    ICompletionProposal[] result= (ICompletionProposal[]) filtered.toArray(new ICompletionProposal[filtered.size()]);
    monitor.done();

    return result;
  }

  /**
 
View Full Code Here

    monitor.subTask(SSEUIMessages.ContentAssist_sorting_contexts);
    List filtered= filterAndSortContextInformation(proposals, monitor);
    fNumberOfComputedResults= filtered.size();

    IContextInformation[] result= (IContextInformation[]) filtered.toArray(new IContextInformation[filtered.size()]);
    monitor.done();
    return result;
  }

  /**
   * <p>Default implementation is to return <code>null</code></p>
View Full Code Here

                        return;
                    }
                }
            } finally {
                // Inform others for progress...
                remoteProgress.done();
            }

        } finally {
            monitor.done();
            lock.unlock();
View Full Code Here

    monitor.subTask(SSEUIMessages.ContentAssist_sorting_proposals);
    List filtered = filterAndSortProposals(proposals, monitor, context);
    fNumberOfComputedResults= filtered.size();

    ICompletionProposal[] result= (ICompletionProposal[]) filtered.toArray(new ICompletionProposal[filtered.size()]);
    monitor.done();

    return result;
  }

  /**
 
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.