> Try alt-insert for generating getters, setters and constructors. Especially > for value objects with lots of fields - you can generate them all at once > which is great.
You are right. For simple generation of getters and setters there is no need to use "Encapsulate Fields" refactoring. This refactoring is more helpful in case you already have direct access to to some fields (possibly not private) across the program and wish to convert it to using of getters and setters. Best regards, Valentin Kipiatkov ----------------------------------------------------------- IntelliJ Software, http://www.intellij.com/ "Develop with pleasure" ----------------------------------------------------------- ----- Original Message ----- From: "North D" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 02, 2001 7:40 PM Subject: RE: [Eap-list] Defining Javadoc templates for getters and setters > Try alt-insert for generating getters, setters and constructors. Especially > for value objects with lots of fields - you can generate them all at once > which is great. > > +1 for template-based getter and setter generation though. I've written my > own live template for my current house style but it does get really boring > hitting the template over and over rather than using the alt-insert > facility. > > Thanks again for a great product (haven't said that for a few days...) > > Cheers, > Dan > > > > -----Original Message----- > > From: Timothy Dean [mailto:[EMAIL PROTECTED]] > > Sent: 02 November 2001 15:42 > > To: [EMAIL PROTECTED] > > Subject: [Eap-list] Defining Javadoc templates for getters and setters > > > > > > I just discovered the wonderful "encapsulate fields" > > refactoring... What a > > great way to automatically create getters and setters for my field > > definitions! I love this product more and more every time I > > figure out how to > > use a new refactoring!! > > > > One suggestion I would make for future enhancements: When I > > use this feature > > to generate getters and/or setters, it would be nice if I could have a > > Javadoc template that is used to generate my Javadoc for my > > new setters and > > getters.. Something like the class templates you already have > > under Tools/IDE > > Options/Class Templates would be wonderful! > > > > Thanks for the fabulous product - I used to be a Jbuilder > > zealot but I have > > been converted! > > > > - Tim > > > > _______________________________________________ > > Eap-list mailing list > > [EMAIL PROTECTED] > > http://www.intellij.com/mailman/listinfo/eap-list > > > > > **************************************************************************** *********** > This email and any files transmitted with it are confidential and intended > solely for the use of the individual or entity to whom they are addressed. > If you have received this email in error please notify [EMAIL PROTECTED] immediately. > > This footnote also confirms that this email message has been swept for the > presence of computer viruses. > **************************************************************************** *********** > > _______________________________________________ > Eap-list mailing list > [EMAIL PROTECTED] > http://www.intellij.com/mailman/listinfo/eap-list _______________________________________________ Eap-list mailing list [EMAIL PROTECTED] http://www.intellij.com/mailman/listinfo/eap-list
