Loading Icons From Another Plugin [message #333718] |
Fri, 26 December 2008 19:21  |
Eclipse User |
|
|
|
Hi Guys,
I have been struggling with this one for a while so any help would be
appreciated.
Basically, I wish to access some of the standard JDT icons for use within
my own plugin such as field_private_obj.gif. (I wish to find the URL - not
load the ImageDescriptor)
If I copy the jdt jar which contains the icons into my own plugin
classpath I can access the icons via ......
URL theURL = FileLocator.find(MyPlugin.getDefault().getBundle(), new
Path("icons/full/obj16/field_private_obj.gif"),null);
However, its not very clean to copy the icons and I would prefer to access
the originals. The issue is I cant seem to find the appropriate JDT class
to substitute. JDIDebugPlugin does not seem to work - if indeed this is
the right route to go down.
i.e.
URL theURL = FileLocator.find(<<Some JDT Plugin
Class>>.getDefault().getBundle(), new
Path("icons/full/obj16/field_private_obj.gif"),null);
Any thoughts on which plugin class to use or if there is a completely
separate mechanism. Please note - I want to find the URL not the swt image
descriptor or load the images from an image directory.
Kind Regards,
Mathew
|
|
|
|
Powered by
FUDForum. Page generated in 0.02637 seconds