Class XtextInteractiveBslModuleFixModel
java.lang.Object
com.e1c.g5.v8.dt.internal.bsl.check.qfix.XtextBslModuleFixModel
com.e1c.g5.v8.dt.internal.bsl.check.qfix.XtextInteractiveBslModuleFixModel
- All Implemented Interfaces:
IXtextBslModuleFixModel
,IXtextInteractiveBslModuleFixModel
public class XtextInteractiveBslModuleFixModel
extends XtextBslModuleFixModel
implements IXtextInteractiveBslModuleFixModel
The xtext module quick fix model
-
Field Summary
Fields inherited from class com.e1c.g5.v8.dt.internal.bsl.check.qfix.XtextBslModuleFixModel
v8project
-
Constructor Summary
ConstructorsConstructorDescriptionXtextInteractiveBslModuleFixModel
(Supplier<Module> moduleSupp, IV8ProjectManager v8projectManager, BslGrammarAccess bslGrammar, IResourceLookup resourceLookup, IndentTextEditorProvider indentProvider, BslGeneratorMultiLangProposals bslGenProp, org.eclipse.xtext.validation.Issue issue, IDtProject dtProject, org.eclipse.xtext.ui.editor.IURIEditorOpener editorOpener) /** Creates module 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 Bslorg.eclipse.xtext.ui.editor.model.IXtextDocument
ProvidesIDocument
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()
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.Gets line separator preference set for current project.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 class com.e1c.g5.v8.dt.internal.bsl.check.qfix.XtextBslModuleFixModel
getBslGrammar, getElement, getIssue, getIssueData, getResourceLookup, getScriptVariant, getScriptVariant
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.bsl.check.qfix.IXtextBslModuleFixModel
getBslGrammar, getElement, getIssue, getIssueData, getResourceLookup, getScriptVariant
-
Constructor Details
-
XtextInteractiveBslModuleFixModel
public XtextInteractiveBslModuleFixModel(Supplier<Module> moduleSupp, IV8ProjectManager v8projectManager, BslGrammarAccess bslGrammar, IResourceLookup resourceLookup, IndentTextEditorProvider indentProvider, BslGeneratorMultiLangProposals bslGenProp, org.eclipse.xtext.validation.Issue issue, IDtProject dtProject, org.eclipse.xtext.ui.editor.IURIEditorOpener editorOpener) /** Creates module quick fix model- Parameters:
moduleSupp
- supplier forModule
, cannot benull
v8projectManager
- V8 project manager, cannot benull
bslGrammar
- BSL grammar, cannot benull
resourceLookup
- resource lookup service, cannot benull
indentProvider
- indent provider, cannot benull
bslGenProp
- Multi-lang BSL proposals generator, cannot benull
issue
- issue, cannot benull
dtProject
-IDtProject
, cannot benull
editorOpener
-IURIEditorOpener
, cannot benull
-
-
Method Details
-
getDocument
public org.eclipse.xtext.ui.editor.model.IXtextDocument getDocument()Description copied from interface:IXtextBslModuleFixModel
ProvidesIDocument
- Specified by:
getDocument
in interfaceIXtextBslModuleFixModel
- Overrides:
getDocument
in classXtextBslModuleFixModel
- Returns:
IDocument
, nevernull
-
getIndentProvider
Description copied from interface:IXtextInteractiveBslModuleFixModel
ProvidesIndentTextEditorProvider
- Specified by:
getIndentProvider
in interfaceIXtextInteractiveBslModuleFixModel
- Returns:
IndentTextEditorProvider
, nevernull
-
getBslGeneratorMultiLangProposals
Description copied from interface:IXtextInteractiveBslModuleFixModel
Multilanguage proposals for quick-fix and content-assist for Bsl- Specified by:
getBslGeneratorMultiLangProposals
in interfaceIXtextInteractiveBslModuleFixModel
- Returns:
- reference to
BslGeneratorMultiLangProposals
, nevernull
-
getModificationContext
public org.eclipse.xtext.ui.editor.model.edit.IModificationContext getModificationContext()Description copied from interface:IXtextInteractiveBslModuleFixModel
Provides modification context- Specified by:
getModificationContext
in interfaceIXtextInteractiveBslModuleFixModel
- Returns:
IModificationContext
, nevernull
-
getLineInformationOfOffset
public org.eclipse.jface.text.IRegion getLineInformationOfOffset(int offset) throws org.eclipse.jface.text.BadLocationException Description copied from interface:IXtextInteractiveBslModuleFixModel
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.- Specified by:
getLineInformationOfOffset
in interfaceIXtextInteractiveBslModuleFixModel
- Parameters:
offset
- the offset whose line should be described- Returns:
- a region describing the line, never
null
- Throws:
org.eclipse.jface.text.BadLocationException
-
getLineSeparator
Description copied from interface:IXtextBslModuleFixModel
Gets line separator preference set for current project. If the preference is not set for the project then the canonical lookup order is used (instance, configuration, default).- Specified by:
getLineSeparator
in interfaceIXtextBslModuleFixModel
- Overrides:
getLineSeparator
in classXtextBslModuleFixModel
- Returns:
- the line separator preference. Never
null
.
-
getFormatString
public Optional<String> getFormatString(org.eclipse.emf.ecore.EObject eObject) throws org.eclipse.jface.text.BadLocationException Description copied from interface:IXtextInteractiveBslModuleFixModel
Provides the format string for the givenEObject
which is the semantic object whose node should be providedNodeModelUtils.findActualNodeFor()
- Specified by:
getFormatString
in interfaceIXtextInteractiveBslModuleFixModel
- Parameters:
eObject
- the object, cannot benull
- Returns:
- format string, never
null
- Throws:
org.eclipse.jface.text.BadLocationException
-
getLinkedModeModel
public org.eclipse.jface.text.link.LinkedModeModel getLinkedModeModel()Description copied from interface:IXtextInteractiveBslModuleFixModel
ProvidesLinkedModeModel
- Specified by:
getLinkedModeModel
in interfaceIXtextInteractiveBslModuleFixModel
- Returns:
LinkedModeModel
, nevernull
-
enterUiMode
public void enterUiMode()Description copied from interface:IXtextInteractiveBslModuleFixModel
Connects the ui mode for linked mode and starts UI on the first position Should be called write after installation of linkedModeModel:linkedModeModel.forceInstall()
- Specified by:
enterUiMode
in interfaceIXtextInteractiveBslModuleFixModel
-
selectAndRevealForLinkedModeModel
public void selectAndRevealForLinkedModeModel(int posStart, int length) Description copied from interface:IXtextInteractiveBslModuleFixModel
Sets the selected range and reveals it- Specified by:
selectAndRevealForLinkedModeModel
in interfaceIXtextInteractiveBslModuleFixModel
- Parameters:
posStart
- the start positionlength
- the length of selection
-