ContextMenu doesn't contain addtions [message #98799] |
Wed, 23 July 2003 17:32  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02769 seconds