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 StringReturns 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, preApplyGlobalMethods inherited from class com.e1c.g5.v8.dt.lcore.ui.templates.contentassist.variable.AbstractVariable
apply, getDialogProvider, getProposalProvider, getRegionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:AbstractVariableReturns text of the variable for the given region- Overrides:
getVariableTextin 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:CreateMethodAndInvocationVariableSetups link groups for the variable text- Overrides:
setupVariableLinksin classCreateMethodAndInvocationVariable- Parameters:
document- The document to work on, cannot benullvariablePosition- The position of the variable, cannot benullnameGroup- The list to add link group of the name to, cannot benull- Returns:
- created
LinkedGroupby template variableRangeMarker, nevernull
-