]> SALOME platform Git repositories - tools/siman.git/blobdiff - Workspace/Siman/src/org/splat/simer/admin/SimulationContextAction.java
Salome HOME
Tool bar is improved.
[tools/siman.git] / Workspace / Siman / src / org / splat / simer / admin / SimulationContextAction.java
index 38dc4c72cc1b3f74b5f317ffab63b08f2f438e03..4366eb204f056b706828120484cc6fb6bfa7a602 100644 (file)
@@ -63,6 +63,18 @@ public class SimulationContextAction extends Action {
         * Injected simulation context service.
         */
        private SimulationContextService _simulationContextService;
+       
+       /**
+        * Value of the menu property. 
+        * 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;
 
        /**
         * Context name comparator.
@@ -130,6 +142,10 @@ public class SimulationContextAction extends Action {
                        selection = 0;
                        edition = null;
                        owner = null;
+                       
+                       setMenuProperty("study");
+                       setToolProperty("none");
+               initializationScreenContext(_menuProperty, _toolProperty);
 
                        return SUCCESS;
                } catch (Exception error) {
@@ -140,6 +156,11 @@ public class SimulationContextAction extends Action {
 
        public String doSelect() {
                // -------------------------
+               
+               setMenuProperty("study");
+               setToolProperty("none");
+        initializationScreenContext(_menuProperty, _toolProperty);
+        
                Session connex = Database.getCurSession();
                Transaction transax = connex.beginTransaction();
                try {
@@ -342,4 +363,37 @@ public class SimulationContextAction extends Action {
        public void setSearchService(SearchService searchService) {
                _searchService = searchService;
        }
+       
+       /**
+        * Get the menuProperty. 
+        * @return the menuProperty
+        */
+       public String getMenuProperty() {
+               return _menuProperty;
+       }
+
+       /**
+        * Set the menuProperty.
+        * @param menuProperty
+        *            the menuProperty to set
+        */
+       public void setMenuProperty(final 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