]> SALOME platform Git repositories - tools/siman.git/blobdiff - Workspace/Siman/src/org/splat/simer/OpenStudy.java
Salome HOME
app.root property is removed.
[tools/siman.git] / Workspace / Siman / src / org / splat / simer / OpenStudy.java
index b28bc689d0ea50cbf96e0cca4caed2f72a8a03a5..1edd57bb8b81fbf1ca10939e7ae6036900423ca0 100644 (file)
@@ -89,7 +89,7 @@ public class OpenStudy extends OpenObject implements OpenStudyServices {
        public OpenStudy open(User user, Study study) {
                // -----------------------------------------
                ResourceBundle custom = ResourceBundle.getBundle("som",
-                               ApplicationSettings.getCurrentLocale());
+                               getApplicationSettings().getCurrentLocale());
                SimpleDateFormat datstring = new SimpleDateFormat(custom
                                .getString("date.format"));
                Revision.Format verstring = new Revision.Format(getProjectSettings()
@@ -117,9 +117,9 @@ public class OpenStudy extends OpenObject implements OpenStudyServices {
                }
                if (getStudyService().isStaffedBy(mystudy, cuser) || getStudyService().hasActor(mystudy, cuser)) {
                        // ProgressState state = mystudy.getProgressState();
-                       // if (state == ProgressState.inCHECK) popup = ApplicationSettings.getPopupMenu("stapprovable");
-                       // else if (state == ProgressState.APPROVED) popup = ApplicationSettings.getPopupMenu("stapproved");
-                       /* else */popup = ApplicationSettings
+                       // if (state == ProgressState.inCHECK) popup = getApplicationSettings().getPopupMenu("stapprovable");
+                       // else if (state == ProgressState.APPROVED) popup = getApplicationSettings().getPopupMenu("stapproved");
+                       /* else */popup = getApplicationSettings()
                                        .getPopupMenu("steditable");
                        popup.setContext("study", new StudyRights(cuser, mystudy));
                }
@@ -173,7 +173,7 @@ public class OpenStudy extends OpenObject implements OpenStudyServices {
 
        public ToolBar getModuleBar() {
                // ------------------------------
-               return ApplicationSettings.getMe().getModuleBar(getSelectedStep());
+               return getApplicationSettings().getModuleBar(getSelectedStep());
        }
 
        public String getReference() {
@@ -209,7 +209,7 @@ public class OpenStudy extends OpenObject implements OpenStudyServices {
        public String getType() {
                // ------------------------
                return ResourceBundle.getBundle("labels",
-                               ApplicationSettings.getCurrentLocale())
+                               getApplicationSettings().getCurrentLocale())
                                .getString("label.study");
        }
 
@@ -259,7 +259,7 @@ public class OpenStudy extends OpenObject implements OpenStudyServices {
 
                        // Transfer to the document of all known properties
                        ResourceBundle locale = ResourceBundle.getBundle("som",
-                                       ApplicationSettings.getCurrentLocale());
+                                       getApplicationSettings().getCurrentLocale());
                        SimpleDateFormat get = new SimpleDateFormat(locale
                                        .getString("date.format"));
                        Writer tool = Toolbox.getWriter(credoc);
@@ -284,7 +284,7 @@ public class OpenStudy extends OpenObject implements OpenStudyServices {
                                        .replaceAll("''", "'"));
                        tool.save();
 
-                       return new URL(ApplicationSettings.getDownloadURL(author)
+                       return new URL(getApplicationSettings().getDownloadURL(author)
                                        + filename);
                } catch (Exception saverror) {
                        logger.error("Reason:", saverror);
@@ -294,7 +294,7 @@ public class OpenStudy extends OpenObject implements OpenStudyServices {
 
        public void selectDocument(String docurl) {
                // ------------------------------------------
-               String prefix = ApplicationSettings.getRepositoryURL();
+               String prefix = getApplicationSettings().getRepositoryURL();
 
                if (docurl.startsWith(prefix))
                        try {
@@ -385,7 +385,7 @@ public class OpenStudy extends OpenObject implements OpenStudyServices {
                cuser = user;
                popup = null;
                if (getStudyService().isStaffedBy(mystudy, cuser)) {
-                       popup = ApplicationSettings.getPopupMenu("steditable");
+                       popup = getApplicationSettings().getPopupMenu("steditable");
                        popup.setContext("study", new StudyRights(cuser, mystudy));
                }
                //ustep = getProjectElementService().getFirstStep(mystudy);