Package com.e1c.g5.v8.dt.bsl.check.qfix
Interface IXtextInteractiveBslModuleFixModel
-
- All Superinterfaces:
IXtextBslModuleFixModel
public interface IXtextInteractiveBslModuleFixModel extends IXtextBslModuleFixModel
Contract for xtext BSL interactive quick fix model
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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()
BslGeneratorMultiLangProposals
getBslGeneratorMultiLangProposals()
Multilanguage proposals for quick-fix and content-assist for BslOptional<String>
getFormatString(org.eclipse.emf.ecore.EObject eObject)
Provides the format string for the givenEObject
which is the semantic object whose node should be providedNodeModelUtils.findActualNodeFor()
IndentTextEditorProvider
getIndentProvider()
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
getLinkedModeModel()
ProvidesLinkedModeModel
org.eclipse.xtext.ui.editor.model.edit.IModificationContext
getModificationContext()
Provides modification contextvoid
selectAndRevealForLinkedModeModel(int posStart, int length)
Sets the selected range and reveals it-
Methods inherited from interface com.e1c.g5.v8.dt.bsl.check.qfix.IXtextBslModuleFixModel
getBslGrammar, getDocument, getElement, getIssue, getIssueData, getLineSeparator, getResourceLookup, getScriptVariant
-
-
-
-
Method Detail
-
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
-
-