public abstract class AbstractEditStrategy extends 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 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(String toFind,
String searchMe) |
void |
customizeDocumentCommand(org.eclipse.jface.text.IDocument document,
org.eclipse.jface.text.DocumentCommand command) |
protected 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 String DEBUG
@Inject(optional=true) protected boolean debug
truepublic void verifyKey(org.eclipse.swt.events.VerifyEvent event)
verifyKey in interface org.eclipse.swt.custom.VerifyKeyListenerpublic void customizeDocumentCommand(org.eclipse.jface.text.IDocument document,
org.eclipse.jface.text.DocumentCommand command)
customizeDocumentCommand in interface org.eclipse.jface.text.IAutoEditStrategyprotected 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.BadLocationExceptionpublic int count(String toFind, String searchMe) throws org.eclipse.jface.text.BadLocationException
org.eclipse.jface.text.BadLocationExceptionprotected String getDocumentContent(org.eclipse.jface.text.IDocument document, org.eclipse.jface.text.DocumentCommand command) throws org.eclipse.jface.text.BadLocationException
org.eclipse.jface.text.BadLocationExceptionprotected boolean isIdentifierPart(org.eclipse.jface.text.IDocument doc,
int offset)
throws org.eclipse.jface.text.BadLocationException
org.eclipse.jface.text.BadLocationExceptionCopyright © 2016. All Rights Reserved.