]> SALOME platform Git repositories - tools/siman.git/commitdiff
Salome HOME
Correction of the setting uses between of the documents
authormka <mka@opencascade.com>
Wed, 16 Oct 2013 13:14:23 +0000 (13:14 +0000)
committermka <mka@opencascade.com>
Wed, 16 Oct 2013 13:14:23 +0000 (13:14 +0000)
Workspace/Siman/src/org/splat/simer/OpenStudy.java

index 946317d5fef27f2a263036c490b328ca416382c3..1f97444d75dd77b1e6c0887b7b9785cc50bac9d3 100644 (file)
@@ -135,13 +135,17 @@ public class OpenStudy extends AbstractOpenObject implements OpenStudyServices {
                _credate = datstring.format(_mystudy.getDate());
                _lasdate = datstring.format(_mystudy.getLastModificationDate());
                _description = _mystudy.getDescription();
-               _involving = new ArrayList<Step>(1);
+               //_involving = new ArrayList<Step>(1);
                _context = new ArrayList<SimulationContextFacade>();
                if (_selection.equals("0.1")) {
                        _ustep = getProjectElementService().getFirstStep(_mystudy);
                }
                _ustep.setActor(_cuser);
-               _involving.add(_ustep);
+               if ((_involving.isEmpty()) || (_involving.get(0).getOwnerStudy().getIndex()
+                               != _ustep.getOwnerStudy().getIndex())) {
+                       _involving.clear();
+                       _involving.add(_ustep);
+               }
                for (Iterator<SimulationContext> i = _ustep.getAllSimulationContexts()
                                .iterator(); i.hasNext();) {
                        _context.add(new SimulationContextFacade(i.next(),