org.eclipse.xtext.xtend2.ui.refactoring
Class Xtend2RenameStrategy

java.lang.Object
  extended by org.eclipse.xtext.ui.refactoring.impl.AbstractRenameStrategy
      extended by org.eclipse.xtext.ui.refactoring.impl.DefaultRenameStrategy
          extended by org.eclipse.xtext.xbase.ui.jvmmodel.refactoring.AbstractJvmModelRenameStrategy
              extended by org.eclipse.xtext.xtend2.ui.refactoring.Xtend2RenameStrategy
All Implemented Interfaces:
DefaultRenameStrategyProvider.IInitializable, IRenameStrategy

public class Xtend2RenameStrategy
extends AbstractJvmModelRenameStrategy

Encapsulates the model changes of a rename refactoring.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.xtext.ui.refactoring.IRenameStrategy
IRenameStrategy.Provider
 
Field Summary
 
Fields inherited from class org.eclipse.xtext.ui.refactoring.impl.DefaultRenameStrategy
nameRuleName, originalNameRegion
 
Constructor Summary
Xtend2RenameStrategy()
           
 
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.core.runtime.IPath getPathToRename(org.eclipse.emf.common.util.URI elementURI, org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
           
 
Methods inherited from class org.eclipse.xtext.xbase.ui.jvmmodel.refactoring.AbstractJvmModelRenameStrategy
applyDeclarationChange, getJvmModelAssociations, revertDeclarationChange, setInferredJvmElementName, setInferredJvmElementName
 
Methods inherited from class org.eclipse.xtext.ui.refactoring.impl.DefaultRenameStrategy
getDeclarationTextEdit, getNameAsText, getNameAsValue, getNameRuleName, getOriginalName, getOriginalNameRegion, initialize
 
Methods inherited from class org.eclipse.xtext.ui.refactoring.impl.AbstractRenameStrategy
getNameAttribute, getNameAttribute, getTargetElementNewURI, getTargetElementOriginalURI, setName, validateNewName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Xtend2RenameStrategy

public Xtend2RenameStrategy()
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

Specified by:
createDeclarationUpdates in interface IRenameStrategy
Overrides:
createDeclarationUpdates in class DefaultRenameStrategy

getPathToRename

protected org.eclipse.core.runtime.IPath getPathToRename(org.eclipse.emf.common.util.URI elementURI,
                                                         org.eclipse.emf.ecore.resource.ResourceSet resourceSet)