]> SALOME platform Git repositories - tools/siman.git/commitdiff
Salome HOME
Vasily has fixed the following bug :
authorrkv <rkv@opencascade.com>
Fri, 29 Nov 2013 07:16:34 +0000 (07:16 +0000)
committerrkv <rkv@opencascade.com>
Fri, 29 Nov 2013 07:16:34 +0000 (07:16 +0000)
(Steps to reproduce)
- Import the e0_donnees.py
- Import the e1_geometrie.py (uses e0_donnees.py)
- Remove the e1_geometrie.py
- Remove the e0_donnees.py
- Import the e0_donnees.py
- Import the e1_geometrie.py (uses e0_donnees.py)
- Try to version the e0_donnees.py ==> There is no Information message like "Warning: The documents below will ...."
 Only after moving to each other activity and returning back to the Geometry one this information message appears during versioning of the e0_donnees.py

Workspace/Siman/src/org/splat/simer/OpenStudy.java
Workspace/Siman/src/org/splat/simer/VersionDocumentAction.java

index 1f97444d75dd77b1e6c0887b7b9785cc50bac9d3..fc76dfddef8ed3a51389afe8d3dbb1c23c775a48 100644 (file)
@@ -139,8 +139,8 @@ public class OpenStudy extends AbstractOpenObject implements OpenStudyServices {
                _context = new ArrayList<SimulationContextFacade>();
                if (_selection.equals("0.1")) {
                        _ustep = getProjectElementService().getFirstStep(_mystudy);
-               }
-               _ustep.setActor(_cuser);
+               }               
+               _ustep.setActor(_cuser);        
                if ((_involving.isEmpty()) || (_involving.get(0).getOwnerStudy().getIndex()
                                != _ustep.getOwnerStudy().getIndex())) {
                        _involving.clear();
@@ -847,4 +847,13 @@ public class OpenStudy extends AbstractOpenObject implements OpenStudyServices {
        public void setMystudy(final Study mystudy) {
                this._mystudy = mystudy;
        }
+
+       /**
+        * Update the current step.
+        *
+        */
+       public final void updateCurrentStep() {
+               setupPreviousToSelectedSteps();
+               _ustep = _involving.get(_involving.size() - 1);
+       }
 }
\ No newline at end of file
index f533f66334f4293a8ca9fce0d07d7f23dc5ef026..90733644a26a13fa2c333d2f464ab4891df951f6 100644 (file)
@@ -65,8 +65,9 @@ public class VersionDocumentAction extends BaseUploadDocumentAction {
                File upfile = commonInitialize(Constants.TRUE);
 
                _mystudy = getOpenStudy();
+               _mystudy.updateCurrentStep();
                _defuses = new ArrayList<Document>();
-
+               
                Publication tag = _mystudy.getSelectedStep().getDocument(
                                Integer.valueOf(_index));
                Document doc = tag.value();