* Injected simulation context type service.
*/
private SimulationContextTypeService _simulationContextTypeService;
+
+ /**
+ * Value of the menu property.
+ * It can be: none, create, open, study, knowledge, sysadmin, help.
+ */
+ private String _menuProperty;
/**
* Get the stepService.
mystudy = getOpenStudy();
contype = getInvolvedContexts();
+
+ setMenuProperty("study");
+ initializationScreenContext(_menuProperty);
if (contype.isEmpty())
return "create";
public String doSelectContext() {
mystudy = getOpenStudy();
+
+ setMenuProperty("study");
+ initializationScreenContext(_menuProperty);
+
int typid = Integer.valueOf(selectype);
if (typid == 0)
return "create";
// --------------------------------
try {
mystudy = getOpenStudy();
+
+ setMenuProperty("study");
+ initializationScreenContext(_menuProperty);
+
if (newtype.length() == 0 || value.length() == 0)
return INPUT;
}
public String doDeleteContext() {
+
+ setMenuProperty("study");
+ initializationScreenContext(_menuProperty);
+
try {
mystudy = getOpenStudy();
String[] input = value.split(",");
// Session connex = Database.getCurSession();
// Transaction transax = connex.beginTransaction();
+
+ setMenuProperty("study");
+ initializationScreenContext(_menuProperty);
+
try {
mystudy = getOpenStudy();
SimulationContextTypeService simulationContextTypeService) {
_simulationContextTypeService = simulationContextTypeService;
}
+
+ /**
+ * 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