org.eclipse.xtext.xbase.ui.jvmmodel.refactoring
Class AbstractJvmModelRenameStrategy
java.lang.Object
org.eclipse.xtext.ui.refactoring.impl.AbstractRenameStrategy
org.eclipse.xtext.ui.refactoring.impl.DefaultRenameStrategy
org.eclipse.xtext.xbase.ui.jvmmodel.refactoring.AbstractJvmModelRenameStrategy
- All Implemented Interfaces:
- IRenameStrategy
- Direct Known Subclasses:
- PureXbaseRenameStrategy, Xtend2RenameStrategy
public abstract class AbstractJvmModelRenameStrategy
- extends DefaultRenameStrategy
- Author:
- Jan Koehnlein - Initial contribution and API
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractJvmModelRenameStrategy
protected AbstractJvmModelRenameStrategy(org.eclipse.emf.ecore.EObject targetElement,
org.eclipse.emf.ecore.EAttribute nameAttribute,
ITextRegion originalNameRegion,
java.lang.String nameRuleName,
IValueConverterService valueConverterService,
IJvmModelAssociations xtend2jvmAssociations)
AbstractJvmModelRenameStrategy
@Deprecated
protected AbstractJvmModelRenameStrategy(org.eclipse.emf.ecore.EObject targetElement,
ILocationInFileProvider locationInFileProvider,
IJvmModelAssociations jvmModelAssociations)
- Deprecated. exists for backwards compatibility reasons only and will be removed in Xtext 2.1
applyDeclarationChange
public void applyDeclarationChange(java.lang.String newName,
org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
- Description copied from interface:
IRenameStrategy
- Applies the declaration change to the semantic model in the given resource set.
- Specified by:
applyDeclarationChange
in interface IRenameStrategy
- Overrides:
applyDeclarationChange
in class DefaultRenameStrategy
revertDeclarationChange
public void revertDeclarationChange(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
- Description copied from interface:
IRenameStrategy
- Reverts the declaration change to the semantic model in the given resource set.
- Specified by:
revertDeclarationChange
in interface IRenameStrategy
- Overrides:
revertDeclarationChange
in class AbstractRenameStrategy
setInferredJvmElementName
protected void setInferredJvmElementName(java.lang.String newName,
org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
setInferredJvmElementName
protected abstract void setInferredJvmElementName(java.lang.String name,
org.eclipse.emf.ecore.EObject renamedSourceElement)
getJvmModelAssociations
protected IJvmModelAssociations getJvmModelAssociations()