From: mka Date: Wed, 16 Oct 2013 13:14:23 +0000 (+0000) Subject: Correction of the setting uses between of the documents X-Git-Tag: V7_3_0b1~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=535b9d924b68a6440b57e7a16eebff6f5e2753f6;p=tools%2Fsiman.git Correction of the setting uses between of the documents --- diff --git a/Workspace/Siman/src/org/splat/simer/OpenStudy.java b/Workspace/Siman/src/org/splat/simer/OpenStudy.java index 946317d..1f97444 100644 --- a/Workspace/Siman/src/org/splat/simer/OpenStudy.java +++ b/Workspace/Siman/src/org/splat/simer/OpenStudy.java @@ -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(1); + //_involving = new ArrayList(1); _context = new ArrayList(); 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 i = _ustep.getAllSimulationContexts() .iterator(); i.hasNext();) { _context.add(new SimulationContextFacade(i.next(),