[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools] Re: Submenu item is not active

what release/build are you using?

Simon :-)

"Roman Möhl" <roman.moehl@xxxxxxx> wrote in message
news:ajacc4$ia8$1@xxxxxxxxxxxxxxxx
> Hi Simon,
>
> here is the code fragment:
>
>   private void fillContextMenu(IMenuManager mgr) {
>     // sub menu
>     IMenuManager subMgr = new MenuManager(\"Add...\");
>     subMgr.setRemoveAllWhenShown(true);
>     subMgr.setVisible(true);
>     subMgr.addMenuListener(new IMenuListener() {
> public void menuAboutToShow(IMenuManager mgr) {
>   mgr.add(action1);
>   mgr.add(action2);
> }
>     });
>     // parent menu
>     mgr.add(subMgr);
>     mgr.add(action3);
>   }
>
> Thank you for you support!
>
>
>
>
>
>
>
> Simon Arsenault wrote:
>
> > Can you post the code/xml that does this?
>
> > Simon :-)
>
> > \"Roman Möhl\" <roman.moehl@xxxxxxx> wrote in message
> > news:ait72a$12n$1@xxxxxxxxxxxxxxxx
> > > Hi everybody,
> > >
> > > after creating a context-menu and adding a submenu to it, the submenu
> > > shows up in the context-menu but not in an active state. After
clicking on
> > > it, it becomes active and the submenu appears. That\'s not very nice!
> > >
> > > Is it possible to add a submenu to a context-menu, that shows up in an
> > > active state before clicking on it?
> > >
> > > Thank you in advance,
> > > Roman
> > >
>
>
>
>
>