Adding Problem/Marker

8 views
Skip to first unread message

Markus Knecht

unread,
Oct 5, 2016, 5:44:45 AM10/5/16
to eclim-dev
Hi everybody

I'm Building a plugin for eclim to integrate a eclipse plugin, so we can use it from vim
Our Eclipse Plugin generates some custom markers, which I want to display.

In the projects managers refresh methode, i tried to add our markers as problems:
so i looked up our Markers and for each i added a:
file.createMarker(IMarker.PROBLEM);
and filed its field, but strangly they only appear if theire are already oter compilation errors.
Is their a way to let vim/eclim display these regardless of the presence of compilation errors,
or even better let vim/eclim display arbitary markers?

until now I'm using a eclim with a change in the org.eclim.plugin.jdt.command.src.SrcUpdateCommand class, which just adds our markers to the returned List<Errors>, which works fine but I would really like to do this in a standard plugin, so that other eclim users can benefit too.

First I thought i could just do the same in the ProjectsManagers update methode, which returns a List<Error>
But i didn't figured out when if at all the update methode is called.

Any Hint how to do that in a regular eclim plugin?

Markus Knecht

unread,
Oct 5, 2016, 6:13:28 AM10/5/16
to eclim-dev
Im my starting post, was a missinformation, the approach with file.createMarker(IMarker.PROBLEM), does not work at all, it was more of a coincidence with some other stuff I tried, that made it look that way.
Meaning I'm now a step further away from making this work as plugin.
Reply all
Reply to author
Forward
0 new messages