public class ShortCutEditStrategy extends AbstractEditStrategy implements ISourceViewerAware
IAutoEditStrategy
for shortcuts. Replaces the given shortcut by the given replacement.debug, DEBUG
Constructor and Description |
---|
ShortCutEditStrategy() |
Modifier and Type | Method and Description |
---|---|
ShortCutEditStrategy |
configure(java.lang.String shortcut,
java.lang.String replacement) |
protected void |
internalCustomizeDocumentCommand(org.eclipse.jface.text.IDocument document,
org.eclipse.jface.text.DocumentCommand command) |
void |
setSourceViewer(org.eclipse.jface.text.source.ISourceViewer sourceViewer) |
void |
verifyKey(org.eclipse.swt.events.VerifyEvent event) |
count, customizeDocumentCommand, getDocumentContent, handleBadLocationException, isIdentifierPart
public ShortCutEditStrategy configure(java.lang.String shortcut, java.lang.String replacement)
protected void internalCustomizeDocumentCommand(org.eclipse.jface.text.IDocument document, org.eclipse.jface.text.DocumentCommand command) throws org.eclipse.jface.text.BadLocationException
internalCustomizeDocumentCommand
in class AbstractEditStrategy
org.eclipse.jface.text.BadLocationException
public void setSourceViewer(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
setSourceViewer
in interface ISourceViewerAware
public void verifyKey(org.eclipse.swt.events.VerifyEvent event)
verifyKey
in interface org.eclipse.swt.custom.VerifyKeyListener
verifyKey
in class AbstractEditStrategy