Klasse RenameElementsOperation
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.CopyElementsOperation
org.aspectj.org.eclipse.jdt.internal.core.MoveElementsOperation
org.aspectj.org.eclipse.jdt.internal.core.RenameElementsOperation
- Alle implementierten Schnittstellen:
SuffixConstants
,org.eclipse.core.resources.IWorkspaceRunnable
,org.eclipse.core.runtime.ICoreRunnable
,org.eclipse.core.runtime.IProgressMonitor
This operation renames elements.
Notes:
- Resource rename is not supported - this operation only renames elements contained in compilation units.
- When a main type is renamed, its compilation unit and constructors are renamed.
- Constructors cannot be renamed.
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen org.aspectj.org.eclipse.jdt.internal.core.JavaModelOperation
JavaModelOperation.IPostAction
-
Feldübersicht
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
Von Schnittstelle geerbte Felder org.aspectj.org.eclipse.jdt.internal.compiler.util.SuffixConstants
EXTENSION_aj, EXTENSION_AJ, EXTENSION_class, EXTENSION_CLASS, EXTENSION_java, EXTENSION_JAVA, EXTENSION_jmod, EXTENSION_JMOD, SUFFIX_aj, SUFFIX_AJ, SUFFIX_class, SUFFIX_CLASS, SUFFIX_java, SUFFIX_JAVA, SUFFIX_STRING_aj, SUFFIX_STRING_AJ, SUFFIX_STRING_class, SUFFIX_STRING_CLASS, SUFFIX_STRING_java, SUFFIX_STRING_JAVA
-
Konstruktorübersicht
KonstruktorBeschreibungRenameElementsOperation
(IJavaElement[] elements, IJavaElement[] destinations, String[] newNames, boolean force) When executed, this operation will rename the specified elements with the given names in the corresponding destinations. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected String
Returns theString
to use as the main task name for progress monitoring.protected boolean
isRename()
Returnstrue
if this operation represents a rename,false
if this operation represents a copy or move.protected IJavaModelStatus
verify()
Possible failures: NO_ELEMENTS_TO_PROCESS - no elements supplied to the operation INDEX_OUT_OF_BOUNDS - the number of renamings supplied to the operation does not match the number of elements that were supplied.protected void
verify
(IJavaElement element) This method is called for eachIJavaElement
beforeprocessElement
.Von Klasse geerbte Methoden org.aspectj.org.eclipse.jdt.internal.core.MoveElementsOperation
isMove
Von Klasse geerbte Methoden org.aspectj.org.eclipse.jdt.internal.core.CopyElementsOperation
getNestedOperation, isRenamingMainType, processElement
Von Klasse geerbte Methoden org.aspectj.org.eclipse.jdt.internal.core.MultiOperation
error, executeOperation, getDestinationParent, getNewNameFor, processElements, 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, getSchedulingRule, getSubProgressMonitor, hasModifiedResource, internalWorked, isCanceled, isReadOnly, isTopLevelOperation, moveResources, newJavaElementDelta, popOperation, postAction, prefixesOneOf, pushOperation, removeAllPostAction, removeReconcileDelta, run, runOperation, runPostActions, setAttribute, setCanceled, setNested, setTaskName, subTask, 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
-
Konstruktordetails
-
RenameElementsOperation
public RenameElementsOperation(IJavaElement[] elements, IJavaElement[] destinations, String[] newNames, boolean force) When executed, this operation will rename the specified elements with the given names in the corresponding destinations.
-
-
Methodendetails
-
getMainTaskName
Beschreibung aus Klasse kopiert:MoveElementsOperation
Returns theString
to use as the main task name for progress monitoring.- Setzt außer Kraft:
getMainTaskName
in KlasseMoveElementsOperation
- Siehe auch:
-
isRename
protected boolean isRename()Beschreibung aus Klasse kopiert:MultiOperation
Returnstrue
if this operation represents a rename,false
if this operation represents a copy or move.- Setzt außer Kraft:
isRename
in KlasseMultiOperation
- Siehe auch:
-
verify
Beschreibung aus Klasse kopiert:CopyElementsOperation
Possible failures:- NO_ELEMENTS_TO_PROCESS - no elements supplied to the operation
- INDEX_OUT_OF_BOUNDS - the number of renamings supplied to the operation does not match the number of elements that were supplied.
- Setzt außer Kraft:
verify
in KlasseCopyElementsOperation
- Siehe auch:
-
verify
Beschreibung aus Klasse kopiert:MultiOperation
This method is called for eachIJavaElement
beforeprocessElement
. It should check that thiselement
can be processed.- Setzt außer Kraft:
verify
in KlasseCopyElementsOperation
- Löst aus:
JavaModelException
- Siehe auch:
-