Salome HOME
Tool bar is improved.
[tools/siman.git] / Workspace / Siman / src / org / splat / simer / NewScenarioAction.java
index dfe72decbc13d76098c5e8b1e257c1b79e65d08e..45fdac90827a37b7fdf6bd0d7619244511d975f4 100644 (file)
@@ -49,6 +49,12 @@ public class NewScenarioAction extends Action {
         */
        private String _titleProperty;
        
+       /**
+        * Value of the tool bar property. 
+        * It can be: none, standard, study, back.
+        */
+       private String _toolProperty;
+       
        /**
         * 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.
@@ -90,7 +96,8 @@ public class NewScenarioAction extends Action {
       setMenuProperty("study");
       setTitleProperty("study");
       setEditDisabledProperty("true");
-      initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty);
+      setToolProperty("none");
+      initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty);
                
       return SUCCESS;
     }
@@ -110,7 +117,8 @@ public class NewScenarioAction extends Action {
       setMenuProperty("study");
       setTitleProperty("study");
       setEditDisabledProperty("true");
-      initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty);
+      setToolProperty("none");
+      initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty);
       
       return SUCCESS;
     }
@@ -159,7 +167,8 @@ public class NewScenarioAction extends Action {
         
         setMenuProperty("study");
         setTitleProperty("study");
-        initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty);
+               setToolProperty("standard");
+               initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty);
                
         return ERROR;
       }
@@ -317,4 +326,20 @@ public class NewScenarioAction extends Action {
        public void setEditDisabledProperty(String _editDisabledProperty) {
                this._editDisabledProperty = _editDisabledProperty;
        }
+       
+       /**
+        * Get the toolProperty.
+        * @return the toolProperty
+        */
+       public String getToolProperty() {
+               return _toolProperty;
+       }
+
+       /**
+        * Set the toolProperty.
+        * @param toolProperty the toolProperty to set
+        */
+       public void setToolProperty(final String toolProperty) {
+               _toolProperty = toolProperty;
+       }
 }
\ No newline at end of file