Icon problem with new menus extension point [message #324055] |
Thu, 17 January 2008 03:13  |
Eclipse User |
|
|
|
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?
|
|
|
|
Powered by
FUDForum. Page generated in 0.03410 seconds