Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » ContextMenu doesn't contain addtions
ContextMenu doesn't contain addtions [message #98799] Wed, 23 July 2003 17:32 Go to next message
Eclipse UserFriend
Originally posted by: luis_benitez.nospam.us.ibm.com

Hello,

In my view, I'm doing the following:

m_tree is a TreeViewer

MenuManager menuMgr = new MenuManager("#PopupMenu"); //$NON-NLS-1$
getSite().registerContextMenu( menuMgr, m_tree );
Menu context = menuMgr.createContextMenu( m_tree.getTree() );
m_tree.getTree().setMenu(context);

When I run my program and try to load up the context menu, I get the
following error:

Context menu missing standard group
'org.eclipse.ui.IWorkbenchActionConstants.MB_ADDITIONS'. (menu id =
<myview> )'

Any ideas of where I've gone wrong ?

-Luis
Re: ContextMenu doesn't contain addtions [message #99364 is a reply to message #98799] Thu, 24 July 2003 13:42 Go to previous message
Eclipse UserFriend
Originally posted by: simon.ibm.oti.lab

You did not add the MB_ADDITIONS group to your menu manager, and someone is
trying to contribute an action/menu to the MB_ADDITIONS group. Just add it
to your menu manager

Simon :-)

"Luis Benitez" <luis_benitez@nospam.us.ibm.com> wrote in message
news:bfmuvg$6of$1@eclipse.org...
> Hello,
>
> In my view, I'm doing the following:
>
> m_tree is a TreeViewer
>
> MenuManager menuMgr = new MenuManager("#PopupMenu"); //$NON-NLS-1$
> getSite().registerContextMenu( menuMgr, m_tree );
> Menu context = menuMgr.createContextMenu( m_tree.getTree() );
> m_tree.getTree().setMenu(context);
>
> When I run my program and try to load up the context menu, I get the
> following error:
>
> Context menu missing standard group
> 'org.eclipse.ui.IWorkbenchActionConstants.MB_ADDITIONS'. (menu id =
> <myview> )'
>
> Any ideas of where I've gone wrong ?
>
> -Luis
>
>
Previous Topic:mark editor dirty
Next Topic:Programatically accessing Menu
Goto Forum:
  


Current Time: Sun May 11 11:33:08 EDT 2025

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

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

Back to the top