public abstract class AbstractTerminalsEditStrategy extends AbstractEditStrategy
Modifier and Type | Field and Description |
---|---|
protected DocumentUtil |
util |
debug, DEBUG
Constructor and Description |
---|
AbstractTerminalsEditStrategy(java.lang.String leftTerminal,
java.lang.String rightTerminal) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
allowsEqualTerminals() |
protected org.eclipse.jface.text.IRegion |
findStartTerminal(org.eclipse.jface.text.IDocument document,
int offset)
finds the first start terminal which is not closed before the cursor position.
|
protected org.eclipse.jface.text.IRegion |
findStopTerminal(org.eclipse.jface.text.IDocument document,
int offset)
finds the first stop terminal which has not been started after the cursor position.
|
protected DocumentUtil |
getDocumentUtil() |
java.lang.String |
getLeftTerminal() |
java.lang.String |
getRightTerminal() |
void |
setDocumentUtil(DocumentUtil util) |
count, customizeDocumentCommand, getDocumentContent, handleBadLocationException, internalCustomizeDocumentCommand, isIdentifierPart, verifyKey
@Inject protected DocumentUtil util
public AbstractTerminalsEditStrategy(java.lang.String leftTerminal, java.lang.String rightTerminal)
public void setDocumentUtil(DocumentUtil util)
public java.lang.String getLeftTerminal()
public java.lang.String getRightTerminal()
protected boolean allowsEqualTerminals()
protected DocumentUtil getDocumentUtil()
protected org.eclipse.jface.text.IRegion findStopTerminal(org.eclipse.jface.text.IDocument document, int offset) throws org.eclipse.jface.text.BadLocationException
org.eclipse.jface.text.BadLocationException
protected org.eclipse.jface.text.IRegion findStartTerminal(org.eclipse.jface.text.IDocument document, int offset) throws org.eclipse.jface.text.BadLocationException
org.eclipse.jface.text.BadLocationException