Cell Editor and Inheritance [message #611376] |
Wed, 30 November 2005 09:39 |
Simon Lengaigne Messages: 9 Registered: July 2009 |
Junior Member |
|
|
Hello,
I need help.
I have a class, "AbstractField" which has a property "validationRules". To
set this propety I have created a customized cell Editor.
The class "Field" extends AbstractField. I want his property "pattern" to
be settable with an other specific cell editor.
For each class i've defined an override file.
The problem is I'm not able to use the both cell editors for the class
Field. VE throws Errors.
- If I only use the AbstractField.override file, the inherited property
validationRules of the class Field is settable with the cell editor.
- If I only use the Field.override file, pattern is settable with his cell
editor.
- If I use the both files, java.lang.ClassCastException...
Here is AbstractField.override
<event:Add featureName="eStructuralFeatures">
<addedEObjects xsi:type="ecore:EReference"
name="validationRules">
<eAnnotations
xsi:type=" org.eclipse.ve.internal.cde.decorators:BasePropertyDecorator "
cellEditorClassname=" cofidis.ide.gui.ve/cofidis.rcp.gui.ve.celleditor.ValidatorSe lectionLabelEditor "
/>
</addedEObjects>
</event:Add>
Field.override
<event:Add featureName="eStructuralFeatures">
<addedEObjects xsi:type="ecore:EReference" name="pattern">
<eAnnotations
xsi:type=" org.eclipse.ve.internal.cde.decorators:BasePropertyDecorator "
cellEditorClassname=" cofidis.ide.gui.ve/cofidis.rcp.gui.ve.celleditor.PatternSele ctionLabelEditor "
/>
</addedEObjects>
</event:Add>
Thanks for your help
Simon Lengaigne
|
|
|
Powered by
FUDForum. Page generated in 0.02498 seconds