Salome HOME
Actions menu properties are refactored, unnecessary code is removed.
[tools/siman.git] / Workspace / Siman / src / org / splat / simer / UploadStudyAction.java
index b6d1994617905716dbad1212d6d8fe584fae036a..97b3939359d27c973955bd1efb48332565f90203 100644 (file)
@@ -7,44 +7,25 @@
  * @version        Revision: 
  *****************************************************************************/
 
-package org.splat.simer; 
+package org.splat.simer;
+
+import org.splat.wapp.Constants;
 
 /**
  * Action class for uploading the study.
+ * 
  * @author Maria KRUCHININA
- *
+ * 
  */
 public class UploadStudyAction extends Action {
 
        /**
-        * Value of the menu property. 
-        * It can be: none, create, open, study, knowledge, sysadmin, help.
+        * Serialization version id.
         */
-       private String _menuProperty;
-
        private static final long serialVersionUID = 6003880772275115924L;
-       
-       public String doInitialize () {
 
-           setMenuProperty("study");
-               initializationScreenContext(_menuProperty);
-                       
-       return SUCCESS;
-       }
-       
-       /**
-        * 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;
+       public String doInitialize() {
+               initializationScreenContext(Constants.STUDY_MENU);
+               return SUCCESS;
        }
 }