Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Icon problem with new menus extension point
Icon problem with new menus extension point [message #324055] Thu, 17 January 2008 03:13 Go to next message
Eclipse UserFriend
Hello,
I am using the new org.eclipse.ui.menus extension point. I am creating a
popup menu contribution "Run build for target" where a dynamic element
creates the submenu entries. The problem now is that the defined icon for
"Run build for target" is not shown in the popup menu!

Here is my extension definition:

<menuContribution
locationURI="popup:org.eclipse.ui.popup.any?after=blueworx" >
<menu
icon="icons/exec_obj.gif"
id="com.bosch.blueworx.core.ui.runBuildTargetMenu2"
label="Run software build for target:"
tooltip="Runs the software build for the given target">
<dynamic

class=" com.bosch.blueworx.core.swbuildstarter.SwBuildContributionIt emProvider "
id="com.bosch.blueworx.core.swbuildstarter.dynamic1">
<visibleWhen>
<and>
<count
value="1">
</count>
<with
variable="selection">
<iterate
operator="and">
<instanceof

value="org.eclipse.core.resources.IProject">
</instanceof>
<test

property="org.eclipse.core.resources.projectNature"

value="com.bosch.blueworx.core.blueworxnature">
</test>
<test

property="org.eclipse.core.resources.projectNature"

value="org.eclipse.cdt.managedbuilder.core.ScannerConfigNature ">
</test>
<test

property="org.eclipse.core.resources.projectNature"

value="org.eclipse.cdt.managedbuilder.core.managedBuildNature ">
</test>
<test

property="org.eclipse.core.resources.projectNature"
value="org.eclipse.cdt.core.cnature">
</test>
</iterate>
</with>
</and>
</visibleWhen>
</dynamic>
</menu>
</menuContribution>

It seems that icons are only shown if they are used in the context of a
command.


Any ideas?
Re: Icon problem with new menus extension point [message #324100 is a reply to message #324055] Thu, 17 January 2008 10:44 Go to previous message
Eclipse UserFriend
That sounds like a bug. Please open a bug report at
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Platform &component=UI&short_desc=[Contributions]

It is probably not setting the menu icon on the created MenuManager

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/workbench.htm
Previous Topic:Code locking
Next Topic:Re: manage menu contribution
Goto Forum:
  


Current Time: Wed Jul 16 21:00:38 EDT 2025

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

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

Back to the top