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

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

public class DiscardWorkingCopyOperation
extends JavaModelOperation

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 org.aspectj.org.eclipse.jdt.internal.core.JavaModelOperation
JavaModelOperation.IPostAction
 
Field Summary
 
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
DiscardWorkingCopyOperation(IJavaElement workingCopy)
           
 
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.
 
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, verify, worked
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiscardWorkingCopyOperation

public DiscardWorkingCopyOperation(IJavaElement workingCopy)
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

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
See Also:
JavaModelOperation.isReadOnly()