public class DefaultJvmModelRenameStrategy extends XbaseRenameStrategy
IRenameStrategy.Provider
nameRuleName, originalNameRegion
Constructor and Description |
---|
DefaultJvmModelRenameStrategy() |
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.
|
protected IJvmModelAssociations |
getJvmModelAssociations() |
void |
revertDeclarationChange(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
Reverts the declaration change to the semantic model in the given resource set.
|
protected void |
setInferredJvmElementName(java.lang.String name,
org.eclipse.emf.ecore.EObject renamedElement) |
protected void |
setInferredJvmElementName(java.lang.String newName,
org.eclipse.emf.ecore.resource.ResourceSet resourceSet) |
getNameAttribute
createDeclarationUpdates, getDeclarationTextEdit, getNameAsText, getNameAsValue, getNameRuleName, getOriginalName, getOriginalNameRegion, initialize, validateNewName
getNameAttribute, getTargetElementNewURI, getTargetElementOriginalURI, setName
public void applyDeclarationChange(java.lang.String newName, org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
IRenameStrategy
applyDeclarationChange
in interface IRenameStrategy
applyDeclarationChange
in class DefaultRenameStrategy
public void revertDeclarationChange(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
IRenameStrategy
revertDeclarationChange
in interface IRenameStrategy
revertDeclarationChange
in class AbstractRenameStrategy
protected void setInferredJvmElementName(java.lang.String newName, org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
protected void setInferredJvmElementName(java.lang.String name, org.eclipse.emf.ecore.EObject renamedElement)
protected IJvmModelAssociations getJvmModelAssociations()