Salome HOME
Left menu is improved
[tools/siman.git] / Workspace / Siman / src / org / splat / simer / admin / SimulationContextAction.java
index 4366eb204f056b706828120484cc6fb6bfa7a602..47a5c37fe19c262f8f6ab56c2973a83eca582584 100644 (file)
@@ -75,6 +75,12 @@ public class SimulationContextAction extends Action {
         * It can be: none, standard, study, back.
         */
        private String _toolProperty;
+       
+       /**
+        * Value of the left menu property. 
+        * It can be: open, study, knowledge, scenario.
+        */
+       private String _leftMenuProperty;
 
        /**
         * Context name comparator.
@@ -145,7 +151,8 @@ public class SimulationContextAction extends Action {
                        
                        setMenuProperty("study");
                        setToolProperty("none");
-               initializationScreenContext(_menuProperty, _toolProperty);
+                       setLeftMenuProperty("open");
+               initializationFullScreenContext(_menuProperty, _toolProperty, _leftMenuProperty);
 
                        return SUCCESS;
                } catch (Exception error) {
@@ -159,7 +166,8 @@ public class SimulationContextAction extends Action {
                
                setMenuProperty("study");
                setToolProperty("none");
-        initializationScreenContext(_menuProperty, _toolProperty);
+               setLeftMenuProperty("open");
+        initializationFullScreenContext(_menuProperty, _toolProperty, _leftMenuProperty);
         
                Session connex = Database.getCurSession();
                Transaction transax = connex.beginTransaction();
@@ -396,4 +404,20 @@ public class SimulationContextAction extends Action {
        public void setToolProperty(final String toolProperty) {
                _toolProperty = toolProperty;
        }
+       
+       /**
+        * Get the leftMenuProperty.
+        * @return the leftMenuProperty
+        */
+       public String getLeftMenuProperty() {
+               return _leftMenuProperty;
+       }
+
+       /**
+        * Set the leftMenuProperty.
+        * @param leftMenuProperty the leftMenuProperty to set
+        */
+       public void setLeftMenuProperty(final String leftMenuProperty) {
+               _leftMenuProperty = leftMenuProperty;
+       }
 }
\ No newline at end of file