How to set the icon for a ui.popupMenus action? [message #147384] |
Tue, 21 October 2003 13:28 |
Eclipse User |
|
|
|
Originally posted by: mharp.seapine.com
Hey all,
I've got my plugin.xml file with a <extension
point="org.eclipse.ui.popupMenus"> tag that has child <action> tags
describing menu items.
The icon attribute on the action tag only seems to support icons through
relative file paths. (like icon="icons/myicon.png")
What I want to do instead is tell the action to use an image file that is
packaged directly in my plugin .jar file. The javax.swing.ImageIcon class
supports giving a package path like com/foo/myicon.png and then creates an
image from that. I can't seem to find anyway through Eclipse to set the icon
for an action besides the plugin.xml file.
Am I missing something, or does this functionality not yet exist? Can I set
the icon value to somehow point to a jar path instead of a local file system
path?
Thanks,
harpstein
|
|
|
Powered by
FUDForum. Page generated in 0.02019 seconds