Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Change the menu in a jFace app
Change the menu in a jFace app [message #458540] Fri, 15 July 2005 01:12 Go to next message
Eclipse UserFriend
Originally posted by: jm1.dicehome.com

I have a jFace app that has a menu (created using createMenuManager
during opening). However I have not been able to replace the menu with
another menu after the application is running. My code is below.

Thanks


none of these seem to work
//MenuManager newMenu = createMenuManager();
//appComposite.getShell().setMenu(newMenu.createContextMenu( appComposite.getShell()));
//appComposite.getParent().setMenu(newMenu.createContextMenu (appComposite.getParent()));
//appComposite.setMenu(newMenu.createContextMenu(appComposit e));
//appComposite.getParent().setMenu(newMenu.getMenu());
Re: Change the menu in a jFace app [message #458986 is a reply to message #458540] Thu, 28 July 2005 13:15 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
If you have not found an answer to this yet then you should ask on the
eclipse.platform newsgroup, since that is where jface lives.

"cdx11356" <jm1@dicehome.com> wrote in message
news:db72c8$rq7$1@news.eclipse.org...
> I have a jFace app that has a menu (created using createMenuManager
> during opening). However I have not been able to replace the menu with
> another menu after the application is running. My code is below.
>
> Thanks
>
>
> none of these seem to work
> //MenuManager newMenu = createMenuManager();
>
//appComposite.getShell().setMenu(newMenu.createContextMenu( appComposite.get
Shell()));
>
//appComposite.getParent().setMenu(newMenu.createContextMenu (appComposite.ge
tParent()));
> //appComposite.setMenu(newMenu.createContextMenu(appComposit e));
> //appComposite.getParent().setMenu(newMenu.getMenu());
Previous Topic:Deranged wizard pages
Next Topic:Help with ComboBoxCellEditor in TableTreeViewer
Goto Forum:
  


Current Time: Thu Apr 25 12:48:58 GMT 2024

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

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

Back to the top