Klasse DeleteElementsOperation
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.DeleteElementsOperation
- Alle implementierten Schnittstellen:
org.eclipse.core.resources.IWorkspaceRunnable
,org.eclipse.core.runtime.ICoreRunnable
,org.eclipse.core.runtime.IProgressMonitor
This operation deletes a collection of elements (and
all of their children).
If an element does not exist, it is ignored.
NOTE: This operation only deletes elements contained within leaf resources - that is, elements within compilation units. To delete a compilation unit or a package, etc (which have an actual resource), a DeleteResourcesOperation should be used.
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen org.aspectj.org.eclipse.jdt.internal.core.JavaModelOperation
JavaModelOperation.IPostAction
-
Feldübersicht
Modifizierer und TypFeldBeschreibungprotected Map
The elements this operation processes grouped by compilation unitprotected ASTParser
TheASTParser
used to manipulate the source code ofICompilationUnit
.Von Klasse geerbte Felder org.aspectj.org.eclipse.jdt.internal.core.MultiOperation
insertBeforeElements, newParents, renamings, renamingsList
Von Klasse geerbte Felder 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
Von Schnittstelle geerbte Felder org.eclipse.core.runtime.IProgressMonitor
UNKNOWN
-
Konstruktorübersicht
KonstruktorBeschreibungDeleteElementsOperation
(IJavaElement[] elementsToDelete, boolean force) When executed, this operation will delete the given elements. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected String
Returns the name to be used by the progress monitor.protected org.eclipse.core.runtime.jobs.ISchedulingRule
protected void
Groups the elements to be processed by their compilation unit.protected void
processElement
(IJavaElement element) Deletes this element from its compilation unit.protected void
Processes all theIJavaElement
s in turn, collecting errors and updating the progress monitor.protected void
verify
(IJavaElement element) This method is called for eachIJavaElement
beforeprocessElement
.Von Klasse geerbte Methoden org.aspectj.org.eclipse.jdt.internal.core.MultiOperation
error, executeOperation, getDestinationParent, getNewNameFor, isMove, isRename, setInsertBefore, setRenamings, verifyDestination, verifyRenaming, verifySibling
Von Klasse geerbte Methoden 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, getSubProgressMonitor, hasModifiedResource, internalWorked, isCanceled, isReadOnly, isTopLevelOperation, moveResources, newJavaElementDelta, popOperation, postAction, prefixesOneOf, pushOperation, removeAllPostAction, removeReconcileDelta, run, runOperation, runPostActions, setAttribute, setCanceled, setNested, setTaskName, subTask, verify, worked
Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Von Schnittstelle geerbte Methoden org.eclipse.core.runtime.IProgressMonitor
clearBlocked, setBlocked, slice
-
Felddetails
-
childrenToRemove
The elements this operation processes grouped by compilation unit- Siehe auch:
-
parser
TheASTParser
used to manipulate the source code ofICompilationUnit
.
-
-
Konstruktordetails
-
DeleteElementsOperation
When executed, this operation will delete the given elements. The elements to delete cannot benull
or empty, and must be contained within a compilation unit.
-
-
Methodendetails
-
getMainTaskName
Beschreibung aus Klasse kopiert:MultiOperation
Returns the name to be used by the progress monitor.- Angegeben von:
getMainTaskName
in KlasseMultiOperation
- Siehe auch:
-
getSchedulingRule
protected org.eclipse.core.runtime.jobs.ISchedulingRule getSchedulingRule()- Setzt außer Kraft:
getSchedulingRule
in KlasseJavaModelOperation
-
groupElements
Groups the elements to be processed by their compilation unit. If parent/child combinations are present, children are discarded (only the parents are processed). Removes any duplicates specified in elements to be processed.- Löst aus:
JavaModelException
-
processElement
Deletes this element from its compilation unit.- Angegeben von:
processElement
in KlasseMultiOperation
- Löst aus:
JavaModelException
- Siehe auch:
-
processElements
Beschreibung aus Klasse kopiert:MultiOperation
Processes all theIJavaElement
s in turn, collecting errors and updating the progress monitor.- Setzt außer Kraft:
processElements
in KlasseMultiOperation
- Löst aus:
JavaModelException
- if one or several operation(s) was unable to be completed.- Siehe auch:
-
verify
Beschreibung aus Klasse kopiert:MultiOperation
This method is called for eachIJavaElement
beforeprocessElement
. It should check that thiselement
can be processed.- Angegeben von:
verify
in KlasseMultiOperation
- Löst aus:
JavaModelException
- Siehe auch:
-