In NetBeans, it's containerDelegate; In Eclipse, what is it? [message #72181] |
Thu, 18 November 2004 06:48 |
Eclipse User |
|
|
|
Originally posted by: txfen.hands.com.my
Hi guys...
u know in NetBeans, you can actually delegate a container in the beaninfo,
so that NetBeans treat the bean differently, by setting the
"containerDelegate" in the BeanDescriptor's value. How about Eclipse?
The scenario is like this. I have this component, let's say ABCPanel, with
a GridBagLayout, with a Label on top and a Container at the bottom. I'm
extending VE so that I can have this component in the VE.
I want the VE to treat the Panel in the ABCPanel as the ABCPanel itself,
for instance, when user change the layout of the component, it's actually
changing the layout for the Panel inside, instead of the layout of
ABCPanel, or when user drop a component into ABCPanel, it's actually added
to the Panel inside, instead of ABCPanel.
In NetBeans, u can actually do that. Wondering we can do it in Eclipse.
I have an override file, part of it is like this:
------------------------------------------------------------ ------------
<event:Add featureName="eReferences">
<addedEObjects xsi:type="ecore:EReference" eType="ecore:EClass
java:/java.awt#LayoutManager" name="innerLayout" unsettable="true">
<eAnnotations
xsi:type=" org.eclipse.ve.internal.cde.decorators:BasePropertyDecorator "
labelProviderClassname=" org.eclipse.ve.java.core/org.eclipse.ve.internal.java.vce.Ja vaBeanLabelProvider "
cellEditorClassname=" org.eclipse.ve.jfc/org.eclipse.ve.internal.jfc.core.LayoutMa nagerCellEditor "/>
</addedEObjects>
</event:Add>
------------------------------------------------------------ ------------
however it doesnt work as how i want...
any idea guys?
would really appreciate the help.
klutzie
|
|
|
Re: In NetBeans, it's containerDelegate; In Eclipse, what is it? [message #72218 is a reply to message #72181] |
Thu, 18 November 2004 15:28 |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
The VE can't do that right now. It requires the concept of implicits
which we don't have yet. We hopefully will be working on something like
that in the next release.
But that is an interesting new paradigm that we haven't thought about.
Please open a Bugzilla enhancement request against the VE project and
Java Core component.
--
Thanks,
Rich Kulp
|
|
|
Re: In NetBeans, it's containerDelegate; In Eclipse, what is it? [message #603200 is a reply to message #72181] |
Thu, 18 November 2004 15:28 |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
The VE can't do that right now. It requires the concept of implicits
which we don't have yet. We hopefully will be working on something like
that in the next release.
But that is an interesting new paradigm that we haven't thought about.
Please open a Bugzilla enhancement request against the VE project and
Java Core component.
--
Thanks,
Rich Kulp
|
|
|
Powered by
FUDForum. Page generated in 0.03120 seconds