]> SALOME platform Git repositories - tools/siman.git/blobdiff - Workspace/Siman/src/org/splat/simer/FileFacade.java
Salome HOME
Show URLs for previous versions of the document's files.
[tools/siman.git] / Workspace / Siman / src / org / splat / simer / FileFacade.java
index 0b5b484b11e899c22a741559be02987816b37f2e..0c75f1fdee7a1f8a9b739803fd3d82cbf014bc64 100644 (file)
@@ -26,8 +26,8 @@ public class FileFacade {
                        final ApplicationSettings applicationSettings) {
                ResourceBundle custom = ResourceBundle.getBundle("som",
                                applicationSettings.getCurrentLocale());
-               File export = represented.getTo().asFile();
-               String path = export.getPath();
+               org.splat.dal.bo.som.File export = represented.getTo();
+               String path = export.getRelativePath();
                String[] table = path.split("\\x2E");
                DecimalFormat tostring = new DecimalFormat(custom
                                .getString("size.format")); // Locale size display format
@@ -38,7 +38,7 @@ public class FileFacade {
                _surl = applicationSettings.getRepositoryURL() + path;
                _surl = _surl.replaceAll("'", "\\\\'");
                _format = table[table.length - 1].toUpperCase();
-               _size = tostring.format(export.length() / 1000);
+               _size = tostring.format(export.asFile().length() / 1000);
                _date = convert.format(represented.getTo().getDate());
                _comment = represented.getDescription();
                if (_comment == null) {