| customizeDocumentCommand in IAutoEditStrategy only called on backspace [message #604045] |
Sat, 09 January 2010 10:32 |
Henrik Messages: 2 Registered: January 2010 |
Junior Member |
|
|
Hi,
I am currently working on a custom editor plugin. I've overwritten getAutoEditStrategies like this:
public IAutoEditStrategy[] getAutoEditStrategies(
ISourceViewer sourceViewer, String contentType) {
return new IAutoEditStrategy[] { new KRLAutoEditStrategy() };
}
and written a minimal Strategy like this:
public class KRLAutoEditStrategy implements IAutoEditStrategy {
public void customizeDocumentCommand(IDocument d, DocumentCommand c) {
System.out.println("Called.");
}
The weird thing is, that customizeDocumentCommand is only called when I press backspace in the editor. Does anyone know what I am missing?
Thanks so much!
Henrik
|
|
|
Powered by
FUDForum. Page generated in 0.03911 seconds