Package org.eclipse.core.runtime

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


            throw new RuntimeException("Interactive not supported here!");
        }
        process = registerWithDebugPluginForProcessType(label, launch, p, processAttributes, config);

        // Registered the process with the debug plugin
        subMonitor.subTask("Done");
        return process;
    }

    /**
     * Actually creates the process (and create the encoding config file)
View Full Code Here


                public void worked(int work) {
                    m.worked(work);
                }

                public void subTask(String name) {
                    m.subTask(name);
                }

                public void setTaskName(String name) {
                    if (updateStatus == null) {
                        scheduleTaskNameChange();
View Full Code Here

  }

  public void subTask(String name) {
    IProgressMonitor monitor = getMonitor();
    if (monitor != null)
      monitor.subTask(name);
    this.subTaskName = name;
  }

  public void worked(int work) {
    IProgressMonitor monitor = getMonitor();
View Full Code Here

    if (pm == null)
      pm = new NullProgressMonitor();
    else if (pm.isCanceled())
      return false;

    pm.subTask(NLS.bind(CoreText.ProjectUtil_taskCheckingDirectory,
        directory.getPath()));

    final File[] contents = directory.listFiles();
    if (contents == null || contents.length == 0)
      return false;
View Full Code Here

  }

  public void subTask(String name) {
    IProgressMonitor monitor = getMonitor();
    if (monitor != null)
      monitor.subTask(name);
    this.subTaskName = name;
  }

  public void worked(int work) {
    IProgressMonitor monitor = getMonitor();
View Full Code Here

  private void onCancel() {
    if (fCurrentProgressMonitor != null && getShell() != null && !getShell().isDisposed()) {
      IProgressMonitor monitor = fCurrentProgressMonitor;
      monitor.setTaskName(Messages.ImportElementsPage_CANCEL_SEARCH);
      monitor.subTask(""); //$NON-NLS-1$
    }
  }

  private void openPreview(ISelection selection) {
    IStructuredSelection sel = (IStructuredSelection) selection;
View Full Code Here

   
    IProgressMonitor monitor= createProgressMonitor();
    monitor.beginTask("Computing proposals", fCategories.size() + 1);
    long setup= DEBUG ? System.currentTimeMillis() : 0;

    monitor.subTask("Collecting proposals");
    List proposals= collectProposals(viewer, offset, monitor);
    long collect= DEBUG ? System.currentTimeMillis() : 0;

    monitor.subTask("Sorting proposals");
    List filtered= filterAndSortProposals(proposals, monitor);
View Full Code Here

    monitor.subTask("Collecting proposals");
    List proposals= collectProposals(viewer, offset, monitor);
    long collect= DEBUG ? System.currentTimeMillis() : 0;

    monitor.subTask("Sorting proposals");
    List filtered= filterAndSortProposals(proposals, monitor);
    fNumberOfComputedResults= filtered.size();
    long filter= DEBUG ? System.currentTimeMillis() : 0;
   
    ICompletionProposal[] result= (ICompletionProposal[]) filtered.toArray(new ICompletionProposal[filtered.size()]);
View Full Code Here

    clearState();

    IProgressMonitor monitor= createProgressMonitor();
    monitor.beginTask("Computing contexts", fCategories.size() + 1);
   
    monitor.subTask("Collecting contexts");
    List proposals= collectContextInformation(viewer, offset, monitor);

    monitor.subTask("Sorting contexts");
    List filtered= filterAndSortContextInformation(proposals, monitor);
    fNumberOfComputedResults= filtered.size();
View Full Code Here

    monitor.beginTask("Computing contexts", fCategories.size() + 1);
   
    monitor.subTask("Collecting contexts");
    List proposals= collectContextInformation(viewer, offset, monitor);

    monitor.subTask("Sorting contexts");
    List filtered= filterAndSortContextInformation(proposals, monitor);
    fNumberOfComputedResults= filtered.size();
   
    IContextInformation[] result= (IContextInformation[]) filtered.toArray(new IContextInformation[filtered.size()]);
    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.