Nononono.  If I understand you right, then there is a simple fix and IT IS
AWESOME!  Our coding style is to have "m_" prepended to members, and "a_"
for arguments.

Goto IDE Options, Code Style and look for the "Name Prefix" block.  In the
field area, enter your prefix ("m" or "_" or whatever).  Do the same for the
other types.  Click OK.

Next time you do alt-insert to create getters and setters for a member,
you'll end up with something like this:  (my style shown)

void setEnabled(boolean a_enabled)
{
    m_enabled = a_enabled;
}

boolean isEnabled()
{
    return m_enabled;
}


Cheers!

-sms


-----Original Message-----
From: Chris Merrill [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 02, 2001 11:32 AM
To: [EMAIL PROTECTED]
Subject: Re: [Eap-list] Defining Javadoc templates for getters and
setters


Likewise for us...we use '_' as a prefix for all member variables...
and the Alt-Insert approach also does not work well for the same
reason...maybe this could be addressed in a Code style preference???

Timothy M. Dean said:
> Thanks for the tip - I hadn't noticed that feature yet! Unfortunately,
> this approach to generating getters and setters doesn't work as well for
> me. Due to coding standards, my instance attributes are prefixed with an
> "m" (for "member"), a prefix that I do not wish to preserve in my getter
> and setter names. Going through the "Encapsulate Fields" refactoring
> allows me to edit the names of the getters and setters to be generated.
> Going through the Alt-Insert approach does not...

*********************************
Chris Merrill
[EMAIL PROTECTED]
*********************************

_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list

-------------------------------------------------- 
DISCLAIMER 
This e-mail, and any attachments thereto, is intended only for use by the
addressee(s) named herein and may contain legally privileged and/or
confidential information.  If you are not the intended recipient of this
e-mail, you are hereby notified that any dissemination, distribution or
copying of this e-mail, and any attachments thereto, is strictly prohibited.
If you have received this e-mail in error, please immediately notify me and
permanently delete the original and any copy of any e-mail and any printout
thereof. 

E-mail transmission cannot be guaranteed to be secure or error-free.  The
sender therefore does not accept liability for any errors or omissions in
the contents of this message which arise as a result of e-mail transmission.

NOTICE REGARDING PRIVACY AND CONFIDENTIALITY 

Knight Trading Group may, at its discretion, monitor and review the content
of all e-mail communications. 


_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list

Reply via email to