org.eclipse.xtext.xtend2.ui.autoedit
Class AutoEditStrategyProvider.MultiLineTerminalsEditStrategyInRichString
java.lang.Object
org.eclipse.xtext.ui.editor.autoedit.AbstractEditStrategy
org.eclipse.xtext.ui.editor.autoedit.AbstractTerminalsEditStrategy
org.eclipse.xtext.ui.editor.autoedit.MultiLineTerminalsEditStrategy
org.eclipse.xtext.xtend2.ui.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
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. trailing whitespace is disregarded. |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AutoEditStrategyProvider.MultiLineTerminalsEditStrategyInRichString
public AutoEditStrategyProvider.MultiLineTerminalsEditStrategyInRichString(java.lang.String leftTerminal,
java.lang.String indentationString,
java.lang.String rightTerminal)
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