org.eclipse.xtext.ui.refactoring.impl
Class EmfResourceRenameStrategy

java.lang.Object
  extended by org.eclipse.xtext.ui.refactoring.impl.AbstractRenameStrategy
      extended by org.eclipse.xtext.ui.refactoring.impl.EmfResourceRenameStrategy
All Implemented Interfaces:
DefaultRenameStrategyProvider.IInitializable, IRenameStrategy

public class EmfResourceRenameStrategy
extends AbstractRenameStrategy

Generic rename strategy for EMF resources. For XtextResources you should rather use the DefaultRenameStrategy.

Author:
Jan Koehnlein - Initial contribution and API, Holger Schill

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.xtext.ui.refactoring.IRenameStrategy
IRenameStrategy.Provider
 
Constructor Summary
EmfResourceRenameStrategy()
           
 
Method Summary
 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
protected  org.eclipse.emf.ecore.EAttribute getNameAttribute(org.eclipse.emf.ecore.EObject targetElement)
           
 
Methods inherited from class org.eclipse.xtext.ui.refactoring.impl.AbstractRenameStrategy
applyDeclarationChange, getNameAttribute, getOriginalName, getTargetElementNewURI, getTargetElementOriginalURI, initialize, revertDeclarationChange, setName, validateNewName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmfResourceRenameStrategy

public EmfResourceRenameStrategy()
Method Detail

createDeclarationUpdates

public void createDeclarationUpdates(java.lang.String newName,
                                     org.eclipse.emf.ecore.resource.ResourceSet resourceSet,
                                     IRefactoringUpdateAcceptor updateAcceptor)
Description copied from interface: IRenameStrategy
Creates the document updates and reports them to the updateAcceptor


getNameAttribute

protected org.eclipse.emf.ecore.EAttribute getNameAttribute(org.eclipse.emf.ecore.EObject targetElement)
Overrides:
getNameAttribute in class AbstractRenameStrategy