funkyb
funkyb

Reputation: 23

Eclipse Plugin Dev - Creating and updating custom markers as files are edited

I am working on an Eclipse plugin which uses custom textmarker annotations. There are plenty of examples out there which explain how to create and delete such markers and I have this all working fine from my own event handlers (when the user clicks a 'refresh' menu item).

However, I cannot work out how to hook the Java editor such that I can do this automatically. I would like all open Java editors to call my code at the same time that it invokes the Java compiler / spell checker / etc. so that I can add and update my annotations then.

How do I do this, and can it be done without creating my own builder? I'd prefer that the user does not have to add a new builder themselves.

Thanks very much

-Ian

Upvotes: 2

Views: 577

Answers (1)

Tonny Madsen
Tonny Madsen

Reputation: 12718

The easiest way to this is probably to add a new JDT Compilation Participant - see the extension point org.eclipse.jdt.core.compilationParticipant.

Upvotes: 1

Related Questions