congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
IProgressMonitor.beginTask
Code IndexAdd Tabnine to your IDE (free)

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

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

Refine searchRefine arrow

  • IProgressMonitor.done
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.beginTask( BaseMessages.getString( PKG, "GetXMLDateLoopNodesImportProgressDialog.Task.ReadingNode" ), 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

@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.beginTask( BaseMessages.getString( PKG, "GetXMLDateLoopNodesImportProgressDialog.Task.ReadingNode" ), 1 );
 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.runtimeIProgressMonitorbeginTask

Javadoc

Notifies that the main task is beginning. This must only be called once on a given progress monitor instance.

Popular methods of IProgressMonitor

  • done
    Notifies that the work is done; that is, either the main task is completed or the user canceled it.
  • 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

  • Making http requests using okhttp
  • getApplicationContext (Context)
  • getResourceAsStream (ClassLoader)
  • findViewById (Activity)
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • 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