Add Property - plugin detail

A simple UI to create properties

NetBeans Plugin - Add Property
Plugin owner: sandipchitale
Website: http://blogs.sun.com/scblog
Added: 2007-11-04
License: CDDL
Category: Programming Languages
Downloaded: 2,801 times
Rating:
 4.46, by 4 users

Plugin Log Show log

Versions available

Download plugin   Download size: 0.03 MB   Last Update: 2007-12-24

What's new in this version

Support initializer expression.

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

web tracker

[ 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
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo