public class ReconcileWorkingCopyOperation extends JavaModelOperation
High level summmary of what a reconcile does:
JavaModelOperation.IPostAction| Modifier and Type | Field and Description |
|---|---|
CompilationUnit |
ast |
int |
astLevel |
JavaElementDeltaBuilder |
deltaBuilder |
static boolean |
PERF |
java.util.HashMap |
problems |
int |
reconcileFlags |
boolean |
requestorIsActive |
boolean |
resolveBindings |
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 and Description |
|---|
ReconcileWorkingCopyOperation(IJavaElement workingCopy,
int astLevel,
int reconcileFlags,
WorkingCopyOwner workingCopyOwner) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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, workedpublic static boolean PERF
public int astLevel
public boolean resolveBindings
public java.util.HashMap problems
public int reconcileFlags
public CompilationUnit ast
public JavaElementDeltaBuilder deltaBuilder
public boolean requestorIsActive
public ReconcileWorkingCopyOperation(IJavaElement workingCopy, int astLevel, int reconcileFlags, WorkingCopyOwner workingCopyOwner)
protected void executeOperation()
throws JavaModelException
JavaModelOperationexecuteOperation in class JavaModelOperationJavaModelException - if setting the source
of the original compilation unit failsprotected CompilationUnit getWorkingCopy()
public boolean isReadOnly()
JavaModelOperationtrue if this operation performs no resource modifications,
otherwise false. Subclasses must override.isReadOnly in class JavaModelOperationpublic CompilationUnit makeConsistent(CompilationUnit workingCopy) throws JavaModelException
JavaModelExceptionprotected IJavaModelStatus verify()
JavaModelOperationverify in class JavaModelOperationIJavaModelStatus