import org.splat.som.StepRights;
import org.splat.wapp.Constants;
+/**
+ * Action for scenario properties modification.
+ */
public class EditScenarioPropertiesAction extends DisplayStudyStepAction {
/**
private transient Scenario _myscenario;
private transient String _lasdate;
private transient String _subject;
-
+
/**
* Title of the selected scenario.
*/
ResourceBundle custom = ResourceBundle.getBundle("som",
getApplicationSettings().getCurrentLocale());
SimpleDateFormat datstring = new SimpleDateFormat(custom
- .getString("date.format")); // Locale date display format
+ .getString("date.format"), getApplicationSettings()
+ .getCurrentLocale()); // Locale date display format
Step step;
_openStudy = getOpenStudy();
/**
* Rename the scenario functionality.
+ *
* @return SUCCESS
*/
public String doEditScenarioTitle() {
Iterator<Scenario> iter = scenarios.iterator();
for (; iter.hasNext();) {
Scenario scenario = iter.next();
- if (openStudy.getSelectedScenarioId().equals(String.valueOf(scenario.getIndex()))) {
- scenario.setTitle(getSelectedScenarioTitle());
+ if (openStudy.getSelectedScenarioId().equals(
+ String.valueOf(scenario.getIndex()))) {
+ scenario.setTitle(getSelectedScenarioTitle());
_scenarioService.renameScenario(scenario);
}
}
return SUCCESS;
}
-
+
// ==============================================================================================================================
// Getters
// ==============================================================================================================================
return _subject;
}
-
public boolean isCheckedout() {
return _myscenario.isCheckedout();
}
-
-
/**
* Get the selectedScenarioTitle.
+ *
* @return the selectedScenarioTitle
*/
public String getSelectedScenarioTitle() {
/**
* Set the selectedScenarioTitle.
- * @param selectedScenarioTitle the selectedScenarioTitle to set
+ *
+ * @param selectedScenarioTitle
+ * the selectedScenarioTitle to set
*/
public void setSelectedScenarioTitle(final String selectedScenarioTitle) {
_selectedScenarioTitle = selectedScenarioTitle;