Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » using ImageDescriptor for imported jars
using ImageDescriptor for imported jars [message #729644] Mon, 26 September 2011 17:20
Jang de Blannen Missing name is currently offline Jang de Blannen Missing nameFriend
Messages: 2
Registered: September 2011
Junior Member
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.
Previous Topic:Eclipse IDE for Java EE Developers Helios for Linux PowerPC?
Next Topic:Could SingleLineRule use a regexp? + How do I partition this grammar?
Goto Forum:

Current Time: Tue Sep 29 21:29:17 GMT 2020

Powered by FUDForum. Page generated in 0.01823 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top