Salome HOME
Rename the scenario functionality is implemented
[tools/siman.git] / Workspace / Siman / src / org / splat / simer / SimulationContextFacade.java
index 1124d3df397f8b3626339643a7d954ae9e0ae980..a85ecc93197a949f7142f7575b5eba52dd51e817 100644 (file)
@@ -23,9 +23,10 @@ public class SimulationContextFacade {
        // ==============================================================================================================================
 
        public SimulationContextFacade(final SimulationContext represented,
-                       final List<ProjectSettingsService.Step> allSteps) {
+                       final List<ProjectSettingsService.Step> allSteps,
+                       final ApplicationSettings app) {
                _my = represented;
-               _popup = ApplicationSettings.getPopupMenu("scontext");
+               _popup = app.getPopupMenu("scontext");
 
                SimulationContextType type = _my.getType();
                for (Iterator<ProjectSettingsService.Step> i = allSteps.iterator(); i
@@ -40,9 +41,8 @@ public class SimulationContextFacade {
                _state = _my.getProgressState(); // inCHECK or APPROVED
                _name = type.getName();
                if (type.isApproved()) {
-                       _name = ResourceBundle.getBundle("som",
-                                       ApplicationSettings.getCurrentLocale()).getString(
-                                       "type.context." + _name);
+                       _name = ResourceBundle.getBundle("som", app.getCurrentLocale())
+                                       .getString("type.context." + _name);
                } else {
                        _state = ProgressState.inDRAFT;
                }