org.aspectj.org.eclipse.jdt.internal.core
Class BatchOperation

java.lang.Object
  extended by org.aspectj.org.eclipse.jdt.internal.core.JavaModelOperation
      extended by org.aspectj.org.eclipse.jdt.internal.core.BatchOperation

public class BatchOperation
extends JavaModelOperation

An operation created as a result of a call to JavaCore.run(IWorkspaceRunnable, IProgressMonitor) that encapsulates a user defined IWorkspaceRunnable.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.aspectj.org.eclipse.jdt.internal.core.JavaModelOperation
JavaModelOperation.IPostAction
 
Field Summary
protected  IWorkspaceRunnable runnable
           
 
Fields inherited from class org.aspectj.org.eclipse.jdt.internal.core.JavaModelOperation
actions, actionsEnd, actionsStart, APPEND, attributes, elementsToProcess, force, HAS_MODIFIED_RESOURCE_ATTR, isNested, KEEP_EXISTING, NO_ELEMENTS, OPERATION_STACKS, parentElements, POST_ACTION_VERBOSE, progressMonitor, REMOVEALL_APPEND, resultElements, TRUE
 
Constructor Summary
BatchOperation(IWorkspaceRunnable runnable)
           
 
Method Summary
protected  boolean canModifyRoots()
           
protected  void executeOperation()
          Performs the operation specific behavior.
protected  IJavaModelStatus verify()
          Returns a status indicating if there is any known reason this operation will fail.
 
Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.JavaModelOperation
addAction, addDelta, addReconcileDelta, applyTextEdit, beginTask, checkCanceled, commonVerify, copyResources, createFile, createFolder, deleteEmptyPackageFragment, deleteResource, deleteResources, done, equalsOneOf, executeNestedOperation, firstActionWithID, getAttribute, getCompilationUnitFor, getCurrentOperationStack, getDocument, getElementToProcess, getJavaModel, getNestedFolders, getParentElement, getParentElements, getResultElements, getSchedulingRule, getSubProgressMonitor, hasModifiedResource, internalWorked, isCanceled, isReadOnly, isTopLevelOperation, moveResources, newJavaElementDelta, popOperation, postAction, prefixesOneOf, pushOperation, removeAllPostAction, removeReconcileDelta, run, runOperation, runPostActions, setAttribute, setCanceled, setNested, setTaskName, subTask, worked
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

runnable

protected IWorkspaceRunnable runnable
Constructor Detail

BatchOperation

public BatchOperation(IWorkspaceRunnable runnable)
Method Detail

canModifyRoots

protected boolean canModifyRoots()
Overrides:
canModifyRoots in class JavaModelOperation

executeOperation

protected void executeOperation()
                         throws JavaModelException
Description copied from class: JavaModelOperation
Performs the operation specific behavior. Subclasses must override.

Specified by:
executeOperation in class JavaModelOperation
Throws:
JavaModelException

verify

protected IJavaModelStatus verify()
Description copied from class: JavaModelOperation
Returns a status indicating if there is any known reason this operation will fail. Operations are verified before they are run. Subclasses must override if they have any conditions to verify before this operation executes.

Overrides:
verify in class JavaModelOperation
See Also:
IJavaModelStatus