Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Full Path of an Image
Full Path of an Image [message #674586] Fri, 27 May 2011 12:51
Ivan Raichs is currently offline Ivan RaichsFriend
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
Previous Topic:cmd window not stay open
Next Topic:cant find a free socket for the debugger-galileo eclipse
Goto Forum:
  


Current Time: Thu Apr 25 08:36:38 GMT 2024

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

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

Back to the top