Dynamic menu contribution doesn't show up in a toolbar [message #709974] |
Thu, 04 August 2011 10:49  |
Eclipse User |
|
|
|
In my plugin.xml I have
<menuContribution
allPopups="false"
locationURI="menu:arm.views.funblocks?after=additions">
<menu
icon="icons/fblock.gif"
id="arm.views.funblocks.create"
label="%arm.views.funblocks.create">
<dynamic class="ru.focusmedia.odp.arm.funblocks.navigator.admin.CreateFunBlockContrib"
id="arm.views.funblocks.create.menuitems">
</dynamic>
</menu>
<command
commandId="org.eclipse.ui.edit.delete"
style="push">
</command>
</menuContribution>
and this works fine. However, if I replace "menu:" with "toolbar:" in locationURI, only the delete command shows up, but not the menu. I've also tried replacing <menu> element with <toolbar>, but with no result. What am I doing wrong?
|
|
|
|
|
Re: Dynamic menu contribution doesn't show up in a toolbar [message #713897 is a reply to message #710528] |
Tue, 09 August 2011 06:31  |
Eclipse User |
|
|
|
Quote:But a toolbar can be contributed to a menu contribution.
Makes sense, thanks!
Quote:An example
I did try this, and it didn't work. I now think the problem is that my contribution class inherits from CompoundContributionItem, but if you look at the definition, CompoundContributionItem.fill(Toolbar, int) does nothing. I wonder why it doesn't...
|
|
|
Powered by
FUDForum. Page generated in 0.26614 seconds