public abstract class AbstractRenameStrategy extends java.lang.Object implements DefaultRenameStrategyProvider.IInitializable
IRenameStrategy
implementations. Performs the declaration updates on a semantic EMF model.IRenameStrategy.Provider
Constructor and Description |
---|
AbstractRenameStrategy() |
Modifier and Type | Method and Description |
---|---|
void |
applyDeclarationChange(java.lang.String newName,
org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
Applies the declaration change to the semantic model in the given resource set.
|
protected org.eclipse.emf.ecore.EAttribute |
getNameAttribute() |
protected org.eclipse.emf.ecore.EAttribute |
getNameAttribute(org.eclipse.emf.ecore.EObject targetElement) |
java.lang.String |
getOriginalName() |
protected org.eclipse.emf.common.util.URI |
getTargetElementNewURI() |
protected org.eclipse.emf.common.util.URI |
getTargetElementOriginalURI() |
boolean |
initialize(org.eclipse.emf.ecore.EObject targetElement,
IRenameElementContext context) |
void |
revertDeclarationChange(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
Reverts the declaration change to the semantic model in the given resource set.
|
protected org.eclipse.emf.ecore.EObject |
setName(org.eclipse.emf.common.util.URI targetElementURI,
java.lang.String newName,
org.eclipse.emf.ecore.resource.ResourceSet resourceSet) |
org.eclipse.ltk.core.refactoring.RefactoringStatus |
validateNewName(java.lang.String newName) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createDeclarationUpdates
public boolean initialize(org.eclipse.emf.ecore.EObject targetElement, IRenameElementContext context)
initialize
in interface DefaultRenameStrategyProvider.IInitializable
public java.lang.String getOriginalName()
getOriginalName
in interface IRenameStrategy
public org.eclipse.ltk.core.refactoring.RefactoringStatus validateNewName(java.lang.String newName)
validateNewName
in interface IRenameStrategy
public void applyDeclarationChange(java.lang.String newName, org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
IRenameStrategy
applyDeclarationChange
in interface IRenameStrategy
public void revertDeclarationChange(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
IRenameStrategy
revertDeclarationChange
in interface IRenameStrategy
protected org.eclipse.emf.ecore.EObject setName(org.eclipse.emf.common.util.URI targetElementURI, java.lang.String newName, org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
protected org.eclipse.emf.common.util.URI getTargetElementOriginalURI()
protected org.eclipse.emf.common.util.URI getTargetElementNewURI()
protected org.eclipse.emf.ecore.EAttribute getNameAttribute(org.eclipse.emf.ecore.EObject targetElement)
protected org.eclipse.emf.ecore.EAttribute getNameAttribute()