Changing default access [message #133876] |
Sat, 02 December 2006 15:37 |
Eclipse User |
|
|
|
Originally posted by: rjohns.nortel-no-spam.com
How do you change the default access after creating a new VE project? I
inadvertently left it as "private" and have been manually changing
getters to "protected" ever since.
It doesn't appear on the VE preferences, which is where I'd expect it.
--
Cheers,
Rick
|
|
|
Re: Changing default access [message #133889 is a reply to message #133876] |
Mon, 04 December 2006 14:50 |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
It depends on what getters you are talking about. The ones that look like:
private JPanel getJPanel() {
if (jpanel == null) {
...
}
return jpanel;
}
should stay private.
There is a thread discussion just last month about why those should stay
private. Look up in this newsgroup starting on Nov. 6, 2006 the thread
titled "getter and setter methods are private".
--
Thanks,
Rich Kulp
|
|
|
Re: Changing default access [message #614838 is a reply to message #133876] |
Mon, 04 December 2006 14:50 |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
It depends on what getters you are talking about. The ones that look like:
private JPanel getJPanel() {
if (jpanel == null) {
...
}
return jpanel;
}
should stay private.
There is a thread discussion just last month about why those should stay
private. Look up in this newsgroup starting on Nov. 6, 2006 the thread
titled "getter and setter methods are private".
--
Thanks,
Rich Kulp
|
|
|
Powered by
FUDForum. Page generated in 0.03029 seconds