I have a custom LabelProvider for my file extension. I am trying to give
my file a custom icon in the project explorer based on the contents of the
file (so, files with same extension can have different icons). However,
when I do that I am losing the problem decoration being applied on that
icon. I have tried multiple things like making my LabelProvider a
DecoratingLabelProvider, trying to apply the ProblemsDecorator myself but
not to much success.
I can make my file show the icon associated in the plugin.xml and get the
decorators but if I try to associate a custom icon through a LabelProvider
I lose the decorators (like problem markers).
Has anybody ever tried this and been able to make it work? Appreciate any
insights/tips.