org.eclipse.xtend.ide.autoedit
Class AutoEditStrategyProvider.MultiLineTerminalsEditStrategyInRichString

java.lang.Object
  extended by org.eclipse.xtext.ui.editor.autoedit.AbstractEditStrategy
      extended by org.eclipse.xtext.ui.editor.autoedit.AbstractTerminalsEditStrategy
          extended by org.eclipse.xtext.ui.editor.autoedit.MultiLineTerminalsEditStrategy
              extended by org.eclipse.xtend.ide.autoedit.AutoEditStrategyProvider.MultiLineTerminalsEditStrategyInRichString
All Implemented Interfaces:
java.util.EventListener, org.eclipse.jface.text.IAutoEditStrategy, org.eclipse.swt.custom.VerifyKeyListener, org.eclipse.swt.internal.SWTEventListener
Enclosing class:
AutoEditStrategyProvider

public static class AutoEditStrategyProvider.MultiLineTerminalsEditStrategyInRichString
extends MultiLineTerminalsEditStrategy


Nested Class Summary
static class AutoEditStrategyProvider.MultiLineTerminalsEditStrategyInRichString.Factory
           
 
Field Summary
 
Fields inherited from class org.eclipse.xtext.ui.editor.autoedit.AbstractTerminalsEditStrategy
util
 
Fields inherited from class org.eclipse.xtext.ui.editor.autoedit.AbstractEditStrategy
debug, DEBUG
 
Constructor Summary
AutoEditStrategyProvider.MultiLineTerminalsEditStrategyInRichString(java.lang.String leftTerminal, java.lang.String indentationString, java.lang.String rightTerminal)
           
 
Method Summary
protected  boolean atEndOfLineInput(org.eclipse.jface.text.IDocument document, int offset)
          determines whether the given offset is at the end of the input in the line.
protected  org.eclipse.jface.text.IRegion findStartTerminal(org.eclipse.jface.text.IDocument document, int offset)
          finds the first stop terminal which has not been started after the cursor position.
 
Methods inherited from class org.eclipse.xtext.ui.editor.autoedit.MultiLineTerminalsEditStrategy
handleCursorBetweenStartAndStopLine, handleCursorInFirstLine, handleCursorInStopLine, handleNoStopTerminal, internalCustomizeDocumentCommand
 
Methods inherited from class org.eclipse.xtext.ui.editor.autoedit.AbstractTerminalsEditStrategy
allowsEqualTerminals, findStopTerminal, getDocumentUtil, getLeftTerminal, getRightTerminal, setDocumentUtil
 
Methods inherited from class org.eclipse.xtext.ui.editor.autoedit.AbstractEditStrategy
count, customizeDocumentCommand, getDocumentContent, handleBadLocationException, isIdentifierPart, verifyKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutoEditStrategyProvider.MultiLineTerminalsEditStrategyInRichString

public AutoEditStrategyProvider.MultiLineTerminalsEditStrategyInRichString(java.lang.String leftTerminal,
                                                                           java.lang.String indentationString,
                                                                           java.lang.String rightTerminal)
Method Detail

findStartTerminal

protected org.eclipse.jface.text.IRegion findStartTerminal(org.eclipse.jface.text.IDocument document,
                                                           int offset)
                                                    throws org.eclipse.jface.text.BadLocationException
Description copied from class: AbstractTerminalsEditStrategy
finds the first stop terminal which has not been started after the cursor position.

Overrides:
findStartTerminal in class AbstractTerminalsEditStrategy
Throws:
org.eclipse.jface.text.BadLocationException

atEndOfLineInput

protected boolean atEndOfLineInput(org.eclipse.jface.text.IDocument document,
                                   int offset)
                            throws org.eclipse.jface.text.BadLocationException
Description copied from class: MultiLineTerminalsEditStrategy
determines whether the given offset is at the end of the input in the line. trailing whitespace is disregarded.

Overrides:
atEndOfLineInput in class MultiLineTerminalsEditStrategy
Throws:
org.eclipse.jface.text.BadLocationException