Salome HOME
Tool bar is improved.
[tools/siman.git] / Workspace / Siman / src / org / splat / simer / SearchStudyAction.java
index 68fcef2a8a7432802ebac92e166912c532936e38..02df3a3559d4b9a873eedcd52a3ce9006ae3db6f 100644 (file)
@@ -50,6 +50,12 @@ public class SearchStudyAction extends SearchBaseAction {
         * It can be: none, create, open, study, knowledge, sysadmin, help.
         */
        private String _menuProperty;
+       
+       /**
+        * Value of the tool bar property. 
+        * It can be: none, standard, study, back.
+        */
+       private String _toolProperty;
 
        /**
         * Serial version ID.
@@ -78,7 +84,8 @@ public class SearchStudyAction extends SearchBaseAction {
                        setContextTypeOptions(getInvolvedContexts());
                        
                        setMenuProperty("open");
-                       initializationScreenContext(_menuProperty);
+                       setToolProperty("none");
+                       initializationScreenContext(_menuProperty, _toolProperty);
 
                        return SUCCESS;
                } catch (Exception error) {
@@ -353,4 +360,20 @@ public class SearchStudyAction extends SearchBaseAction {
        public void setMenuProperty(String menuProperty) {
                this._menuProperty = menuProperty;
        }
+       
+       /**
+        * 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