Class BslRenameContextFactory
- java.lang.Object
-
- com._1c.g5.v8.dt.bsl.ui.refactoring.BslRenameContextFactory
-
- All Implemented Interfaces:
org.eclipse.xtext.ui.refactoring.ui.IRenameContextFactory
- Direct Known Subclasses:
BmBslRenameContextFactory
public class BslRenameContextFactory extends Object implements org.eclipse.xtext.ui.refactoring.ui.IRenameContextFactory
SpecialIRenameContextFactory
for refactoring in Bsl module
-
-
Field Summary
Fields Modifier and Type Field Description protected DynamicFeatureAccessComputer
dynamicComputer
-
Constructor Summary
Constructors Constructor Description BslRenameContextFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.xtext.ui.refactoring.ui.IRenameElementContext
createRenameElementContext(org.eclipse.emf.ecore.EObject targetElement, org.eclipse.xtext.ui.editor.XtextEditor editor, org.eclipse.jface.text.ITextSelection selection, org.eclipse.xtext.resource.XtextResource resource)
protected org.eclipse.emf.ecore.EObject
getSourceObject(DynamicFeatureAccess referringElement)
Gets source object fromreferringElement
-
-
-
Field Detail
-
dynamicComputer
@Inject protected DynamicFeatureAccessComputer dynamicComputer
-
-
Method Detail
-
createRenameElementContext
public org.eclipse.xtext.ui.refactoring.ui.IRenameElementContext createRenameElementContext(org.eclipse.emf.ecore.EObject targetElement, org.eclipse.xtext.ui.editor.XtextEditor editor, org.eclipse.jface.text.ITextSelection selection, org.eclipse.xtext.resource.XtextResource resource)
- Specified by:
createRenameElementContext
in interfaceorg.eclipse.xtext.ui.refactoring.ui.IRenameContextFactory
-
getSourceObject
protected org.eclipse.emf.ecore.EObject getSourceObject(DynamicFeatureAccess referringElement)
Gets source object fromreferringElement
- Parameters:
referringElement
- actual grammar object from Bsl module, can't benull
- Returns:
- actual source object or
null
if grammar element hasn't got source object
-
-