[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools] Re: SubMenu is not enabled
|
What release / build are you using?
Simon :-)
"aa" <a@xxxxxx> wrote in message news:ak0lfd$g80$1@xxxxxxxxxxxxxxxx
> Hi,
>
> I am creating a submenu for a context menu. The context menu is 'mgr' and
> the submenu is 'childmgr' . It does not seem to work. The submenu has the
> proper name and it looks like the submenu but it is not enabled so
hovering
> the mouse over it does not expand whats inside it.its greyed out. The code
> is :
>
> MenuManager childmgr =
>
> new MenuManager(current.getName());
>
> childmgr.setRemoveAllWhenShown(true);
>
> childmgr.setVisible(true);
>
> childmgr.addMenuListener(new IMenuListener() {
>
> public void menuAboutToShow(IMenuManager manager) {
>
> makeMenu((MenuManager) manager , some);
>
> }
>
> });
>
> mgr.add(childmgr);
>
>
>
>
>
> Thanks
>
>