]> SALOME platform Git repositories - tools/siman.git/blobdiff - Workspace/Siman/src/org/splat/simer/EditStudyAction.java
Salome HOME
Preliminary version of the "Remove study" action is implemented.
[tools/siman.git] / Workspace / Siman / src / org / splat / simer / EditStudyAction.java
index afff22ef816af044e684e2ff66c55913cc5dd4be..928ba6ed5f52b1e9ccd4d1acbe606091aecdea32 100644 (file)
@@ -1,7 +1,6 @@
 package org.splat.simer;
 
 import org.splat.dal.bo.som.Study;
-import org.splat.service.StudyService;
 
 public class EditStudyAction extends DisplayStudyStepAction {
 
@@ -9,11 +8,6 @@ public class EditStudyAction extends DisplayStudyStepAction {
         * Serial version ID.
         */
        private static final long serialVersionUID = -4865668290514118396L;
-       
-       /**
-        * Injected study service.
-        */
-       private StudyService _studyService;
 
        private enum Execute {
                publish, protect, promote
@@ -52,7 +46,7 @@ public class EditStudyAction extends DisplayStudyStepAction {
                _openStudy = getOpenStudy();
                Study study = _openStudy.getStudyObject();
                
-               _studyService.markStudyAsReference(study);
+               getStudyService().markStudyAsReference(study);
                
                return SUCCESS;
        }
@@ -66,30 +60,8 @@ public class EditStudyAction extends DisplayStudyStepAction {
                _openStudy = getOpenStudy();
                Study study = _openStudy.getStudyObject();
                
-               _studyService.removeStudyAsReference(study);
+               getStudyService().removeStudyAsReference(study);
                
                return SUCCESS;
        }
-       
-       /**
-        * Get the studyService.
-        * 
-        * @return the studyService
-        */
-       @Override
-       public StudyService getStudyService() {
-               return _studyService;
-       }
-
-       /**
-        * Set the studyService.
-        * 
-        * @param studyService
-        *            the studyService to set
-        */
-       @Override
-       public void setStudyService(final StudyService studyService) {
-               _studyService = studyService;
-       }
-
 }
\ No newline at end of file