From: mka Date: Thu, 17 Jan 2013 09:14:30 +0000 (+0000) Subject: New study creation is improved. X-Git-Tag: Root_Delivery2_2013_04_22~180 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7a8ce299d75adcadb9882e1a63afd0c2fb829561;p=tools%2Fsiman.git New study creation is improved. --- diff --git a/Workspace/Siman/src/org/splat/simer/NewStudyAction.java b/Workspace/Siman/src/org/splat/simer/NewStudyAction.java index 95fd4cb..acdb825 100644 --- a/Workspace/Siman/src/org/splat/simer/NewStudyAction.java +++ b/Workspace/Siman/src/org/splat/simer/NewStudyAction.java @@ -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"))