Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Generating comments
Generating comments [message #423982] Mon, 13 October 2008 12:01 Go to next message
Eclipse UserFriend
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 #423989 is a reply to message #423982] Mon, 13 October 2008 15:59 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33136
Registered: July 2009
Senior Member
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öf
>
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Generating comments [message #424001 is a reply to message #423989] Tue, 14 October 2008 08:02 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:Element Ordering in EMF Serialization
Next Topic:Is it possible that ECoreUtil.Copy() changes an EObject?
Goto Forum:
  


Current Time: Fri Apr 19 04:12:27 GMT 2024

Powered by FUDForum. Page generated in 0.02397 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top