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 05: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: Wed Jul 23 14:23:08 EDT 2014

Powered by FUDForum. Page generated in 0.02469 seconds