Salome HOME
fix for issue: after versioning operation and import operation the comments are lost
authormka <mka@opencascade.com>
Wed, 29 May 2013 10:03:04 +0000 (10:03 +0000)
committermka <mka@opencascade.com>
Wed, 29 May 2013 10:03:04 +0000 (10:03 +0000)
Workspace/Siman/src/org/splat/simer/EditStepCommentAction.java

index 98c4f827d674ef3c362dcdae88b4cbc757bb123a..51bc879569e3099522943998e2e36bf77f0cb713 100644 (file)
@@ -111,6 +111,7 @@ public class EditStepCommentAction extends DisplayStudyStepAction {
                                LOG.debug("Error while trying to add comment: " + error.getMessage());
                        }
                }
+               doOpen();       //update all project elements, as comments are their attributes
                doDisplayComments();
                return SUCCESS;
        }
@@ -127,6 +128,7 @@ public class EditStepCommentAction extends DisplayStudyStepAction {
                } catch(InvalidParameterException error) {
                        LOG.debug("Error while trying to remove comment: " + error.getMessage());
                }
+               doOpen();       //update all project elements, as comments are their attributes
                doDisplayComments();
                return SUCCESS;
        }
@@ -143,6 +145,7 @@ public class EditStepCommentAction extends DisplayStudyStepAction {
                } catch(InvalidParameterException error) {
                        LOG.debug("Error while trying to remove comment: " + error.getMessage());
                }
+               doOpen();       //update all project elements, as comments are their attributes
                doDisplayComments();
                return SUCCESS;
        }