Package com._1c.g5.v8.dt.bsl.ui.autoedit
Class BslStringLiteralInsertNewLineEditStrategy
java.lang.Object
org.eclipse.xtext.ui.editor.autoedit.AbstractEditStrategy
com._1c.g5.v8.dt.bsl.ui.autoedit.BslStringLiteralInsertNewLineEditStrategy
- All Implemented Interfaces:
EventListener
,org.eclipse.jface.text.IAutoEditStrategy
,org.eclipse.swt.custom.VerifyKeyListener
,org.eclipse.swt.internal.SWTEventListener
public class BslStringLiteralInsertNewLineEditStrategy
extends org.eclipse.xtext.ui.editor.autoedit.AbstractEditStrategy
This strategy adds to string literal content after inserting new line:
- indentation
- symbol '|'
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Special factory for creatingBslStringLiteralInsertNewLineEditStrategy
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.google.inject.Provider<org.eclipse.jface.text.DefaultIndentLineAutoEditStrategy>
Fields inherited from class org.eclipse.xtext.ui.editor.autoedit.AbstractEditStrategy
debug, DEBUG
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
customizeDocumentCommand
(org.eclipse.jface.text.IDocument document, org.eclipse.jface.text.DocumentCommand command) protected void
internalCustomizeDocumentCommand
(org.eclipse.jface.text.IDocument document, org.eclipse.jface.text.DocumentCommand command) Methods inherited from class org.eclipse.xtext.ui.editor.autoedit.AbstractEditStrategy
count, getDocumentContent, handleBadLocationException, isIdentifierPart, verifyKey
-
Field Details
-
defaultIndentLineAutoEditStrategy
@Inject protected com.google.inject.Provider<org.eclipse.jface.text.DefaultIndentLineAutoEditStrategy> defaultIndentLineAutoEditStrategy
-
-
Constructor Details
-
BslStringLiteralInsertNewLineEditStrategy
public BslStringLiteralInsertNewLineEditStrategy()
-
-
Method Details
-
internalCustomizeDocumentCommand
protected void internalCustomizeDocumentCommand(org.eclipse.jface.text.IDocument document, org.eclipse.jface.text.DocumentCommand command) throws org.eclipse.jface.text.BadLocationException - Specified by:
internalCustomizeDocumentCommand
in classorg.eclipse.xtext.ui.editor.autoedit.AbstractEditStrategy
- Throws:
org.eclipse.jface.text.BadLocationException
-
customizeDocumentCommand
public void customizeDocumentCommand(org.eclipse.jface.text.IDocument document, org.eclipse.jface.text.DocumentCommand command) - Specified by:
customizeDocumentCommand
in interfaceorg.eclipse.jface.text.IAutoEditStrategy
- Overrides:
customizeDocumentCommand
in classorg.eclipse.xtext.ui.editor.autoedit.AbstractEditStrategy
-