|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.xtext.ui.editor.autoedit.AbstractEditStrategy
public abstract class AbstractEditStrategy
Field Summary | |
---|---|
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 Summary | |
---|---|
AbstractEditStrategy()
|
Method Summary | |
---|---|
int |
count(java.lang.String toFind,
java.lang.String searchMe)
|
void |
customizeDocumentCommand(org.eclipse.jface.text.IDocument document,
org.eclipse.jface.text.DocumentCommand command)
Allows the strategy to manipulate the document 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)
The following event fields are used: event.character is the character that was typed (input) event.keyCode is the key code that was typed (input) event.stateMask is the state of the keyboard (input) event.doit is processed or not (output) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DEBUG
@Inject(optional=true) protected boolean debug
true
Constructor Detail |
---|
public AbstractEditStrategy()
Method Detail |
---|
public void verifyKey(org.eclipse.swt.events.VerifyEvent event)
org.eclipse.swt.custom.VerifyKeyListener
verifyKey
in interface org.eclipse.swt.custom.VerifyKeyListener
event
- the verify eventVerifyEvent
public void customizeDocumentCommand(org.eclipse.jface.text.IDocument document, org.eclipse.jface.text.DocumentCommand command)
org.eclipse.jface.text.IAutoEditStrategy
customizeDocumentCommand
in interface org.eclipse.jface.text.IAutoEditStrategy
document
- the document that will be changedcommand
- the document command describing the changeprotected void handleBadLocationException(org.eclipse.jface.text.BadLocationException e)
RuntimeException
if debug
is set to true
.
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |