Class DeleteResourceElementsOperation
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.JavaModelOperation
org.aspectj.org.eclipse.jdt.internal.core.MultiOperation
org.aspectj.org.eclipse.jdt.internal.core.DeleteResourceElementsOperation
- All Implemented Interfaces:
org.eclipse.core.resources.IWorkspaceRunnable,org.eclipse.core.runtime.ICoreRunnable,org.eclipse.core.runtime.IProgressMonitor
This operation deletes a collection of resources and all of their children.
It does not delete resources which do not belong to the Java Model
(eg GIF files).
-
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.MultiOperation
insertBeforeElements, newParents, renamings, renamingsListFields 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, TRUEFields inherited from interface org.eclipse.core.runtime.IProgressMonitor
UNKNOWN -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDeleteResourceElementsOperation(IJavaElement[] elementsToProcess, boolean force) When executed, this operation will delete the given elements. -
Method Summary
Modifier and TypeMethodDescriptionprotected StringReturns the name to be used by the progress monitor.protected voidprocessElement(IJavaElement element) Subclasses must implement this method to process a givenIJavaElement.protected voidverify(IJavaElement element) This method is called for eachIJavaElementbeforeprocessElement.Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.MultiOperation
error, executeOperation, getDestinationParent, getNewNameFor, isMove, isRename, processElements, setInsertBefore, setRenamings, verifyDestination, verifyRenaming, verifySiblingMethods 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, getLatestASTLevel, getNestedFolders, getParentElement, getParentElements, getResultElements, getSchedulingRule, getSubProgressMonitor, hasModifiedResource, internalWorked, isCanceled, isReadOnly, isTopLevelOperation, moveResources, newJavaElementDelta, popOperation, postAction, prefixesOneOf, pushOperation, removeAllPostAction, removeReconcileDelta, run, runOperation, runPostActions, setAttribute, setCanceled, setNested, setTaskName, subTask, verify, workedMethods inherited from class java.lang.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
-
DeleteResourceElementsOperation
When executed, this operation will delete the given elements. The elements to delete cannot benullor empty, and must have a corresponding resource.
-
-
Method Details
-
getMainTaskName
Description copied from class:MultiOperationReturns the name to be used by the progress monitor.- Specified by:
getMainTaskNamein classMultiOperation- See Also:
-
processElement
Description copied from class:MultiOperationSubclasses must implement this method to process a givenIJavaElement.- Specified by:
processElementin classMultiOperation- Throws:
JavaModelException- See Also:
-
verify
Description copied from class:MultiOperationThis method is called for eachIJavaElementbeforeprocessElement. It should check that thiselementcan be processed.- Specified by:
verifyin classMultiOperation- Throws:
JavaModelException- See Also:
-