Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » EAnnotation and Java annotations
EAnnotation and Java annotations [message #483909] Thu, 03 September 2009 14:51 Go to next message
Tee Bee is currently offline Tee BeeFriend
Messages: 18
Registered: July 2009
Junior Member
Hi,

Could someone please explain how the Ecore EAnnotation can be used to
represent a Java annotation (usage)? For instance the annotation
@SuppressWarnings( "all"). Using EMF I see that two properties appear for
the EAnnotation class: source and references. How can these properties be
used to represent the above Java annotation in a sound manner?

I've searched the net but didn't find a proper solution to this.

Thanks for your time!
Re: EAnnotation and Java annotations [message #484010 is a reply to message #483909] Thu, 03 September 2009 20:55 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
Tee,

Comments below.

Tee Bee wrote:
> Hi,
>
> Could someone please explain how the Ecore EAnnotation can be used to
> represent a Java annotation (usage)? For instance the annotation
> @SuppressWarnings( "all").
They can't.
> Using EMF I see that two properties appear for the EAnnotation class:
> source and references. How can these properties be used to represent
> the above Java annotation in a sound manner?
They don't. There's no support for this at all yet.
>
> I've searched the net but didn't find a proper solution to this.
You can add such annotations by hand to the source code itself.
>
> Thanks for your time!


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: EAnnotation and Java annotations [message #484048 is a reply to message #484010] Fri, 04 September 2009 05:15 Go to previous message
Tee Bee is currently offline Tee BeeFriend
Messages: 18
Registered: July 2009
Junior Member
Thanks for your reply! :)
Previous Topic:Dynamic Templates
Next Topic:[CDO] CDOResources and large datasets
Goto Forum:
  


Current Time: Fri Apr 26 23:38:38 GMT 2024

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

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

Back to the top