Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » How to set the icon for a ui.popupMenus action?
How to set the icon for a ui.popupMenus action? [message #147384] Tue, 21 October 2003 13:28
Eclipse UserFriend
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
Previous Topic:Workbench window minimize problem
Next Topic:[Howto] use RadioGroupFieldEditor?
Goto Forum:
  


Current Time: Wed Apr 16 13:33:39 EDT 2025

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

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

Back to the top