public abstract class AbstractEditStrategy
extends java.lang.Object
implements org.eclipse.jface.text.IAutoEditStrategy, org.eclipse.swt.custom.VerifyKeyListener
Modifier and Type | Field and Description |
---|---|
protected boolean |
debug
Boolean field that can be used to debug edit strategies.
|
static java.lang.String |
DEBUG
Named binding key to bind boolean constant 'true' the debug / test mode for the
edit strategies.
|
Constructor and Description |
---|
AbstractEditStrategy() |
Modifier and Type | Method and Description |
---|---|
int |
count(java.lang.String toFind,
java.lang.String searchMe) |
void |
customizeDocumentCommand(org.eclipse.jface.text.IDocument document,
org.eclipse.jface.text.DocumentCommand command) |
protected java.lang.String |
getDocumentContent(org.eclipse.jface.text.IDocument document,
org.eclipse.jface.text.DocumentCommand command) |
protected void |
handleBadLocationException(org.eclipse.jface.text.BadLocationException e)
Logs the exception.
|
protected abstract void |
internalCustomizeDocumentCommand(org.eclipse.jface.text.IDocument document,
org.eclipse.jface.text.DocumentCommand command) |
protected boolean |
isIdentifierPart(org.eclipse.jface.text.IDocument doc,
int offset) |
void |
verifyKey(org.eclipse.swt.events.VerifyEvent event) |
public static final java.lang.String DEBUG
@Inject(optional=true) protected boolean debug
true
public void verifyKey(org.eclipse.swt.events.VerifyEvent event)
verifyKey
in interface org.eclipse.swt.custom.VerifyKeyListener
public void customizeDocumentCommand(org.eclipse.jface.text.IDocument document, org.eclipse.jface.text.DocumentCommand command)
customizeDocumentCommand
in interface org.eclipse.jface.text.IAutoEditStrategy
protected void handleBadLocationException(org.eclipse.jface.text.BadLocationException e)
protected abstract void internalCustomizeDocumentCommand(org.eclipse.jface.text.IDocument document, org.eclipse.jface.text.DocumentCommand command) throws org.eclipse.jface.text.BadLocationException
org.eclipse.jface.text.BadLocationException
public int count(java.lang.String toFind, java.lang.String searchMe) throws org.eclipse.jface.text.BadLocationException
org.eclipse.jface.text.BadLocationException
protected java.lang.String getDocumentContent(org.eclipse.jface.text.IDocument document, org.eclipse.jface.text.DocumentCommand command) throws org.eclipse.jface.text.BadLocationException
org.eclipse.jface.text.BadLocationException
protected boolean isIdentifierPart(org.eclipse.jface.text.IDocument doc, int offset) throws org.eclipse.jface.text.BadLocationException
org.eclipse.jface.text.BadLocationException