Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » How does VE decide whether to instantiate a bean in initialize?
How does VE decide whether to instantiate a bean in initialize? [message #617300] Tue, 25 November 2008 10:45
Eli Lato is currently offline Eli Lato
Messages: 35
Registered: July 2009
Member
If I choose a JLabel from the Choose Bean button, and drop the JLabel on the panel, the VE instantiates the JLabel in the initialize method:
private void initialize() {
jLabel = new JLabel();
...

But if I choose a JFormattedTextField from the Choose Bean button, and drop the JFormattedTextField on the panel, the VE instantiates it in a lazy getter:
private JFormattedTextField getJFormattedTextField() (
if (jFormattedTextField == null...

How does the VE decide where to instantiate the bean?

Thanks,
Eli
Previous Topic:[ANN] Build for Eclipse Ganymede
Next Topic:checkout via CVS
Goto Forum:
  


Current Time: Fri Oct 24 14:49:54 GMT 2014

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

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