Generating comments [message #423982] |
Mon, 13 October 2008 12:01 |
Eclipse User |
|
|
|
Originally posted by: NOSPAM-magnus.rundlof.saabgroup.com-NOSPAM
Hi
I would like to add documentation in my Ecore models and then get that
documentation in the javadoc comments for generated methods and attributes.
Is that possilble? I've used the genmodel annotation for generating a body
for a method, is there an annotation for generating comments as well?
Regards/
Magnus Rundl
|
|
|
|
Re: Generating comments [message #424001 is a reply to message #423989] |
Tue, 14 October 2008 08:02 |
Eclipse User |
|
|
|
Originally posted by: NOSPAM-magnus.rundlof.saabgroup.com-NOSPAM
Thanks Ed!
I've actually tried that but must have made a typo or something... I'll try
again!
Regards/
Magnus
"Ed Merks" <Ed.Merks@gmail.com> wrote in message
news:gcvr8n$daq$2@build.eclipse.org...
> Magnus,
>
> Yes, the same type of approach works. A GenModel nsURI annotation with
> key "documentation" will do the trick.
>
>
> Magnus Rundlof wrote:
>> Hi
>>
>> I would like to add documentation in my Ecore models and then get that
>> documentation in the javadoc comments for generated methods and
>> attributes. Is that possilble? I've used the genmodel annotation for
>> generating a body for a method, is there an annotation for generating
>> comments as well?
>>
>> Regards/
>> Magnus Rundl
|
|
|
Re: Generating comments [message #424005 is a reply to message #424001] |
Tue, 14 October 2008 08:11 |
Eclipse User |
|
|
|
Originally posted by: NOSPAM-magnus.rundlof.saabgroup.com-NOSPAM
Stupid me... I expected the comment to appear in the implementation class,
but now I see that it is generated in the interface, which makes more sense.
Regards/
Magnus
"Magnus Rundlof" <NOSPAM-magnus.rundlof@saabgroup.com-NOSPAM> wrote in
message news:gd1jn4$nr6$1@build.eclipse.org...
> Thanks Ed!
>
> I've actually tried that but must have made a typo or something... I'll
> try again!
>
> Regards/
> Magnus
>
>
>
> "Ed Merks" <Ed.Merks@gmail.com> wrote in message
> news:gcvr8n$daq$2@build.eclipse.org...
>> Magnus,
>>
>> Yes, the same type of approach works. A GenModel nsURI annotation with
>> key "documentation" will do the trick.
>>
>>
>> Magnus Rundlof wrote:
>>> Hi
>>>
>>> I would like to add documentation in my Ecore models and then get that
>>> documentation in the javadoc comments for generated methods and
>>> attributes. Is that possilble? I've used the genmodel annotation for
>>> generating a body for a method, is there an annotation for generating
>>> comments as well?
>>>
>>> Regards/
>>> Magnus Rundl
|
|
|
Powered by
FUDForum. Page generated in 0.02397 seconds