Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Dropping @Override from generated source
Dropping @Override from generated source [message #524813] Fri, 02 April 2010 16:17 Go to next message
Steven Stallion is currently offline Steven StallionFriend
Messages: 21
Registered: March 2010
Junior Member
All,

While generating EMF source, I noticed that @Override annotations were being specified for implemented interfaces (a Java 6 feature), however this plugin is targeting Java SE 1.5.

Looking through the JET templates, I noticed the following:
357 <%if (genModel.useClassOverrideAnnotation()) {%>
358 @Override
359 <%}%>

It appears that my only option is to disable emitting @Overrides annotations period (those used on interfaces use the same snippet above as those that don't).

What is the proper attribute to set in the .genmodel to disable this annotation?

TIA!
Re: Dropping @Override from generated source [message #524885 is a reply to message #524813] Sat, 03 April 2010 09:08 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
Steven,

You'll want to set the GenModel's Compliance Level property to 5.0.


Steven Stallion wrote:
> All,
>
> While generating EMF source, I noticed that @Override annotations were
> being specified for implemented interfaces (a Java 6 feature), however
> this plugin is targeting Java SE 1.5.
> Looking through the JET templates, I noticed the following:
> 357 <%if (genModel.useClassOverrideAnnotation()) {%>
> 358 @Override
> 359 <%}%>
>
> It appears that my only option is to disable emitting @Overrides
> annotations period (those used on interfaces use the same snippet
> above as those that don't).
>
> What is the proper attribute to set in the .genmodel to disable this
> annotation?
>
> TIA!


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:EClass.eSet method only takes collection?
Next Topic:How to add an RecordingCommand to the Undo/Redo menu?
Goto Forum:
  


Current Time: Thu Apr 25 21:59:43 GMT 2024

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

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

Back to the top