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(String shortcut,
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, isIdentifierPartpublic ShortCutEditStrategy configure(String shortcut, 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 AbstractEditStrategyorg.eclipse.jface.text.BadLocationExceptionpublic void setSourceViewer(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
setSourceViewer in interface ISourceViewerAwarepublic void verifyKey(org.eclipse.swt.events.VerifyEvent event)
verifyKey in interface org.eclipse.swt.custom.VerifyKeyListenerverifyKey in class AbstractEditStrategyCopyright © 2016. All Rights Reserved.