I have a following problem. I've created a library in eclipse (java project, not a plug-in) with some controls, and some of those controls have images. I've used the following method to get the images:
- Code: Select all
_lblRadioButtonReadOnlyImageSelected.setImage(SWTResourceManager.getImage("icons/RadioButtonReadOnlySelected.png"));
this method works when i test this library from inside of this project, but when I try to use it in some other Eclipse Plug-in project, the images are not loaded. I tried also to use the following method:
- Code: Select all
_lblRadioButtonReadOnlyImageSelected.setImage(SWTResourceManager.getImage(this.getClass(), "icons/RadioButtonReadOnlySelected.png"));
but it doesn't work neither in this Controls project, nor in the eclipse plug-in project, no matter how many "../" i put before the path. Any idea how to make this work?
KameS