]> SALOME platform Git repositories - tools/siman.git/blobdiff - Workspace/Siman/src/org/splat/simer/StartAction.java
Salome HOME
Menus are improved
[tools/siman.git] / Workspace / Siman / src / org / splat / simer / StartAction.java
index ae892fb3b517ff941cd37ea121fd76c0c6609eec..8e075b4ea35bd4a0ab6380ab16cd5d7939d81efb 100644 (file)
@@ -20,6 +20,13 @@ public class StartAction extends Action implements ServletRequestAware {
 
        private ProjectSettingsService _projectSettingsService;
        private ApplicationSettings _ApplicationSettings;
+       
+       /**
+        * Value of the menu property. 
+        * It can be: none, create, open, study, knowledge, sysadmin, help.
+        */
+       private String _menuProperty;
+
        /**
         * Serial version ID.
         */
@@ -56,10 +63,18 @@ public class StartAction extends Action implements ServletRequestAware {
                session.put("knowledge.filter", wapp.getFilter("knowledge"));
 
 //         transax.commit();
+           
+               setMenuProperty("none");
+               initializationScreenContext(_menuProperty);
+           
            return SUCCESS;
       }
       catch (Exception error) {
         logger.fatal("Reason:", error);
+        
+        setMenuProperty("study");
+               initializationScreenContext(_menuProperty);
+        
         return ERROR;
       }
        }
@@ -104,4 +119,20 @@ public class StartAction extends Action implements ServletRequestAware {
        public void setApplicationSettings(ApplicationSettings applicationSettings) {
                _ApplicationSettings = applicationSettings;
        }
+       
+       /**
+        * Get the menuProperty.
+        * @return the menuProperty
+        */
+       public String getMenuProperty() {
+               return _menuProperty;
+       }
+
+       /**
+        * Set the menuProperty.
+        * @param menuProperty the menuProperty to set
+        */
+       public void setMenuProperty(String menuProperty) {
+               this._menuProperty = menuProperty;
+       }
 }
\ No newline at end of file