]> SALOME platform Git repositories - tools/siman.git/commitdiff
Salome HOME
New study creation is improved.
authormka <mka@opencascade.com>
Thu, 17 Jan 2013 09:14:30 +0000 (09:14 +0000)
committermka <mka@opencascade.com>
Thu, 17 Jan 2013 09:14:30 +0000 (09:14 +0000)
Workspace/Siman/src/org/splat/simer/NewStudyAction.java

index 95fd4cbfd00c9a6f6c52b21a64ac479ff17aeb3d..acdb825c65178b8164d45cc53ca7c8b593fd9170 100644 (file)
@@ -123,13 +123,12 @@ public class NewStudyAction extends Action {
 
                        // Addition of the entered project context
                        SimulationContext.Properties cprop = new SimulationContext.Properties();
-                       
-                       SimulationContextType product = getSimulationContextService()
-                                       .selectType("product");
-                       
-                       SimulationContext testContext = getSimulationContextService().selectSimulationContext(product, value);
-                       
                        if (valid == 0) { // Input of new project context
+                               SimulationContextType product = getSimulationContextService()
+                                               .selectType("product");
+                               
+                               SimulationContext testContext = getSimulationContextService().selectSimulationContext(product, value);
+                               
                                if (testContext == null) {
                                cprop.setType(
                                                getSimulationContextService().selectType("product"))