|using ImageDescriptor for imported jars [message #729644]
||Mon, 26 September 2011 13:20
| Jang de Blannen Missing name
Registered: September 2011
I have one project A which has Actions with images assigned to them (via code, not xml). These Actions are mostly used in menus.|
A second project B makes use of the compiled jar of the first project. The jar itself does contain the images as I would expect, however the code:
ImageDescriptor idColour = ImageDescriptor
does not seem to work this way. It works for all images which are in the current project B, but this code inside the classes inside the compiled jar (project A) throws errors and cannot find the image.
If I include the relevant images into the project B directory, it works, but that is not how it is supposed to work. I dont want to have to add all the project A pictures into project B.
I cant figure out how to do this correctly. I suppose getClass() is the wrong way.
I hope I am making sense.
Btw. I have no idea as to what title describes this problem. Sorry for the mess.
Powered by FUDForum
. Page generated in 0.02144 seconds