Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Q: code template for gettors/settors
Q: code template for gettors/settors [message #250374] Thu, 27 December 2007 17:24 Go to next message
G. Ralph Kuntz, MD is currently offline G. Ralph Kuntz, MDFriend
Messages: 20
Registered: July 2009
Junior Member
I would like to create a Java template for inserting a new property and
the associated gettor and settor method.

Is it possible the automatically "camel-case" the field name in the
methods?

For example:

private String foo;

public String getFoo() {
return foo;
}

public void setFoo(final String foo) {
this.foo = foo;
}
Re: Q: code template for gettors/settors [message #250407 is a reply to message #250374] Wed, 02 January 2008 14:46 Go to previous message
Eclipse UserFriend
Originally posted by: spamme.gospodinov.net

You can generate getters/setters in Eclipse by defining the properties and
then selecting generate getters/setters.
Previous Topic:ISourceRange question
Next Topic:Q: Cannot launch RCP application
Goto Forum:
  


Current Time: Fri Oct 18 11:30:22 GMT 2024

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

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

Back to the top