Salome HOME
Tool bar is improved.
[tools/siman.git] / Workspace / Siman / src / org / splat / simer / StudyPropertiesAction.java
index 7b855ae0a74f27f39042b79bc89f07999b172e02..370355cbe6488b31b7df9bb73e5519bd0eb37e29 100644 (file)
@@ -72,6 +72,12 @@ public class StudyPropertiesAction extends DisplayStudyStepAction {
         */
        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.
@@ -134,7 +140,8 @@ public class StudyPropertiesAction extends DisplayStudyStepAction {
                setMenuProperty("study");
                setTitleProperty("study");
                setEditDisabledProperty("true");
-        initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty);
+               setToolProperty("back");
+        initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty);
 
                if (mystudy.isOpenForWriting() && user.canEditProperties()) {                   
                        return "edit";
@@ -175,7 +182,8 @@ public class StudyPropertiesAction extends DisplayStudyStepAction {
                setMenuProperty("study");
                setTitleProperty("study");
                setEditDisabledProperty("true");
-        initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty);
+               setToolProperty("back");
+        initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty);
                
                return SUCCESS;
        }
@@ -218,7 +226,8 @@ public class StudyPropertiesAction extends DisplayStudyStepAction {
                setMenuProperty("study");
                setTitleProperty("study");
                setEditDisabledProperty("true");
-        initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty);
+               setToolProperty("back");
+        initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty);
                
                return SUCCESS;
        }
@@ -267,7 +276,8 @@ public class StudyPropertiesAction extends DisplayStudyStepAction {
                setMenuProperty("study");
                setTitleProperty("study");
                setEditDisabledProperty("true");
-        initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty);
+               setToolProperty("back");
+        initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty);
                
                return SUCCESS;
        }
@@ -350,7 +360,8 @@ public class StudyPropertiesAction extends DisplayStudyStepAction {
                setMenuProperty("study");
                setTitleProperty("study");
                setEditDisabledProperty("true");
-        initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty);
+               setToolProperty("back");
+        initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty);
                
                return SUCCESS;
        }
@@ -570,5 +581,19 @@ public class StudyPropertiesAction extends DisplayStudyStepAction {
                _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