Shane Kamar
Shane Kamar

Reputation: 31

Adding custom marker icons to Eclipse margins?

How do you add custom marker icons (similar to the ones Eclipse already uses for errors, warnings, code folding, etc.) to the margin of an existent source editor in an Eclipse plugin? I had thought there would be many samples on this but cannot seem to find any (or any similar Stackoverflow questions). My goal is to create an Eclipse plugin that provides contextual markers in many source languages.

Upvotes: 0

Views: 268

Answers (1)

Chris Gerken
Chris Gerken

Reputation: 16392

You want to look at defining your own Resource Markers. Once you've configured them you generally use builders to manage your Markers, although the API's will work from any Eclipse plug-in. Try creating a new plugin project with the incremental project builder template (specified on the last new plugin project wizard page) for a code example.

Upvotes: 1

Related Questions