Class BecomeWorkingCopyOperation
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.JavaModelOperation
org.aspectj.org.eclipse.jdt.internal.core.BecomeWorkingCopyOperation
- All Implemented Interfaces:
org.eclipse.core.resources.IWorkspaceRunnable, org.eclipse.core.runtime.ICoreRunnable, org.eclipse.core.runtime.IProgressMonitor
Switch and ICompilationUnit to working copy mode
and signal the working copy addition through a delta.
-
Nested Class Summary
Nested classes/interfaces inherited from class JavaModelOperation
JavaModelOperation.IPostAction -
Field Summary
Fields inherited from class 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, TRUEFields inherited from interface org.eclipse.core.runtime.IProgressMonitor
UNKNOWN -
Constructor Summary
ConstructorsConstructorDescriptionBecomeWorkingCopyOperation(CompilationUnit workingCopy, IProblemRequestor problemRequestor) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidPerforms the operation specific behavior.protected CompilationUnitbooleanReturnstrueif this operation performs no resource modifications, otherwisefalse.Methods inherited from class 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, getLatestASTLevel, 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, workedMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.core.runtime.IProgressMonitor
clearBlocked, setBlocked, slice
-
Constructor Details
-
BecomeWorkingCopyOperation
-
-
Method Details
-
executeOperation
Description copied from class:JavaModelOperationPerforms the operation specific behavior. Subclasses must override.- Specified by:
executeOperationin classJavaModelOperation- Throws:
JavaModelException
-
getWorkingCopy
-
isReadOnly
public boolean isReadOnly()Description copied from class:JavaModelOperationReturnstrueif this operation performs no resource modifications, otherwisefalse. Subclasses must override.- Overrides:
isReadOnlyin classJavaModelOperation
-