Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » Cell Editor and Inheritance
Cell Editor and Inheritance [message #611376] Wed, 30 November 2005 09:39
Simon Lengaigne is currently offline Simon LengaigneFriend
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
Previous Topic:java.lang.NullPointerException duting open VE
Next Topic:VE view gone
Goto Forum:
  


Current Time: Fri Apr 26 17:02:52 GMT 2024

Powered by FUDForum. Page generated in 0.02498 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top