plugins - Eclipse PluginDevelopment: How to set ProblemMarker for IFolder? -
when developing eclipse plugin, best way set problemmarker empty ifolders? trying achieve following: im using own project type, , want folders in package explorer marked , decorated warning when empty.
what can add markers when opening eclipse. dont know how update markers when changes occur.
i tried way:
using method : public void resourcechanged(iresourcechangeevent event) (is called whenever in workspace changed)
i checking folders if empty (works)
then adding problemmarker on ifile instances. (does not work, because adding problemmarker locked while being in method resourcechanged) because changing markers fires resourcechanged event.
so usual way solve problem? guess there 1 because in eclipse whenever change in package explorer decorators updated instantly.
you try create builder checks problems , creates markers needed.
this article you
Comments
Post a Comment