]> SALOME platform Git repositories - tools/siman.git/blobdiff - Workspace/Siman-Common/src/org/splat/service/ScenarioServiceImpl.java
Salome HOME
File id is added to the checked out info.
[tools/siman.git] / Workspace / Siman-Common / src / org / splat / service / ScenarioServiceImpl.java
index 1ebc962ef1efc0fb0afc19e521300afc963bb361..70714a69bd74607bf2a3065f7f3761a877e35f2c 100644 (file)
@@ -242,12 +242,13 @@ public class ScenarioServiceImpl implements ScenarioService {
                                } else {
                                        processing = "file-download";
                                }
-                               docDTO.addFile(tag.value().getFile().getRelativePath(), aState,
-                                               processing, false);
+                               File aFile = tag.value().getFile();
+                               docDTO.addFile(aFile.getIndex(), aFile.getRelativePath(),
+                                               aState, processing, false);
                                // Process all exported files
                                for (Relation rel : tag.value().getRelations(
                                                ConvertsRelation.class)) {
-                                       File aFile = ((ConvertsRelation) rel).getTo();
+                                       aFile = ((ConvertsRelation) rel).getTo();
                                        fileFormat = aFile.getFormat();
                                        doImport = getProjectSettings().doImport(docType,
                                                        fileFormat);
@@ -256,8 +257,8 @@ public class ScenarioServiceImpl implements ScenarioService {
                                        } else {
                                                processing = "file-download";
                                        }
-                                       docDTO.addFile(aFile.getRelativePath(), aState, processing,
-                                                       false);
+                                       docDTO.addFile(aFile.getIndex(), aFile.getRelativePath(),
+                                                       aState, processing, false);
                                }
                        }
                }