public abstract class AbstractRenameStrategy extends 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(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) |
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,
String newName,
org.eclipse.emf.ecore.resource.ResourceSet resourceSet) |
org.eclipse.ltk.core.refactoring.RefactoringStatus |
validateNewName(String newName) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateDeclarationUpdatespublic boolean initialize(org.eclipse.emf.ecore.EObject targetElement,
IRenameElementContext context)
initialize in interface DefaultRenameStrategyProvider.IInitializablepublic String getOriginalName()
getOriginalName in interface IRenameStrategypublic org.eclipse.ltk.core.refactoring.RefactoringStatus validateNewName(String newName)
validateNewName in interface IRenameStrategypublic void applyDeclarationChange(String newName, org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
IRenameStrategyapplyDeclarationChange in interface IRenameStrategypublic void revertDeclarationChange(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
IRenameStrategyrevertDeclarationChange in interface IRenameStrategyprotected org.eclipse.emf.ecore.EObject setName(org.eclipse.emf.common.util.URI targetElementURI,
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()
Copyright © 2016. All Rights Reserved.