diff --git a/plugins/org.eclipse.fordiac.ide.model/src/org/eclipse/fordiac/ide/model/dataexport/AbstractBlockTypeExporter.java b/plugins/org.eclipse.fordiac.ide.model/src/org/eclipse/fordiac/ide/model/dataexport/AbstractBlockTypeExporter.java index 1d1141d7cd..53524a5314 100644 --- a/plugins/org.eclipse.fordiac.ide.model/src/org/eclipse/fordiac/ide/model/dataexport/AbstractBlockTypeExporter.java +++ b/plugins/org.eclipse.fordiac.ide.model/src/org/eclipse/fordiac/ide/model/dataexport/AbstractBlockTypeExporter.java @@ -247,7 +247,7 @@ private void addService(final FBType sfb) throws XMLStreamException { sfb.getService().getRightInterface().getName()); getWriter().writeAttribute(LibraryElementTags.LEFT_INTERFACE_ATTRIBUTE, sfb.getService().getLeftInterface().getName()); - addCommentAttribute(sfb.getComment()); + addCommentAttribute(sfb.getService().getComment()); addServiceSequences(sfb.getService().getServiceSequence()); diff --git a/plugins/org.eclipse.fordiac.ide.model/src/org/eclipse/fordiac/ide/model/dataimport/FBTImporter.java b/plugins/org.eclipse.fordiac.ide.model/src/org/eclipse/fordiac/ide/model/dataimport/FBTImporter.java index 9580f26b2e..789e14052d 100644 --- a/plugins/org.eclipse.fordiac.ide.model/src/org/eclipse/fordiac/ide/model/dataimport/FBTImporter.java +++ b/plugins/org.eclipse.fordiac.ide.model/src/org/eclipse/fordiac/ide/model/dataimport/FBTImporter.java @@ -199,7 +199,7 @@ protected void parseService(final FBType type) throws TypeImportException, XMLSt type.getService().setLeftInterface(leftInter); final String comment = getAttributeValue(LibraryElementTags.COMMENT_ATTRIBUTE); if (null != comment) { - type.setComment(comment); + type.getService().setComment(comment); } processChildren(LibraryElementTags.SERVICE_ELEMENT, name -> {