Salome HOME
Beans initialization is fixed. Document can be added to study now.
[tools/siman.git] / Workspace / Siman / src / org / splat / module / SaveDocumentAction.java
index 4ff25593894746fdfc16784287192c0006e479ee..d9d7bf1e72d810b89b1afe2814b7837089a101c4 100644 (file)
@@ -68,7 +68,7 @@ public class SaveDocumentAction extends Action {
                        connex.flush();
 
                        Document.Properties dprop = new Document.Properties();
-                       Publication credoc = step.createDocument(dprop.setName(docname)
+                       Publication credoc = getStepService().createDocument(step, dprop.setName(docname)
                                        .setType(type).setFormat(format).setAuthor(user));
                        // Writing the uploaded file into the created document
                        File target = credoc.getSourceFile().asFile();
@@ -234,7 +234,7 @@ public class SaveDocumentAction extends Action {
                        if (summary.length() > 0)
                                dprop.setDescription(summary);
 
-                       Publication next = step.versionDocument(current, dprop);
+                       Publication next = getStepService().versionDocument(step, current, dprop);
 
                        // Writing the uploaded file into the created document
                        File target = next.getSourceFile().asFile();