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 TypeMethodDescriptionvoidConnects 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.IXtextDocumentProvidesIDocumentgetFormatString(org.eclipse.emf.ecore.EObject eObject) Provides the format string for the givenEObjectwhich is the semantic object whose node should be providedNodeModelUtils.findActualNodeFor()ProvidesIndentTextEditorProviderorg.eclipse.jface.text.IRegiongetLineInformationOfOffset(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.LinkedModeModelProvidesLinkedModeModelorg.eclipse.xtext.ui.editor.model.edit.IModificationContextProvides modification contextvoidselectAndRevealForLinkedModeModel(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, getScriptVariantMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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 benullv8projectManager- V8 project manager, cannot benullbslGrammar- BSL grammar, cannot benullresourceLookup- resource lookup service, cannot benullindentProvider- indent provider, cannot benullbslGenProp- Multi-lang BSL proposals generator, cannot benullissue- issue, cannot benulldtProject-IDtProject, cannot benulleditorOpener-IURIEditorOpener, cannot benull
-
-
Method Details
-
getDocument
public org.eclipse.xtext.ui.editor.model.IXtextDocument getDocument()Description copied from interface:IXtextBslModuleFixModelProvidesIDocument- Specified by:
getDocumentin interfaceIXtextBslModuleFixModel- Overrides:
getDocumentin classXtextBslModuleFixModel- Returns:
IDocument, nevernull
-
getIndentProvider
Description copied from interface:IXtextInteractiveBslModuleFixModelProvidesIndentTextEditorProvider- Specified by:
getIndentProviderin interfaceIXtextInteractiveBslModuleFixModel- Returns:
IndentTextEditorProvider, nevernull
-
getBslGeneratorMultiLangProposals
Description copied from interface:IXtextInteractiveBslModuleFixModelMultilanguage proposals for quick-fix and content-assist for Bsl- Specified by:
getBslGeneratorMultiLangProposalsin interfaceIXtextInteractiveBslModuleFixModel- Returns:
- reference to
BslGeneratorMultiLangProposals, nevernull
-
getModificationContext
public org.eclipse.xtext.ui.editor.model.edit.IModificationContext getModificationContext()Description copied from interface:IXtextInteractiveBslModuleFixModelProvides modification context- Specified by:
getModificationContextin interfaceIXtextInteractiveBslModuleFixModel- Returns:
IModificationContext, nevernull
-
getLineInformationOfOffset
public org.eclipse.jface.text.IRegion getLineInformationOfOffset(int offset) throws org.eclipse.jface.text.BadLocationException Description copied from interface:IXtextInteractiveBslModuleFixModelReturns 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:
getLineInformationOfOffsetin 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:IXtextBslModuleFixModelGets 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:
getLineSeparatorin interfaceIXtextBslModuleFixModel- Overrides:
getLineSeparatorin 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:IXtextInteractiveBslModuleFixModelProvides the format string for the givenEObjectwhich is the semantic object whose node should be providedNodeModelUtils.findActualNodeFor()- Specified by:
getFormatStringin 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:IXtextInteractiveBslModuleFixModelProvidesLinkedModeModel- Specified by:
getLinkedModeModelin interfaceIXtextInteractiveBslModuleFixModel- Returns:
LinkedModeModel, nevernull
-
enterUiMode
public void enterUiMode()Description copied from interface:IXtextInteractiveBslModuleFixModelConnects 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:
enterUiModein interfaceIXtextInteractiveBslModuleFixModel
-
selectAndRevealForLinkedModeModel
public void selectAndRevealForLinkedModeModel(int posStart, int length) Description copied from interface:IXtextInteractiveBslModuleFixModelSets the selected range and reveals it- Specified by:
selectAndRevealForLinkedModeModelin interfaceIXtextInteractiveBslModuleFixModel- Parameters:
posStart- the start positionlength- the length of selection
-