Re: Add Key template

From: Kieran Kelleher (kieran_list..ac.com)
Date: Tue Mar 20 2007 - 07:53:04 EDT

  • Next message: Mike Schrag: "Re: Add Key template"

    Ah, found the Code Style setting which allows you to specify
    prefixes, such as underscore, for fields. Getter/setter generation is
    better now except I want to get rid of the "get" prefix..... See
    attached screenshot:

    On Mar 20, 2007, at 7:16 AM, Kieran Kelleher wrote:

    > Yeah, I tried that but it does not do the underscore thing
    > (WOBuilder did) which is a convention I have established in my
    > projects that is used to identify ivars in stateless WOComponents
    > (which for me is every non-page component) that are automatically
    > reset.
    >
    > If I use an ivar beginning with an underscore and do auto generate
    > setter/getter, I get this ugly mess:
    > protected Object _myAutoResetVar;
    >
    > public Object get_myAutoResetVar() {
    > return _myAutoResetVar;
    > }
    >
    > public void set_myAutoResetVar(Object autoResetVar) {
    > _myAutoResetVar = autoResetVar;
    > }
    >
    >



    This archive was generated by hypermail 2.0.0 : Tue Mar 20 2007 - 07:53:27 EDT