]> SALOME platform Git repositories - tools/siman.git/blobdiff - Workspace/Siman/src/org/splat/simer/UploadAction.java
Salome HOME
Tool bar is improved.
[tools/siman.git] / Workspace / Siman / src / org / splat / simer / UploadAction.java
index 0eb6ebbd18f01902d102ba3d055c7e58bcf2d17f..a33fcdcf7531457bedbbbcff5c21289e64997352 100644 (file)
@@ -33,6 +33,11 @@ public class UploadAction 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.
@@ -51,7 +56,8 @@ public class UploadAction extends Action {
     public String doInitialize () {
 //  -----------------------------
        setMenuProperty("study");
-               initializationScreenContext(_menuProperty);
+       setToolProperty("none");
+        initializationScreenContext(_menuProperty, _toolProperty);
                
       return SUCCESS;
     }
@@ -85,7 +91,8 @@ public class UploadAction extends Action {
        setMenuProperty("none");
        setTitleProperty("study");
        setEditDisabledProperty("true");
-        initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty);
+       setToolProperty("none");
+        initializationScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty);
                
        return "outofmemory";
       }
@@ -204,5 +211,19 @@ public class UploadAction extends Action {
                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