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

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

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

Refine searchRefine arrow

  • IProgressMonitor.beginTask
origin: pentaho/pentaho-kettle

@SuppressWarnings( "unchecked" )
private String[] doScan( IProgressMonitor monitor ) throws Exception {
 monitor.beginTask( BaseMessages.getString( PKG, "GetXMLDateLoopNodesImportProgressDialog.Task.ScanningFile",
   filename ), 1 );
   .beginTask( BaseMessages.getString( PKG, "GetXMLDateLoopNodesImportProgressDialog.Task.ReadingDocument" ), 1 );
 if ( monitor.isCanceled() ) {
  return null;
  monitor.beginTask( BaseMessages.getString( PKG, "GetXMLDateLoopNodesImportProgressDialog.Task.DocumentOpened" ),
    1 );
  monitor.worked( 1 );
 monitor.done();
origin: pentaho/pentaho-kettle

@SuppressWarnings( "unchecked" )
private RowMetaAndData[] doScan( IProgressMonitor monitor ) throws Exception {
 monitor.beginTask( BaseMessages.getString( PKG, "GetXMLDateLoopNodesImportProgressDialog.Task.ScanningFile",
   filename ), 1 );
   .beginTask( BaseMessages.getString( PKG, "GetXMLDateLoopNodesImportProgressDialog.Task.ReadingDocument" ), 1 );
 if ( monitor.isCanceled() ) {
  return null;
  monitor.beginTask( BaseMessages.getString( PKG, "GetXMLDateLoopNodesImportProgressDialog.Task.DocumentOpened" ),
    1 );
  monitor.worked( 1 );
 monitor.done();
origin: pentaho/pentaho-kettle

public void run( IProgressMonitor monitor ) throws InvocationTargetException, InterruptedException {
 int size = transMeta.findNrPrevSteps( stepInfo );
 try {
  if ( before ) {
   monitor.beginTask( BaseMessages.getString(
    PKG, "SearchFieldsProgressDialog.Dialog.SearchInputFields.Message" ), size ); // Searching
                                           // for
                                           // input
                                           // fields...
   fields = transMeta.getPrevStepFields( stepInfo, new ProgressMonitorAdapter( monitor ) );
  } else {
   monitor.beginTask( BaseMessages.getString(
    PKG, "SearchFieldsProgressDialog.Dialog.SearchOutputFields.Message" ), size ); // Searching
                                            // for
                                            // output
                                            // fields...
   fields = transMeta.getStepFields( stepInfo, new ProgressMonitorAdapter( monitor ) );
  }
 } catch ( KettleStepException kse ) {
  throw new InvocationTargetException( kse, BaseMessages.getString(
   PKG, "SearchFieldsProgressDialog.Log.UnableToGetFields", stepInfo.toString(), kse.getMessage() ) );
 }
 monitor.done();
}
origin: pentaho/pentaho-kettle

private void doPreview( final IProgressMonitor progressMonitor, final boolean showErrorDialogs  ) {
 progressMonitor.beginTask(
  BaseMessages.getString( PKG, "TransPreviewProgressDialog.Monitor.BeginTask.Title" ), 100 );
  KettleLogStore.getAppender().getBuffer( trans.getLogChannel().getLogChannelId(), true ).toString();
 progressMonitor.done();
origin: pentaho/pentaho-kettle

private String doScan( IProgressMonitor monitor, final boolean failOnParseError ) throws KettleException {
 if ( samples > 0 ) {
  monitor.beginTask( BaseMessages.getString( PKG, "TextFileCSVImportProgressDialog.Task.ScanningFile" ), samples
    + 1 );
 } else {
  monitor.beginTask( BaseMessages.getString( PKG, "TextFileCSVImportProgressDialog.Task.ScanningFile" ), 2 );
 monitor.done();
origin: pentaho/pentaho-kettle

private String doScan( IProgressMonitor monitor, final boolean failOnParseError ) throws KettleException {
 if ( samples > 0 ) {
  monitor.beginTask(
   BaseMessages.getString( PKG, "TextFileCSVImportProgressDialog.Task.ScanningFile" ), samples + 1 );
 } else {
  monitor.beginTask( BaseMessages.getString( PKG, "TextFileCSVImportProgressDialog.Task.ScanningFile" ), 2 );
 monitor.done();
origin: pentaho/pentaho-kettle

 monitor.beginTask( BaseMessages.getString( PKG, "Spoon.RipDB.Monitor.BuildingNewJob" ), tables.length );
 monitor.worked( 0 );
 JobEntryCopy previous = start;
 monitor.done();
} catch ( Exception e ) {
 new ErrorDialog( spoon.getShell(), "Error", "An unexpected error occurred!", e );
origin: org.eclipse.mylyn.wikitext/ui

@Override
protected void clearProblems(IProgressMonitor monitor, IDocument document, IRegion region) throws CoreException {
  monitor.beginTask(Messages.ResourceMarkerMarkupValidator_clearingMarkers, 1);
  // nothing to do: we do all of this in the createProblems method
  monitor.done();
}
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: eclipse/eclipse.jdt.ls

protected IFile getOldFile(IProgressMonitor pm) throws OperationCanceledException {
  pm.beginTask("", 1); //$NON-NLS-1$
  try {
    return ResourcesPlugin.getWorkspace().getRoot().getFile(fPath);
  } finally {
    pm.done();
  }
}
origin: inspectIT/inspectIT

/**
 * {@inheritDoc}
 */
@Override
public void doRefresh(IProgressMonitor monitor, IRootEditor rootEditor) {
  monitor.beginTask("Getting trace information..", IProgressMonitor.UNKNOWN);
  loadDataFromService();
  monitor.done();
}
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.jdt/org.eclipse.jdt.ui

private RefactoringStatus checkRenamings(IProgressMonitor pm) throws JavaModelException {
  try{
    pm.beginTask(RefactoringCoreMessages.ChangeSignatureRefactoring_checking_preconditions, 1);
    return checkParameterNamesInRippleMethods();
  } finally{
    pm.done();
  }
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

@Override
protected RefactoringStatus doCheckFinalConditions(IProgressMonitor pm, CheckConditionsContext context) throws CoreException {
  pm.beginTask("", 1); //$NON-NLS-1$
  try{
    return new RefactoringStatus();
  } finally{
    pm.done();
  }
}
origin: org.eclipse/org.eclipse.jdt.ui

protected RefactoringStatus doCheckFinalConditions(IProgressMonitor pm, CheckConditionsContext context) throws CoreException {
  pm.beginTask("", 1); //$NON-NLS-1$
  try{
    return new RefactoringStatus();
  } finally{
    pm.done();
  }        
}

origin: org.eclipse.platform/org.eclipse.ltk.core.refactoring

@Override
public void initializeValidationData(IProgressMonitor pm) {
  if (pm == null)
    pm= new NullProgressMonitor();
  pm.beginTask("", 1); //$NON-NLS-1$
  try {
    fValidationState= BufferValidationState.create(fFile);
  } finally {
    pm.done();
  }
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.ltk.core.refactoring

@Override
public void initializeValidationData(IProgressMonitor pm) {
  if (pm == null)
    pm= new NullProgressMonitor();
  pm.beginTask("", 1); //$NON-NLS-1$
  try {
    fValidationState= BufferValidationState.create(fFile);
  } finally {
    pm.done();
  }
}
origin: org.eclipse.scout.sdk.deps/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: eclipse/eclipse.jdt.ls

private static SearchMatch[] getFieldReferencesIn(IJavaElement[] elements, WorkingCopyOwner owner, IProgressMonitor pm) throws JavaModelException {
  List<SearchMatch> referencedFields= new ArrayList<>();
  pm.beginTask("", elements.length); //$NON-NLS-1$
  for (int i = 0; i < elements.length; i++) {
    referencedFields.addAll(getFieldReferencesIn(elements[i], owner, new SubProgressMonitor(pm, 1)));
  }
  pm.done();
  return referencedFields.toArray(new SearchMatch[referencedFields.size()]);
}
origin: eclipse/eclipse.jdt.ls

private static SearchMatch[] getTypeReferencesIn(IJavaElement[] elements, WorkingCopyOwner owner, IProgressMonitor pm) throws JavaModelException {
  List<SearchMatch> referencedTypes= new ArrayList<>();
  pm.beginTask("", elements.length); //$NON-NLS-1$
  for (int i = 0; i < elements.length; i++) {
    referencedTypes.addAll(getTypeReferencesIn(elements[i], owner, new SubProgressMonitor(pm, 1)));
  }
  pm.done();
  return referencedTypes.toArray(new SearchMatch[referencedTypes.size()]);
}
org.eclipse.core.runtimeIProgressMonitordone

Javadoc

Notifies that the work is done; that is, either the main task is completed or the user canceled it. This method may be called more than once (implementations should be prepared to handle this case).

Popular methods of IProgressMonitor

  • 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
  • worked
    Notifies that a given number of work unit of the main task has been completed. Note that this amount
  • 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

  • Parsing JSON documents to java classes using gson
  • getExternalFilesDir (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • addToBackStack (FragmentTransaction)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Notification (javax.management)
  • Github Copilot alternatives
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