]> SALOME platform Git repositories - tools/siman.git/blobdiff - Workspace/Siman/src/org/splat/simer/admin/SimulationContextAction.java
Salome HOME
Actions menu properties are refactored, unnecessary code is removed.
[tools/siman.git] / Workspace / Siman / src / org / splat / simer / admin / SimulationContextAction.java
index d952aef679e99fa41a8b77379fa9b9081f3c0c23..d4cc3b99b0f9b572499050e47c2cae36b4831955 100644 (file)
@@ -86,21 +86,6 @@ public class SimulationContextAction extends Action {
         */
        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;
-
-       /**
-        * Value of the left menu property. It can be: open, study, knowledge, scenario.
-        */
-       private String _leftMenuProperty;
-
        /**
         * Context name comparator.
         */
@@ -171,11 +156,7 @@ public class SimulationContextAction extends Action {
                        _edition = null;
                        _owner = null;
 
-                       setMenuProperty("study");
-                       setToolProperty("none");
-                       setLeftMenuProperty("open");
-                       initializationFullScreenContext(_menuProperty, _toolProperty,
-                                       _leftMenuProperty);
+                       initializationFullScreenContext("study", "none", "open");
                } catch (Exception error) {
                        LOG.error("Reason:", error);
                        res = ERROR; // No need to roll-back the transaction as it is read-only
@@ -186,11 +167,7 @@ public class SimulationContextAction extends Action {
        public String doSelect() {
 
                String res = SUCCESS;
-               setMenuProperty("study");
-               setToolProperty("none");
-               setLeftMenuProperty("open");
-               initializationFullScreenContext(_menuProperty, _toolProperty,
-                               _leftMenuProperty);
+               initializationFullScreenContext("study", "none", "open");
 
                Session connex = Database.getCurSession();
                Transaction transax = connex.beginTransaction();
@@ -386,61 +363,4 @@ public class SimulationContextAction extends Action {
        public void setSearchService(final 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;
-       }
-
-       /**
-        * Get the leftMenuProperty.
-        * 
-        * @return the leftMenuProperty
-        */
-       public String getLeftMenuProperty() {
-               return _leftMenuProperty;
-       }
-
-       /**
-        * Set the leftMenuProperty.
-        * 
-        * @param leftMenuProperty
-        *            the leftMenuProperty to set
-        */
-       public void setLeftMenuProperty(final String leftMenuProperty) {
-               _leftMenuProperty = leftMenuProperty;
-       }
 }
\ No newline at end of file