org.eclipse.xtext.ui.refactoring
Interface IRenameStrategy

All Known Implementing Classes:
AbstractJvmModelRenameStrategy, AbstractRenameStrategy, DefaultRenameStrategy, EmfResourceRenameStrategy, JvmMemberRenameStrategy, PureXbaseRenameStrategy, Xtend2RenameStrategy

public interface IRenameStrategy

Customizable strategy for the text based rename refactoring of a given EObject.

Author:
Jan Koehnlein - Initial contribution and API

Nested Class Summary
static interface IRenameStrategy.Provider
           
 
Method Summary
 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()
           
 void revertDeclarationChange(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
          Reverts the declaration change to the semantic model in the given resource set.
 org.eclipse.ltk.core.refactoring.RefactoringStatus validateNewName(java.lang.String newName)
           
 

Method Detail

getOriginalName

java.lang.String getOriginalName()

validateNewName

org.eclipse.ltk.core.refactoring.RefactoringStatus validateNewName(java.lang.String newName)

applyDeclarationChange

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.


revertDeclarationChange

void revertDeclarationChange(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
Reverts the declaration change to the semantic model in the given resource set.


createDeclarationUpdates

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

Since:
2.0