Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Dynamic menu contribution to view toolbar does not work?
Dynamic menu contribution to view toolbar does not work? [message #326337] Sat, 15 March 2008 16:32 Go to next message
Uwe Stieber is currently offline Uwe StieberFriend
Messages: 19
Registered: July 2009
Junior Member
Hi,
I desire to contribute a submenu into my views local toolbar. However, the
contribution never show up and I cannot find out why. Is this supposed to
work?

....
<menuContribution locationURI="toolbar:myViewId?before=additions">
<menu
icon=" platform:/plugin/org.eclipse.ui/icons/full/obj16/warn_tsk.gi f "
id="toolbar.verbosityMenu"
label="%verbosityMenu.label"
tooltip="%verbosityMenu.tooltip">
<dynamic
class="x.y.z.VerbosityMenuContributionItem"
id="verbosityMenu.contributionItemProvider">
</dynamic>
</menu>
</menuContribution>
....

The CompoundContributionItem implementation is never called and the menu
isn't visible. How can I make this work? Any help is appricated.

Thanks, Regards,
Uwe Stieber
Re: Dynamic menu contribution to view toolbar does not work? [message #326612 is a reply to message #326337] Wed, 26 March 2008 14:34 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

You can't add a submenu to a toolbar ... menus are for menu: and popup:

Or are you trying to create a toolitem with a dropdown menu? In that
case, see http://wiki.eclipse.org/Menu_Contributions/Dropdown_Command

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


Re: Dynamic menu contribution to view toolbar does not work? [message #326654 is a reply to message #326612] Thu, 27 March 2008 15:56 Go to previous message
Uwe Stieber is currently offline Uwe StieberFriend
Messages: 19
Registered: July 2009
Junior Member
Hi Paul,
thanks for the clarification. I've been looking indeed for creating a
toolitem with a dropdown menu.

Regards, Uwe Stieber

"Paul Webster" <pwebster@ca.ibm.com> wrote in message
news:fsdmkq$e0b$2@build.eclipse.org...
> You can't add a submenu to a toolbar ... menus are for menu: and popup:
>
> Or are you trying to create a toolitem with a dropdown menu? In that
> case, see http://wiki.eclipse.org/Menu_Contributions/Dropdown_Command
>
> 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:Tooltips possible for EMF objects in properties view?
Next Topic:How to disable/replace eclipse logger implementation
Goto Forum:
  


Current Time: Sat Jul 27 16:25:37 GMT 2024

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

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

Back to the top