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

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

public class ReconcileWorkingCopyOperation
extends JavaModelOperation

Reconcile a working copy and signal the changes through a delta.

High level summmary of what a reconcile does:


Nested Class Summary
 
Nested classes/interfaces inherited from class org.aspectj.org.eclipse.jdt.internal.core.JavaModelOperation
JavaModelOperation.IPostAction
 
Field Summary
 CompilationUnit ast
           
 int astLevel
           
 JavaElementDeltaBuilder deltaBuilder
           
static boolean PERF
           
 java.util.HashMap problems
           
 int reconcileFlags
           
 boolean requestorIsActive
           
 boolean resolveBindings
           
 
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
ReconcileWorkingCopyOperation(IJavaElement workingCopy, int astLevel, int reconcileFlags, WorkingCopyOwner workingCopyOwner)
           
 
Method Summary
protected  void executeOperation()
          Performs the operation specific behavior.
protected  CompilationUnit getWorkingCopy()
          Returns the working copy this operation is working on.
 boolean isReadOnly()
          Returns true if this operation performs no resource modifications, otherwise false.
 CompilationUnit makeConsistent(CompilationUnit workingCopy)
           
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, canModifyRoots, 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, 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

PERF

public static boolean PERF

astLevel

public int astLevel

resolveBindings

public boolean resolveBindings

problems

public java.util.HashMap problems

reconcileFlags

public int reconcileFlags

ast

public CompilationUnit ast

deltaBuilder

public JavaElementDeltaBuilder deltaBuilder

requestorIsActive

public boolean requestorIsActive
Constructor Detail

ReconcileWorkingCopyOperation

public ReconcileWorkingCopyOperation(IJavaElement workingCopy,
                                     int astLevel,
                                     int reconcileFlags,
                                     WorkingCopyOwner workingCopyOwner)
Method Detail

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 - if setting the source of the original compilation unit fails

getWorkingCopy

protected CompilationUnit getWorkingCopy()
Returns the working copy this operation is working on.


isReadOnly

public boolean isReadOnly()
Description copied from class: JavaModelOperation
Returns true if this operation performs no resource modifications, otherwise false. Subclasses must override.

Overrides:
isReadOnly in class JavaModelOperation

makeConsistent

public CompilationUnit makeConsistent(CompilationUnit workingCopy)
                               throws JavaModelException
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