Salome HOME
app.root property is removed.
[tools/siman.git] / Workspace / Siman / src / org / splat / simer / ImportDocumentAction.java
index fa66edfc0b1f4fe72610324610298e322f35cc98..995ea703d995b983e5dbace5300888b99ca276c5 100644 (file)
@@ -108,7 +108,7 @@ public class ImportDocumentAction extends UploadBaseNextAction {
                mystudy = getOpenStudy();
                Step step = mystudy.getSelectedStep();
                doctypes = getStepService().getValidDocumentTypes(step);
-               deftype = ApplicationSettings.getDefaultDocumentType(step, filext);
+               deftype = getApplicationSettings().getDefaultDocumentType(step, filext);
                defuses = new Vector<Document>();
                state = ProgressState.inWORK;
 
@@ -159,7 +159,7 @@ public class ImportDocumentAction extends UploadBaseNextAction {
                        date = tool.extractProperty("date");
                        if (date != null) {
                                ResourceBundle locale = ResourceBundle.getBundle("som",
-                                               ApplicationSettings.getCurrentLocale());
+                                               getApplicationSettings().getCurrentLocale());
                                SimpleDateFormat check = new SimpleDateFormat(
                                                locale.getString("date.format"));
                                try {
@@ -242,7 +242,7 @@ public class ImportDocumentAction extends UploadBaseNextAction {
                        } else { // Importation of a previously created template-based document
                                if (date.length() > 0) {
                                        ResourceBundle locale = ResourceBundle.getBundle("som",
-                                                       ApplicationSettings.getCurrentLocale());
+                                                       getApplicationSettings().getCurrentLocale());
                                        SimpleDateFormat get = new SimpleDateFormat(
                                                        locale.getString("date.format"));
                                        dprop.setDate(get.parse(date));
@@ -283,7 +283,7 @@ public class ImportDocumentAction extends UploadBaseNextAction {
                        }
                        // Creation of derived the document formats
                        // Document ndoc = addoc.value();
-                       // Converter send = ApplicationSettings.getConverter(ndoc.getType(), ndoc.getFormat());
+                       // Converter send = getApplicationSettings().getConverter(ndoc.getType(), ndoc.getFormat());
                        //
                        // if (send != null) send.converts(addoc); // Asynchronous process