Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » Changing default access
Changing default access [message #133876] Sat, 02 December 2006 15:37 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:Changing default access
Next Topic:Another case of VE not showing up after installation
Goto Forum:
  


Current Time: Tue Apr 23 06:49:32 GMT 2024

Powered by FUDForum. Page generated in 0.03029 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top