public class JvmMemberRenameStrategy extends java.lang.Object implements IRenameStrategy
TypeResource
and updates all references to it.Modifier and Type | Class and Description |
---|---|
static class |
JvmMemberRenameStrategy.Provider |
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
originalName |
protected org.eclipse.emf.common.util.URI |
targetMemberNewURI |
protected org.eclipse.emf.common.util.URI |
targetMemberOriginalURI |
Constructor and Description |
---|
JvmMemberRenameStrategy() |
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.
|
void |
createDeclarationUpdates(java.lang.String newName,
org.eclipse.emf.ecore.resource.ResourceSet resourceSet,
IRefactoringUpdateAcceptor updateAcceptor)
Creates the document updates and reports them to the updateAcceptor
|
java.lang.String |
getOriginalName() |
boolean |
initialize(JvmMember targetMember,
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 JvmMember |
setName(org.eclipse.emf.common.util.URI targetURI,
org.eclipse.emf.ecore.resource.ResourceSet resourceSet,
java.lang.String newName) |
org.eclipse.ltk.core.refactoring.RefactoringStatus |
validateNewName(java.lang.String newName) |
protected org.eclipse.emf.common.util.URI targetMemberOriginalURI
protected org.eclipse.emf.common.util.URI targetMemberNewURI
protected java.lang.String originalName
public boolean initialize(JvmMember targetMember, IRenameElementContext context)
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 JvmMember setName(org.eclipse.emf.common.util.URI targetURI, org.eclipse.emf.ecore.resource.ResourceSet resourceSet, java.lang.String newName)
public void createDeclarationUpdates(java.lang.String newName, org.eclipse.emf.ecore.resource.ResourceSet resourceSet, IRefactoringUpdateAcceptor updateAcceptor)
IRenameStrategy
createDeclarationUpdates
in interface IRenameStrategy
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