Interface IGlobalVariable
-
- All Superinterfaces:
IVariable
- All Known Implementing Classes:
CreateMethodAndInvocationVariable
,CreateMethodVariable
public interface IGlobalVariable extends IVariable
Global variable that can apply edits to any point of the document
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ApplyResult
applyGlobal(org.eclipse.xtext.ui.editor.model.XtextDocument document, org.eclipse.jface.text.IRegion variablePosition, IPlacementContext placementContext)
Performs apply at any region of the documentIPlacementContext
preApplyGlobal(org.eclipse.xtext.ui.editor.model.XtextDocument document, int offset)
Computes additional data for computingApplyResult
in method#applyGlobal(XtextDocument, IRegion)
before content of thedocument
will be changed by template pattern-
Methods inherited from interface com.e1c.g5.v8.dt.lcore.ui.templates.contentassist.variable.IVariable
apply, getDialogProvider, getProposalProvider, getRegion
-
-
-
-
Method Detail
-
preApplyGlobal
IPlacementContext preApplyGlobal(org.eclipse.xtext.ui.editor.model.XtextDocument document, int offset)
Computes additional data for computingApplyResult
in method#applyGlobal(XtextDocument, IRegion)
before content of thedocument
will be changed by template pattern- Parameters:
document
- actual document for applyingITemplate
offset
- offset of applying wholeITemplate
- Returns:
- additional data for computing
ApplyResult
in method#applyGlobal(XtextDocument, IRegion)
before content of thedocument
will be changed by template pattern, can benull
if
-
applyGlobal
ApplyResult applyGlobal(org.eclipse.xtext.ui.editor.model.XtextDocument document, org.eclipse.jface.text.IRegion variablePosition, IPlacementContext placementContext)
Performs apply at any region of the document- Parameters:
document
- The document to perform apply on, cannot benull
variablePosition
- The position of the variable after applying template and usualIVariable.apply(String)
, cannot benull
placementContext
- additional information for creatingApplyResult
, computed in {@link #preApplyGlobal(XtextDocument, int), can benull
if there is no additional information- Returns:
- The result of global apply, cannot be
null
-
-