]> SALOME platform Git repositories - tools/siman.git/blobdiff - Workspace/Siman/src/org/splat/simer/NewScenarioAction.java
Salome HOME
Left menu is improved
[tools/siman.git] / Workspace / Siman / src / org / splat / simer / NewScenarioAction.java
index 45fdac90827a37b7fdf6bd0d7619244511d975f4..e9da800fb15b35ea8c6f90ea764cfa776bb68b0b 100644 (file)
@@ -55,6 +55,12 @@ public class NewScenarioAction extends Action {
         */
        private String _toolProperty;
        
+       /**
+        * Value of the left menu property. 
+        * It can be: open, study, knowledge, scenario.
+        */
+       private String _leftMenuProperty;
+       
        /**
         * Property that indicates whether the current open study is editable or not.
         * On the screen it looks like pen on the status icon, pop-up menu also can be called.
@@ -97,7 +103,8 @@ public class NewScenarioAction extends Action {
       setTitleProperty("study");
       setEditDisabledProperty("true");
       setToolProperty("none");
-      initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty);
+      setLeftMenuProperty("scenario");
+      initializationFullScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty, _leftMenuProperty);
                
       return SUCCESS;
     }
@@ -118,7 +125,8 @@ public class NewScenarioAction extends Action {
       setTitleProperty("study");
       setEditDisabledProperty("true");
       setToolProperty("none");
-      initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty);
+      setLeftMenuProperty("scenario");
+      initializationFullScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty, _leftMenuProperty);
       
       return SUCCESS;
     }
@@ -168,7 +176,8 @@ public class NewScenarioAction extends Action {
         setMenuProperty("study");
         setTitleProperty("study");
                setToolProperty("standard");
-               initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty);
+               setLeftMenuProperty("study");
+               initializationFullScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty, _leftMenuProperty);
                
         return ERROR;
       }
@@ -342,4 +351,20 @@ public class NewScenarioAction 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