Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Dynamic View Menu
Dynamic View Menu [message #792691] Tue, 07 February 2012 04:38 Go to previous message
Thomas  Mäder is currently offline Thomas Mäder
Messages: 45
Registered: July 2009
Member
I'm trying to offer a view menu for a part which allows to save the current configuration of the part under a given name. Later, I'd like to be able to recall that configuration. The view menu looks like this:

Save...
-----------
Load > Config 1
       Config 2
       Config 3

I'm building the Load submenu from the configurations I get from a backend service. This works when I'm initially building the part, but when I change the part menu from the Save... DirectMenuItem handler, the Load submenu is not properly rebuilt.
I've tracked the problem down to the this code in StackRenderer:
		Object obj = menuModel.getWidget();
		if (obj instanceof Menu) {
			menu = (Menu) obj;
		}
		if (menu == null || menu.isDisposed()) {
                   ...build the menu from the model

, so the menu is never rebuilt. As I understand the "modeled workbench" concept, it should be sufficient to update the model, correct?

Any suggestions are welcome.
 
Read Message
Read Message
Read Message
Previous Topic:E4 application accessibility question
Next Topic:Discouraged Access
Goto Forum:
  


Current Time: Tue May 21 19:07:16 EDT 2013

Powered by FUDForum. Page generated in 0.01530 seconds