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

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

public class BecomeWorkingCopyOperation
extends JavaModelOperation

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 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
BecomeWorkingCopyOperation(CompilationUnit workingCopy, IProblemRequestor problemRequestor)
           
 
Method Summary
protected  void executeOperation()
          Performs the operation specific behavior.
protected  CompilationUnit getWorkingCopy()
           
 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

BecomeWorkingCopyOperation

public BecomeWorkingCopyOperation(CompilationUnit workingCopy,
                                  IProblemRequestor problemRequestor)
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()

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