//RKV menu = new StudyMenu(mystudy);
menu = ((StudyMenu)getMenu()).init(mystudy); //RKV
- ((StudyMenu)menu).setProjectElementService(getProjectElementService());
- ((StudyMenu)menu).setScenarioService(getScenarioService());
menu.selects(selection); // Initializes menu items to be displayed
setupContents(); // Initializes documents and knowledge at ustep
return this;
disabled = new HashMap<String,String>();
}
+ /**
+ * Initialize the menu.
+ */
+ protected void init() {
+ menu.clear();
+ indices.clear();
+ disabled.clear();
+ }
// ==============================================================================================================================
// Member functions
// ==============================================================================================================================