Full Path of an Image [message #674586] |
Fri, 27 May 2011 12:51 |
Ivan Raichs Messages: 17 Registered: April 2011 |
Junior Member |
|
|
Hello,
I'm working in the creation of an extension point. The user has to introduce as an attribute, an image which has to be located on his plug-in.
When I get the image the user has added using the following code
for (IConfigurationElement e : elements){
Image imageTest=newImage(Display.getDefault(),e.getAttribute("backgroundImage"));
parent.setBackgroundImage(imageTest);
}
I only can get a part of the path of the image, as it was stored in the workspace, for example icons/coolBackground.jpg but I need the whole path to load the image.
I've been googling for a while and I've couldn't get the answer.
Can anybody help me?
Thank you very much in advancead.
Ivan RAICHS
|
|
|
Powered by
FUDForum. Page generated in 0.09838 seconds