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
public class CreateMethodVariable extends CreateMethodAndInvocationVariable
Variable that creates the method and puts its name in the variable spot
-
-
Constructor Summary
Constructors Constructor Description CreateMethodVariable(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetVariableText()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 text-
Methods 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
-
-
-
-
Method Detail
-
getVariableText
protected String 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
-
-