Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Use annotations in JET template
Use annotations in JET template [message #423905] Thu, 09 October 2008 12:51 Go to next message
Bernd Mühlböck is currently offline Bernd MühlböckFriend
Messages: 46
Registered: July 2009
Member
How can I use Annotations from the .genmodel file (or better from the
..ecore file) in a JET template (plugin.xmljet).

I already tried genModel.getGenAnnotations(), but I only get an empty list.


Thanks,
Bernd
Re: Use annotations in JET template [message #423906 is a reply to message #423905] Thu, 09 October 2008 13:02 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 30813
Registered: July 2009
Senior Member
Bernd,

Each type of thing like GenModel, GenPackage, GenClass can have
GenAnnotation. If it has them, then that method, on the appropriate
object, should return them.


Bernd Mühlböck wrote:
> How can I use Annotations from the .genmodel file (or better from the
> .ecore file) in a JET template (plugin.xmljet).
>
> I already tried genModel.getGenAnnotations(), but I only get an empty
> list.
>
>
> Thanks,
> Bernd
Previous Topic:Restrict model modifications - ItemProvider.createCommand?
Next Topic:feature change notification fails while using transactional editing domain
Goto Forum:
  


Current Time: Sun Jan 26 06:30:04 GMT 2020

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

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

Back to the top