Class CreateMethodVariable
java.lang.Object
com.e1c.g5.v8.dt.lcore.ui.templates.contentassist.variable.AbstractVariable
com.e1c.g5.v8.dt.bsl.ui.templates.variables.CreateMethodAndInvocationVariable
com.e1c.g5.v8.dt.bsl.ui.templates.variables.CreateMethodVariable
- All Implemented Interfaces:
IGlobalVariable
,IVariable
Variable that creates the method and puts its name in the variable spot
-
Constructor Summary
ConstructorsConstructorDescriptionCreateMethodVariable
(org.eclipse.jface.text.IRegion region, String name, boolean isProcedure, List<String> params) Creates new instance of this by calling super's constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected String
Returns text of the variable for the given regionprotected Collection<LinkedGroup>
setupVariableLinks
(org.eclipse.xtext.ui.editor.model.XtextDocument document, org.eclipse.jface.text.IRegion variablePosition, List<org.eclipse.text.edits.RangeMarker> nameGroup) Setups link groups for the variable textMethods inherited from class com.e1c.g5.v8.dt.bsl.ui.templates.variables.CreateMethodAndInvocationVariable
applyGlobal, createMethod, preApplyGlobal
Methods inherited from class com.e1c.g5.v8.dt.lcore.ui.templates.contentassist.variable.AbstractVariable
apply, getDialogProvider, getProposalProvider, getRegion
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.e1c.g5.v8.dt.lcore.ui.templates.contentassist.variable.IVariable
apply, getDialogProvider, getProposalProvider, getRegion
-
Constructor Details
-
Method Details
-
getVariableText
Description copied from class:AbstractVariable
Returns text of the variable for the given region- Overrides:
getVariableText
in classCreateMethodAndInvocationVariable
- Returns:
- The text of the variable for the given region, can be
null
-
setupVariableLinks
protected Collection<LinkedGroup> setupVariableLinks(org.eclipse.xtext.ui.editor.model.XtextDocument document, org.eclipse.jface.text.IRegion variablePosition, List<org.eclipse.text.edits.RangeMarker> nameGroup) Description copied from class:CreateMethodAndInvocationVariable
Setups link groups for the variable text- Overrides:
setupVariableLinks
in classCreateMethodAndInvocationVariable
- Parameters:
document
- The document to work on, cannot benull
variablePosition
- The position of the variable, cannot benull
nameGroup
- The list to add link group of the name to, cannot benull
- Returns:
- created
LinkedGroup
by template variableRangeMarker
, nevernull
-