Class DiscardWorkingCopyOperation
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.JavaModelOperation
org.aspectj.org.eclipse.jdt.internal.core.DiscardWorkingCopyOperation
- All Implemented Interfaces:
org.eclipse.core.resources.IWorkspaceRunnable, org.eclipse.core.runtime.ICoreRunnable, org.eclipse.core.runtime.IProgressMonitor
Discards a working copy (decrement its use count and remove its working copy info if the use count is 0)
and signal its removal 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidPerforms the operation specific behavior.protected CompilationUnitReturns the working copy this operation is working on.booleanReturnstrueif 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
-
DiscardWorkingCopyOperation
-
-
Method Details
-
executeOperation
Description copied from class:JavaModelOperationPerforms the operation specific behavior. Subclasses must override.- Specified by:
executeOperationin classJavaModelOperation- Throws:
JavaModelException
-
getWorkingCopy
Returns the working copy this operation is working on. -
isReadOnly
public boolean isReadOnly()Description copied from class:JavaModelOperationReturnstrueif this operation performs no resource modifications, otherwisefalse. Subclasses must override.- Overrides:
isReadOnlyin classJavaModelOperation- See Also:
-