Question about editing javabeans with VE [message #79779] |
Wed, 09 February 2005 12:00  |
Eclipse User |
|
|
|
I have a simple javabean, created with VE derived from Composite. Let's
say it has a Text on it, and I've used the "generate getters and
setters" functionality.
Now, I create a new Composite and using the "Choose Java Bean" palette
item, I drop my java bean onto the composite. My bean appears, nice as
can be, and my Text property appears in the property sheet, and I can
expand it to get at its subproperties, like "text". So, I set my Text's
text via the property sheet. Instead of code like this:
beanComposite = new BeanComposite(this, SWT.NONE);
beanComposite.getText().setText("Hi there");
I end up with code like this:
text = new Text(); // error, no such constructor visible
beanComposite = new BeanComposite(this, SWT.NONE);
text.setText("Hi there.");
beanComposite.setText(text);
which won't even compile, and even if it did it would cause all sorts of
mischief in less trivial situations.
Am I doing something wrong, or is this a limitation of this early
version of VE? I'd like to be able to put my bean on a composite and
edit the properties of the bean's controls at design time using VE, but
it looks like it does not yet have that capability. Is this correct?
|
|
|
Re: Question about editing javabeans with VE [message #79810 is a reply to message #79779] |
Wed, 09 February 2005 13:47  |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
That's called an implicit property. We don't handle those yet. An
implicit property is where you want to drill down to a property and set
another property on it, where the top property is the default value. We
need to be able to handle this, but that's not available yet. We can
only handle nesting like that when we also created the top level setting.
--
Thanks,
Rich Kulp
|
|
|
Re: Question about editing javabeans with VE [message #605178 is a reply to message #79779] |
Wed, 09 February 2005 13:47  |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
That's called an implicit property. We don't handle those yet. An
implicit property is where you want to drill down to a property and set
another property on it, where the top property is the default value. We
need to be able to handle this, but that's not available yet. We can
only handle nesting like that when we also created the top level setting.
--
Thanks,
Rich Kulp
|
|
|
Powered by
FUDForum. Page generated in 0.10358 seconds