Skip to main content



      Home
Home » Modeling » EMF » Dropping @Override from generated source
Dropping @Override from generated source [message #524813] Fri, 02 April 2010 12:17 Go to next message
Eclipse UserFriend
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 05:08 Go to previous message
Eclipse UserFriend
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!
Previous Topic:EClass.eSet method only takes collection?
Next Topic:How to add an RecordingCommand to the Undo/Redo menu?
Goto Forum:
  


Current Time: Tue Jul 08 08:39:29 EDT 2025

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

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

Back to the top