Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » serialVersionUID template?(Is it possible to change the template for serialVersionUID generation?)
serialVersionUID template? [message #525053] Mon, 05 April 2010 15:25 Go to next message
David Sills is currently offline David SillsFriend
Messages: 9
Registered: July 2009
Junior Member
Is it possible to change the template for serialVersionUID generation? I love the feature, but hate the code it generates, which I always have to fix by hand (why an empty comment, anyway?). Any chance, if the feature is not in the code templates currently, that it could be added?
Re: serialVersionUID template? [message #539571 is a reply to message #525053] Fri, 11 June 2010 11:08 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
David Sills wrote:
> Is it possible to change the template for serialVersionUID generation?
> I love the feature, but hate the code it generates, which I always
> have to fix by hand (why an empty comment, anyway?). Any chance, if
> the feature is not in the code templates currently, that it could be
> added?
There's no specific code template for that. The only thing you could do
is to clear the field comment code template but that will affect any
generated field.

Dani
Re: serialVersionUID template? [message #780457 is a reply to message #539571] Wed, 18 January 2012 05:02 Go to previous messageGo to next message
fjjiaboming Missing name is currently offline fjjiaboming Missing nameFriend
Messages: 11
Registered: July 2009
Junior Member
Donot fix it ?
Re: serialVersionUID template? [message #859905 is a reply to message #525053] Fri, 27 April 2012 21:34 Go to previous message
Duncan Calvert is currently offline Duncan CalvertFriend
Messages: 2
Registered: April 2012
Junior Member
Go to Windows > Preferences > Java > Code Style > Code Templates > Comments > Fields

Click edit.
Delete comment block.
Save and exit.

The comment will no longer be generated automatically. Smile
Previous Topic:Eclipse Stackoverflow
Next Topic:how can I debug a Java application that must run as root?
Goto Forum:
  


Current Time: Fri Apr 26 15:07:03 GMT 2024

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

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

Back to the top