public class DiscardWorkingCopyOperation 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 |
|---|
DiscardWorkingCopyOperation(IJavaElement workingCopy) |
| Modifier and Type | Method and Description |
|---|---|
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. |
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 DiscardWorkingCopyOperation(IJavaElement workingCopy)
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 JavaModelOperationJavaModelOperation.isReadOnly()