Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » automatically add @Override
automatically add @Override [message #335200] Wed, 25 March 2009 16:32 Go to next message
Eclipse UserFriend
I see that one can flag missing @Override annotations like so:

Preferences -> Java > Compiler > Errors / Warnings > Annotations > Missing
'@Override' annotation

Is there a way to automatically have the annotation added to the source
code?
Re: automatically add @Override [message #335210 is a reply to message #335200] Wed, 25 March 2009 22:21 Go to previous messageGo to next message
Eclipse UserFriend
> Is there a way to automatically have the annotation added to the source
> code?

Preferences->Java->Editor->Save Actions

- Prakash
--
http://blog.eclipse-tips.com
Re: automatically add @Override [message #335238 is a reply to message #335210] Thu, 26 March 2009 14:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

On 3/25/2009 10:21 PM, Prakash G.R. wrote:
>> Is there a way to automatically have the annotation added to the source
>> code?
>
> Preferences->Java->Editor->Save Actions

If you want to add the annotations to an entire project or package in
bulk, select the project or package (or multiples), right-click, and
choose Source > Clean up...
In the Clean Up dialog, you can configure a custom profile that includes
adding missing annotations.

Hope this helps,
Eric
Re: automatically add @Override [message #335239 is a reply to message #335238] Thu, 26 March 2009 15:31 Go to previous messageGo to next message
Eclipse UserFriend
thanks for the tips
Re: automatically add @Override [message #335274 is a reply to message #335238] Mon, 30 March 2009 09:42 Go to previous messageGo to next message
Eclipse UserFriend
>>Windows -> Preferences->Java->Editor->Save Actions
Is it possible to do this on a project basis, ie have some projects do
this and others not? It appears not.
Re: automatically add @Override [message #335275 is a reply to message #335274] Mon, 30 March 2009 09:48 Go to previous message
Eclipse UserFriend
oh yes, found it
Previous Topic:[JFace] WizardDialog should call perform cancel on outer wizards in the nested chain
Next Topic:JFace Rhino Databinding
Goto Forum:
  


Current Time: Sat May 03 12:25:32 EDT 2025

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

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

Back to the top