Salome HOME
Tool bar is improved.
[tools/siman.git] / Workspace / Siman / src / org / splat / simer / admin / DatabaseIndexingAction.java
index 8fb35f3c4d245e8c4fa000705880cd4a810c468f..881ca58b5bc278bb67227b342a593601738369e3 100644 (file)
@@ -37,6 +37,12 @@ public class DatabaseIndexingAction extends Action {
         * 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;
 
        // ==============================================================================================================================
        // Action methods
@@ -51,7 +57,8 @@ public class DatabaseIndexingAction extends Action {
                indices = "";
                
                setMenuProperty("sysadmin");
-               initializationScreenContext(_menuProperty);
+               setToolProperty("none");
+        initializationScreenContext(_menuProperty, _toolProperty);
                
                return SUCCESS;
        }
@@ -134,4 +141,20 @@ public class DatabaseIndexingAction extends Action {
        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