|
Re: invalid feature Component/bounds [message #119110 is a reply to message #119084] |
Mon, 27 February 2006 23:31 |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
Your visual component must be a subclass of awt.Component AND your
beaninfo must not hide or remove the "bounds" property. If it wasn't a
subclass of Component or you hid the "bounds" property, then this will fail.
Andy Arhelger wrote:
> I have a plugin that I am trying to convert from VE 1.0 to 1.1. As I am
> initializing bean proxies I get an IllegalArgumentException "The feature
> "bounds" is not a valid feature" during the useComponentSize call in
> this method of ComponentProxyAdapter. The 1.0 didn't have the
> postInstantiateStuff method so I don't know what to do or change.
>
>
>
> private void postInstantiateStuff(IExpression expression, IProxy newbean) {
> getComponentManager().setComponentBeanProxy(newbean, expression,
> getModelChangeController());
> if (ffHost != null) {
> // Now finish the instantiation on the freeform.
> try {
> // try {
> // .. do freeform stuff ..
> expression.createTry();
> ffProxy = ffHost.add(this, newbean, expression);
>
> // Set the initial use component size.
> ffProxy.useComponentSize(newbean,
> getEObject().eIsSet(sfComponentBounds) ||
> getEObject().eIsSet(sfComponentSize), expression);
>
> Andy Arhelger
>
--
Thanks,
Rich Kulp
|
|
|
|
|
|
Re: invalid feature Component/bounds [message #119369 is a reply to message #119329] |
Tue, 28 February 2006 18:44 |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
That would cause the problem. And why it won't work. To use
ComponentProxyAdapter it must be a subclass of awt.Component.
Andy Arhelger wrote:
> Yes, we must. I am not the original author of this so am trying to learn
> as I go here.
> In the bean override file we specify a beanProxyClassName. I assume this
> is how the proxy gets associated with the bean?
>
>
> Rich Kulp wrote:
>
>> If it wasn't a subclass of awt.Component, then how do it get to have a
>> ComponentProxyAdapter? Did you force this?
>>
--
Thanks,
Rich Kulp
|
|
|
Re: invalid feature Component/bounds [message #612195 is a reply to message #119084] |
Mon, 27 February 2006 23:31 |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
Your visual component must be a subclass of awt.Component AND your
beaninfo must not hide or remove the "bounds" property. If it wasn't a
subclass of Component or you hid the "bounds" property, then this will fail.
Andy Arhelger wrote:
> I have a plugin that I am trying to convert from VE 1.0 to 1.1. As I am
> initializing bean proxies I get an IllegalArgumentException "The feature
> "bounds" is not a valid feature" during the useComponentSize call in
> this method of ComponentProxyAdapter. The 1.0 didn't have the
> postInstantiateStuff method so I don't know what to do or change.
>
>
>
> private void postInstantiateStuff(IExpression expression, IProxy newbean) {
> getComponentManager().setComponentBeanProxy(newbean, expression,
> getModelChangeController());
> if (ffHost != null) {
> // Now finish the instantiation on the freeform.
> try {
> // try {
> // .. do freeform stuff ..
> expression.createTry();
> ffProxy = ffHost.add(this, newbean, expression);
>
> // Set the initial use component size.
> ffProxy.useComponentSize(newbean,
> getEObject().eIsSet(sfComponentBounds) ||
> getEObject().eIsSet(sfComponentSize), expression);
>
> Andy Arhelger
>
--
Thanks,
Rich Kulp
|
|
|
|
|
|
Re: invalid feature Component/bounds [message #612216 is a reply to message #119329] |
Tue, 28 February 2006 18:44 |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
That would cause the problem. And why it won't work. To use
ComponentProxyAdapter it must be a subclass of awt.Component.
Andy Arhelger wrote:
> Yes, we must. I am not the original author of this so am trying to learn
> as I go here.
> In the bean override file we specify a beanProxyClassName. I assume this
> is how the proxy gets associated with the bean?
>
>
> Rich Kulp wrote:
>
>> If it wasn't a subclass of awt.Component, then how do it get to have a
>> ComponentProxyAdapter? Did you force this?
>>
--
Thanks,
Rich Kulp
|
|
|
Powered by
FUDForum. Page generated in 0.03618 seconds