Codota Logo
IProgressMonitor.worked
Code IndexAdd Codota 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)

  • Common ways to obtain IProgressMonitor
private void myMethod () {
IProgressMonitor i =
  • Codota Iconnew NullProgressMonitor()
  • Codota IconPolicy.monitorFor(null)
  • Codota IconJavaModelOperation javaModelOperation;javaModelOperation.getSubProgressMonitor(workAmount)
  • Smart code suggestions by Codota
}
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

public void worked(int work) {
  IProgressMonitor monitor = getMonitor();
  if (monitor != null)
    monitor.worked(work);
  synchronized(this) {
    this.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.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

public final void initializeValidationData(final IProgressMonitor monitor) {
  monitor.beginTask("", 1); //$NON-NLS-1$
  fValidationState= BufferValidationState.create(fFile);
  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: 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

  • Updating database using SQL prepared statement
  • getApplicationContext (Context)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • getSharedPreferences (Context)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • JComboBox (javax.swing)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now