Class BslRenameElementContext
- java.lang.Object
-
- org.eclipse.xtext.ui.refactoring.ui.IRenameElementContext.Impl
-
- com._1c.g5.v8.dt.bsl.ui.refactoring.BslRenameElementContext
-
- All Implemented Interfaces:
org.eclipse.xtext.ui.refactoring.IChangeRedirector.Aware
,org.eclipse.xtext.ui.refactoring.ui.IRenameElementContext
public class BslRenameElementContext extends org.eclipse.xtext.ui.refactoring.ui.IRenameElementContext.Impl
SpecialIRenameElementContext.Impl
for Bsl modules
-
-
Constructor Summary
Constructors Constructor Description BslRenameElementContext(org.eclipse.emf.common.util.URI targetElementURI, org.eclipse.emf.ecore.EClass targetElementEClass, org.eclipse.emf.ecore.EObject targetObject, org.eclipse.emf.ecore.EObject initializeTargetObject)
ConstructorBslRenameElementContext(org.eclipse.emf.common.util.URI targetElementURI, org.eclipse.emf.ecore.EClass targetElementEClass, org.eclipse.ui.IEditorPart triggeringEditor, ISelection triggeringEditorSelection, org.eclipse.emf.common.util.URI contextResourceURI, org.eclipse.emf.ecore.EObject targetObject, org.eclipse.emf.ecore.EObject initializeTargetObject)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
checkForStatementCounter(ISelection selection, org.eclipse.emf.ecore.EObject targetObject)
Checks that selection object in the refactoring corresponding to the expression ofForStatement
counterCollection<org.eclipse.emf.common.util.URI>
getAnotherForCounterUri()
Gets collection ofURI
corresponding to the anotherForStatement
with the same counter expression as ingetForStatementCounter()
org.eclipse.emf.ecore.EObject
getForStatementCounter()
Gets expression corresponding to the 'For' statement counter if current refactoring context corresponding to the itsorg.eclipse.emf.common.util.URI
getForStatementUri()
GetsURI
corresponding to the 'For' statement if current refactoring context corresponding to the expression its counterorg.eclipse.emf.ecore.EObject
getInitializeTargetObject()
Gets initial object for refactoring from selectionModule
getModule()
Gets actual Bsl module for target object of refactoringorg.eclipse.emf.ecore.EObject
getTargetObject()
Gets target object for refactoringboolean
isForStatementCounter()
Checks that current refactoring context corresponding to the expression of the 'For' statement countervoid
setForStatementCounter(boolean value)
Sets that current refactoring context corresponding to the expression of the 'For' statement counter
-
-
-
Constructor Detail
-
BslRenameElementContext
public BslRenameElementContext(org.eclipse.emf.common.util.URI targetElementURI, org.eclipse.emf.ecore.EClass targetElementEClass, org.eclipse.emf.ecore.EObject targetObject, org.eclipse.emf.ecore.EObject initializeTargetObject)
Constructor- Parameters:
targetElementURI
- uri of the target element for refactoringtargetElementEClass
- eClass of the target element for refactoringtargetObject
- target object for refactoringinitializeTargetObject
- initial object for refactoring from selection
-
BslRenameElementContext
public BslRenameElementContext(org.eclipse.emf.common.util.URI targetElementURI, org.eclipse.emf.ecore.EClass targetElementEClass, org.eclipse.ui.IEditorPart triggeringEditor, ISelection triggeringEditorSelection, org.eclipse.emf.common.util.URI contextResourceURI, org.eclipse.emf.ecore.EObject targetObject, org.eclipse.emf.ecore.EObject initializeTargetObject)
Constructor- Parameters:
targetElementURI
- uri of the target element for refactoringtargetElementEClass
- eClass of the target element for refactoringtriggeringEditor
- editor where refactoring was calledtriggeringEditorSelection
- refactoring initial selectioncontextResourceURI
- resource uritargetObject
- target object for refactoringinitializeTargetObject
- initial object for refactoring from selection
-
-
Method Detail
-
getTargetObject
public org.eclipse.emf.ecore.EObject getTargetObject()
Gets target object for refactoring- Returns:
- target object for refactoring
-
getInitializeTargetObject
public org.eclipse.emf.ecore.EObject getInitializeTargetObject()
Gets initial object for refactoring from selection- Returns:
- initial object for refactoring from selection
-
getModule
public Module getModule()
Gets actual Bsl module for target object of refactoring- Returns:
- actual Bsl module for target object of refactoring, never
null
-
isForStatementCounter
public boolean isForStatementCounter()
Checks that current refactoring context corresponding to the expression of the 'For' statement counter- Returns:
true
if current refactoring context corresponding to the expression of the 'For' statement counter,false
otherwise
-
setForStatementCounter
public void setForStatementCounter(boolean value)
Sets that current refactoring context corresponding to the expression of the 'For' statement counter- Parameters:
value
-true
if current refactoring context corresponding to the expression of the 'For' statement counter,false
otherwise
-
getForStatementUri
public org.eclipse.emf.common.util.URI getForStatementUri()
GetsURI
corresponding to the 'For' statement if current refactoring context corresponding to the expression its counter- Returns:
URI
corresponding to the 'For' statement if current refactoring context corresponding to the expression its counter, otherwise returnnull
-
getForStatementCounter
public org.eclipse.emf.ecore.EObject getForStatementCounter()
Gets expression corresponding to the 'For' statement counter if current refactoring context corresponding to the its- Returns:
- expression corresponding to the 'For' statement counter if current refactoring context corresponding to the its, otherwise
null
will be returned
-
getAnotherForCounterUri
public Collection<org.eclipse.emf.common.util.URI> getAnotherForCounterUri()
Gets collection ofURI
corresponding to the anotherForStatement
with the same counter expression as ingetForStatementCounter()
- Returns:
- collection of
URI
corresponding to the anotherForStatement
with the same counter expression as ingetForStatementCounter()
, nevernull
-
checkForStatementCounter
protected boolean checkForStatementCounter(ISelection selection, org.eclipse.emf.ecore.EObject targetObject)
Checks that selection object in the refactoring corresponding to the expression ofForStatement
counter- Parameters:
selection
- current selection in Bsl module, can't benull
targetObject
- actual refactoring object, can't benull
- Returns:
true
if selection object in the refactoring corresponding to the expression ofForStatement
counter,false
otherwise
-
-