Class 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 '|'
    • Field Detail

      • defaultIndentLineAutoEditStrategy

        @Inject
        protected com.google.inject.Provider<org.eclipse.jface.text.DefaultIndentLineAutoEditStrategy> defaultIndentLineAutoEditStrategy
    • Constructor Detail

      • BslStringLiteralInsertNewLineEditStrategy

        public BslStringLiteralInsertNewLineEditStrategy()
    • Method Detail

      • 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 class org.eclipse.xtext.ui.editor.autoedit.AbstractEditStrategy
        Throws:
        org.eclipse.jface.text.BadLocationException