public class BecomeWorkingCopyOperation extends JavaModelOperation
JavaModelOperation.IPostActionactions, 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 |
|---|
BecomeWorkingCopyOperation(CompilationUnit workingCopy,
IProblemRequestor problemRequestor) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
executeOperation()
Performs the operation specific behavior.
|
protected CompilationUnit |
getWorkingCopy() |
boolean |
isReadOnly()
Returns
true if this operation performs no resource modifications,
otherwise false. |
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, verify, workedpublic BecomeWorkingCopyOperation(CompilationUnit workingCopy, IProblemRequestor problemRequestor)
protected void executeOperation()
throws JavaModelException
JavaModelOperationexecuteOperation in class JavaModelOperationJavaModelExceptionprotected CompilationUnit getWorkingCopy()
public boolean isReadOnly()
JavaModelOperationtrue if this operation performs no resource modifications,
otherwise false. Subclasses must override.isReadOnly in class JavaModelOperation