I understand that to use and serialize java-doc comments in Xtext, we need to unhide them using hidden(WS) and assign to a feature. However, It would enable the user to write comments at a specific place in the model i.e. the place of the feature it is assigned to.
What if we want comments to be written anywhere inside the model and also serialize them along with the model?
Jan Koehnlein Messages: 757 Registered: July 2009 Location: Hamburg
What representation should the comments have in XMI?
You could e.g. implement the transfer of the documentation from the node model yourself when converting the model to XMI.: After copying it to an XMI resource, do another iteration on the EMF model, use the IEObjectDocumentationProvider and turn the docs into EAnnotations that you attach to the elements.
Get professional support from the Xtext committers at www.typefox.io