Tabnine Logo
IProgressMonitor.worked
Code IndexAdd Tabnine to your IDE (free)

How to use
worked
method
in
org.eclipse.core.runtime.IProgressMonitor

Best Java code snippets using org.eclipse.core.runtime.IProgressMonitor.worked (Showing top 20 results out of 1,503)

origin: pentaho/pentaho-kettle

public void worked( int nrWorks ) {
 monitor.worked( nrWorks );
}
origin: pentaho/pentaho-kettle

monitor.worked( 1 );
if ( monitor.isCanceled() ) {
 return null;
monitor.worked( 1 );
monitor
  .beginTask( BaseMessages.getString( PKG, "GetXMLDateLoopNodesImportProgressDialog.Task.ReadingDocument" ), 1 );
 monitor.worked( 1 );
 monitor.beginTask( BaseMessages.getString( PKG, "GetXMLDateLoopNodesImportProgressDialog.Task.DocumentOpened" ),
   1 );
 monitor.worked( 1 );
 monitor.beginTask( BaseMessages.getString( PKG, "GetXMLDateLoopNodesImportProgressDialog.Task.ReadingNode" ), 1 );
 monitor.worked( 1 );
 monitor.subTask( BaseMessages.getString( PKG, "GetXMLDateLoopNodesImportProgressDialog.Task.FetchNodes" ) );
 monitor.worked( 1 );
} finally {
 try {
origin: pentaho/pentaho-kettle

monitor.worked( 1 );
if ( monitor.isCanceled() ) {
 return null;
monitor.worked( 1 );
monitor
  .beginTask( BaseMessages.getString( PKG, "GetXMLDateLoopNodesImportProgressDialog.Task.ReadingDocument" ), 1 );
 monitor.worked( 1 );
 monitor.beginTask( BaseMessages.getString( PKG, "GetXMLDateLoopNodesImportProgressDialog.Task.DocumentOpened" ),
   1 );
 monitor.worked( 1 );
 monitor.beginTask( BaseMessages.getString( PKG, "GetXMLDateLoopNodesImportProgressDialog.Task.ReadingNode" ), 1 );
 monitor.worked( 1 );
 monitor.subTask( BaseMessages.getString( PKG, "GetXMLDateLoopNodesImportProgressDialog.Task.FetchNodes" ) );
 monitor.worked( 1 );
} finally {
 try {
origin: pentaho/pentaho-kettle

private void addLoopXPath( Node node, IProgressMonitor monitor ) {
 Element ce = (Element) node;
 monitor.worked( 1 );
 // List child
 for ( int j = 0; j < ce.nodeCount(); j++ ) {
  if ( monitor.isCanceled() ) {
   return;
  }
  Node cnode = ce.node( j );
  if ( !Utils.isEmpty( cnode.getName() ) ) {
   Element cce = (Element) cnode;
   if ( !listpath.contains( cnode.getPath() ) ) {
    nr++;
    monitor.subTask( BaseMessages.getString( PKG, "GetXMLDateLoopNodesImportProgressDialog.Task.FetchNodes",
      String.valueOf( nr ) ) );
    monitor.subTask( BaseMessages.getString( PKG, "GetXMLDateLoopNodesImportProgressDialog.Task.AddingNode",
      cnode.getPath() ) );
    listpath.add( cnode.getPath() );
   }
   // let's get child nodes
   if ( cce.nodeCount() > 1 ) {
    addLoopXPath( cnode, monitor );
   }
  }
 }
}
origin: pentaho/pentaho-kettle

progressMonitor.worked( worked );
origin: pentaho/pentaho-kettle

   + linenr ) );
 if ( samples > 0 ) {
  monitor.worked( 1 );
monitor.worked( 1 );
monitor.setTaskName( BaseMessages.getString( PKG, "TextFileCSVImportProgressDialog.Task.AnalyzingResults" ) );
monitor.worked( 1 );
monitor.done();
origin: pentaho/pentaho-kettle

  + linenr ) );
 if ( samples > 0 ) {
  monitor.worked( 1 );
monitor.worked( 1 );
monitor.setTaskName( BaseMessages.getString( PKG, "TextFileCSVImportProgressDialog.Task.AnalyzingResults" ) );
monitor.worked( 1 );
monitor.done();
origin: pentaho/pentaho-kettle

 monitor.worked( 0 );
 JobEntryCopy previous = start;
  previous = jectrans;
  monitor.worked( 1 );
 monitor.worked( 100 );
 monitor.done();
} catch ( Exception e ) {
origin: de.dentrassi.eclipse.neoscada.utils/org.eclipse.scada.ui.utils

@Override
public void worked ( final int work )
{
  this.monitor.worked ( work );
}
origin: org.eclipse/org.eclipse.jdt.ui

public Change createChange(IProgressMonitor pm) throws CoreException, OperationCanceledException {
  if (pm != null) {
    pm.beginTask("", 1); //$NON-NLS-1$
    pm.worked(1);
    pm.done();
  }
  return fChange;
}

origin: org.eclipse.jdt/org.eclipse.jdt.core

  protected void worked(IProgressMonitor monitor, int work) {
    if (monitor != null) {
      if (monitor.isCanceled()) {
        throw new OperationCanceledException();
      } else {
        monitor.worked(work);
      }
    }
  }
/**
origin: org.eclipse.tycho/org.eclipse.jdt.core

  protected void worked(IProgressMonitor monitor, int work) {
    if (monitor != null) {
      if (monitor.isCanceled()) {
        throw new OperationCanceledException();
      } else {
        monitor.worked(work);
      }
    }
  }
/**
origin: org.eclipse.tycho/org.eclipse.jdt.core

public void worked(int work) {
  IProgressMonitor monitor = getMonitor();
  if (monitor != null)
    monitor.worked(work);
  synchronized(this) {
    this.worked += work;
  }
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

@Override
public RefactoringStatus checkInitialConditions(IProgressMonitor pm) throws CoreException, OperationCanceledException {
  if (pm != null) {
    pm.beginTask("", 1); //$NON-NLS-1$
    pm.worked(1);
    pm.done();
  }
  return new RefactoringStatus();
}
origin: org.eclipse/org.eclipse.jdt.ui

  private void progressMonitorWorked(int work) {
    if (fProgressMonitor != null) {
      fProgressMonitor.worked(work);
      if (fProgressMonitor.isCanceled()) {
        throw new OperationCanceledException();
      }
    }
  }
}
origin: org.eclipse.pde/org.eclipse.pde.ui

@Override
protected void execute(IProgressMonitor monitor) throws CoreException, InvocationTargetException, InterruptedException {
  monitor.beginTask(PDEUIMessages.NewCategoryDefinitionWizard_creatingManifest, 2);
  IFile file = createSiteManifest();
  monitor.worked(1);
  openFile(file);
  monitor.worked(1);
}
origin: org.eclipse/org.eclipse.ltk.core.refactoring

/**
 * {@inheritDoc}
 */
public RefactoringStatus isValid(IProgressMonitor pm) throws CoreException {
  pm.beginTask("", 1); //$NON-NLS-1$
  RefactoringStatus result= TextChanges.isValid(fDocument, fLength);
  pm.worked(1);
  return result;
}
origin: org.eclipse/org.eclipse.ltk.core.refactoring

public final void initializeValidationData(final IProgressMonitor monitor) {
  monitor.beginTask("", 1); //$NON-NLS-1$
  fValidationState= BufferValidationState.create(fFile);
  monitor.worked(1);
}
origin: eclipse/eclipse.jdt.ls

@Override
protected void addOccurrences(TextChangeManager manager, IProgressMonitor pm, RefactoringStatus status) throws CoreException {
  pm.beginTask("", 1); //$NON-NLS-1$
  // declaration update must be registered first
  addDeclarationUpdate(manager);
  if (getUpdateReferences()) {
    addReferenceUpdates(manager, pm);
  }
  pm.worked(1);
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

private void isValid(RefactoringStatus result, IPackageFragment pack, IProgressMonitor pm) throws JavaModelException {
  ICompilationUnit[] units= pack.getCompilationUnits();
  pm.beginTask("", units.length); //$NON-NLS-1$
  for (int i= 0; i < units.length; i++) {
    pm.subTask(Messages.format(RefactoringCoreMessages.RenamePackageChange_checking_change, JavaElementLabels.getElementLabel(pack, JavaElementLabels.ALL_DEFAULT)));
    checkIfModifiable(result, units[i].getResource(), VALIDATE_NOT_READ_ONLY | VALIDATE_NOT_DIRTY);
    pm.worked(1);
  }
  pm.done();
}
org.eclipse.core.runtimeIProgressMonitorworked

Javadoc

Notifies that a given number of work unit of the main task has been completed. Note that this amount represents an installment, as opposed to a cumulative amount of work done to date.

Popular methods of IProgressMonitor

  • done
    Notifies that the work is done; that is, either the main task is completed or the user canceled it.
  • beginTask
    Notifies that the main task is beginning. This must only be called once on a given progress monitor
  • isCanceled
    Returns whether cancelation of current operation has been requested. Long-running operations should
  • subTask
    Notifies that a subtask of the main task is beginning. Subtasks are optional; the main task might no
  • setTaskName
    Sets the task name to the given value. This method is used to restore the task label after a nested
  • setCanceled
    Sets the cancel state to the given value.
  • internalWorked
    Internal method to handle scaling correctly. This method must not be called by a client. Clients sho

Popular in Java

  • Making http requests using okhttp
  • setContentView (Activity)
  • requestLocationUpdates (LocationManager)
  • getSharedPreferences (Context)
  • Kernel (java.awt.image)
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • JTextField (javax.swing)
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now