*/
private ProjectElementService _projectElementService;
private Menu _menu;
+
+ /**
+ * Value of the menu property.
+ * It can be: none, create, open, study, knowledge, sysadmin, help.
+ */
+ private String _menuProperty;
/**
* Serial version ID.
Menu menu = ((NewScenarioMenu)getMenu()).init(study); //RKV
menu.selects(selection);
getSession().put("menu.scenario", menu);
+
+ setMenuProperty("study");
+ initializationScreenContext(_menuProperty);
+
return SUCCESS;
}
action = null;
getMenu("scenario").selects(selection);
+
+ setMenuProperty("study");
+ initializationScreenContext(_menuProperty);
+
return SUCCESS;
}
}
catch (RuntimeException saverror) {
logger.error("Reason:", saverror);
+
+ setMenuProperty("study");
+ initializationScreenContext(_menuProperty);
+
return ERROR;
}
catch (Exception error) {
public void setScenarioService(ScenarioService scenarioService) {
_scenarioService = scenarioService;
}
+
+ /**
+ * Get the menuProperty.
+ * @return the menuProperty
+ */
+ public String getMenuProperty() {
+ return _menuProperty;
+ }
+
+ /**
+ * Set the menuProperty.
+ * @param menuProperty the menuProperty to set
+ */
+ public void setMenuProperty(String menuProperty) {
+ this._menuProperty = menuProperty;
+ }
}
\ No newline at end of file