]> SALOME platform Git repositories - tools/siman.git/blobdiff - Workspace/Siman-Common/src/org/splat/service/technical/ProjectSettingsServiceImpl.java
Salome HOME
SimulationContextFacade has been moved into Siman-Common. Import document action...
[tools/siman.git] / Workspace / Siman-Common / src / org / splat / service / technical / ProjectSettingsServiceImpl.java
index b11341b33c0af8bad60f834e99c78ab9d1c23365..14eda4605e519557e7aa64024a7ede672034d8a9 100644 (file)
@@ -39,7 +39,7 @@ import org.splat.dal.dao.som.Database;
 import org.splat.manox.XDOM;
 import org.splat.service.DocumentTypeService;
 import org.splat.service.KnowledgeElementTypeService;
-import org.splat.service.SimulationContextService;
+import org.splat.service.SimulationContextTypeService;
 
 public class ProjectSettingsServiceImpl implements ProjectSettingsService {
 
@@ -68,9 +68,9 @@ public class ProjectSettingsServiceImpl implements ProjectSettingsService {
        private static ProjectSettingsServiceImpl my = null; // Singleton instance
        private Database _database;
        /**
-        * Injected simulation context service.
+        * Injected simulation context type service.
         */
-       private SimulationContextService _simulationContextService;
+       private SimulationContextTypeService _simulationContextTypeService;
        /**
         * Injected knowledge element type service.
         */
@@ -521,9 +521,9 @@ public class ProjectSettingsServiceImpl implements ProjectSettingsService {
                                                                        + "\" classification. Simulation Context type ignored.");
                                        continue;
                                }
-                               tctex = getSimulationContextService().createType(type,
+                               tctex = getSimulationContextTypeService().createType(type,
                                                mapstep.get(type)); // Creation of Simulation Context Types
-                               getSimulationContextService().approve(tctex);
+                               getSimulationContextTypeService().approve(tctex);
                        }
                } catch (Exception error) {
                        logger.warn("Error creating context types, reason:", error); // Should not happen
@@ -550,23 +550,23 @@ public class ProjectSettingsServiceImpl implements ProjectSettingsService {
        }
 
        /**
-        * Get the simulationContextService.
+        * Get the simulationContextTypeService.
         * 
-        * @return the simulationContextService
+        * @return the simulationContextTypeService
         */
-       public SimulationContextService getSimulationContextService() {
-               return _simulationContextService;
+       public SimulationContextTypeService getSimulationContextTypeService() {
+               return _simulationContextTypeService;
        }
 
        /**
-        * Set the simulationContextService.
+        * Set the simulationContextTypeService.
         * 
-        * @param simulationContextService
-        *            the simulationContextService to set
+        * @param simulationContextTypeService
+        *            the simulationContextTypeService to set
         */
-       public void setSimulationContextService(
-                       SimulationContextService simulationContextService) {
-               _simulationContextService = simulationContextService;
+       public void setSimulationContextTypeService(
+                       SimulationContextTypeService simulationContextTypeService) {
+               _simulationContextTypeService = simulationContextTypeService;
        }
 
        /**