Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » customizeDocumentCommand in IAutoEditStrategy only called on backspace
customizeDocumentCommand in IAutoEditStrategy only called on backspace [message #506773] Sat, 09 January 2010 15:32
Henrik  is currently offline Henrik Friend
Messages: 2
Registered: January 2010
Junior Member

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) {

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!
Previous Topic:Missing files (eclipse, in product built on windows
Next Topic:customizeDocumentCommand in IAutoEditStrategy only called on backspace
Goto Forum:

Current Time: Fri May 07 14:19:10 GMT 2021

Powered by FUDForum. Page generated in 0.01649 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top