Add Property - plugin detail
A simple UI to create properties
| Plugin owner: |
sandipchitale |
| Website: |
http://blogs.sun.com/scblog |
| Added: |
2007-11-04 |
| Last updated: |
2007-12-24 |
| NetBeans Versions: |
6.0 |
| License: |
CDDL |
| Category: |
Programming Languages |
| Size: |
0.03 MB |
| Downloaded: |
2,496 times |
| Rating: |
|
Verifications for NetBeans versions
Plugin is not subject to any verification |
Introduction
A simple UI to create properties and related boilerplate code. The code generation can be configured using the freemarker template using the Tools:Templates menu item.
Please provide feedback to influence further development.
TODO:
-
validation is not implemented yet
Sources
What's new in this version
Support initializer expression.
|
[ You have to be logged in to be able to comment. ]
User Comments
RE: foldable option
Well that looks pretty bad, but you get my point. Just have to add two commented lines (one above the code, one below) telling the editor to fold the code.
Posted by ksariash on Mar 13, 2008
foldable option
It would be nice to have the option to make the code foldable.
The example below would generate the property and fold it up neatly in the editor.
//
protected String name = "";
/**
* Get the value of name
*
* @return the value of name
*/
public String getName() {
return this.name;
}
/**
* Set the value of name
*
* @param newname new value of name
*/
public void setName(String newname) {
this.name = newname;
}
//
Posted by ksariash on Mar 13, 2008
RE: javadoc
It would be nice to start with a comment describing the use of a property. I don't know if there's a convention for where the property's documentation string should be. Should it be repeated 3 times for the setter, getter and member variable? I hate to repeat the same documentation three times, because it will surely be inconsistent, but it seems to allow for an initial statement that is repeated in the getter and setter documentation would be an improvement over the generic javadoc that is inserted. Thanks for putting in the initial value field!
Posted by jbfaden on Dec 27, 2007
RE: initial value and javadoc
Initial value field has been added.
Can you please elaborate on "descriptive string for javadoc"?
Posted by sandipchitale on Dec 24, 2007
initial value and javadoc
Please consider adding fields for initial value and a descriptive string for javadoc.
Posted by jbfaden on Dec 20, 2007