I’m creating stereotypes using my plugin. Everything works fine except setting the icon path. I use the setIconPath method, specifying an absolute path to the file (like “C:\users\user\appdata…”). In this case, in the stereotype configuration window - the icon is displayed, but in the elements to which this stereotype is assigned - no.
When I try to see the path to the icon in an other good working stereotype (using getIconPath), I get something like this: stereotypeIcons/hMRq9F6FYFVAAQWb
It looks like the icon needs to be loaded into the project somehow first, and then use the internal path?
Sorry if my question is naive (I’m just learning Java and creating plugins), but - how, after all, to correctly set the icon for stereotype?
Thanks in advance for the help!