Package com.e1c.g5.v8.dt.bsl.check.qfix
Interface IXtextInteractiveBslModuleFixModel
- All Superinterfaces:
IXtextBslModuleFixModel
- All Known Implementing Classes:
XtextInteractiveBslModuleFixModel
Contract for xtext BSL interactive quick fix model
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Connects the ui mode for linked mode and starts UI on the first position Should be called write after installation of linkedModeModel:linkedModeModel.forceInstall()
Multilanguage proposals for quick-fix and content-assist for BslgetFormatString
(org.eclipse.emf.ecore.EObject eObject) Provides the format string for the givenEObject
which is the semantic object whose node should be providedNodeModelUtils.findActualNodeFor()
ProvidesIndentTextEditorProvider
org.eclipse.jface.text.IRegion
getLineInformationOfOffset
(int offset) Returns a description of the line at the given offset.The description contains the offset and the length of the line excluding the line's delimiter.org.eclipse.jface.text.link.LinkedModeModel
ProvidesLinkedModeModel
org.eclipse.xtext.ui.editor.model.edit.IModificationContext
Provides modification contextvoid
selectAndRevealForLinkedModeModel
(int posStart, int length) Sets the selected range and reveals itMethods inherited from interface com.e1c.g5.v8.dt.bsl.check.qfix.IXtextBslModuleFixModel
getBslGrammar, getDocument, getElement, getIssue, getIssueData, getLineSeparator, getResourceLookup, getScriptVariant
-
Method Details
-
getIndentProvider
IndentTextEditorProvider getIndentProvider()ProvidesIndentTextEditorProvider
- Returns:
IndentTextEditorProvider
, nevernull
-
getBslGeneratorMultiLangProposals
BslGeneratorMultiLangProposals getBslGeneratorMultiLangProposals()Multilanguage proposals for quick-fix and content-assist for Bsl- Returns:
- reference to
BslGeneratorMultiLangProposals
, nevernull
-
getModificationContext
org.eclipse.xtext.ui.editor.model.edit.IModificationContext getModificationContext()Provides modification context- Returns:
IModificationContext
, nevernull
-
getFormatString
Optional<String> getFormatString(org.eclipse.emf.ecore.EObject eObject) throws org.eclipse.jface.text.BadLocationException Provides the format string for the givenEObject
which is the semantic object whose node should be providedNodeModelUtils.findActualNodeFor()
- Parameters:
eObject
- the object, cannot benull
- Returns:
- format string, never
null
- Throws:
org.eclipse.jface.text.BadLocationException
-
getLinkedModeModel
org.eclipse.jface.text.link.LinkedModeModel getLinkedModeModel()ProvidesLinkedModeModel
- Returns:
LinkedModeModel
, nevernull
-
getLineInformationOfOffset
org.eclipse.jface.text.IRegion getLineInformationOfOffset(int offset) throws org.eclipse.jface.text.BadLocationException Returns a description of the line at the given offset.The description contains the offset and the length of the line excluding the line's delimiter.- Parameters:
offset
- the offset whose line should be described- Returns:
- a region describing the line, never
null
- Throws:
org.eclipse.jface.text.BadLocationException
-
enterUiMode
void enterUiMode()Connects the ui mode for linked mode and starts UI on the first position Should be called write after installation of linkedModeModel:linkedModeModel.forceInstall()
-
selectAndRevealForLinkedModeModel
void selectAndRevealForLinkedModeModel(int posStart, int length) Sets the selected range and reveals it- Parameters:
posStart
- the start positionlength
- the length of selection
-