Label editing and attributes vs. references [message #97841] |
Mon, 29 January 2007 05:45 |
Eclipse User |
|
|
|
Hi,
The property sheet support generated by the standard ecore generator
supports editing of EAttributes and EReferences that has been marked
as properties in genmodel. For the purpose of editing, such
EReferences look and feel like EAttributes. I've just changed a
feature in my model from EAttribute to EReference, i.e. an EDataType
for a complex class structure has been replaced by a complex EClass
structure, so this behaviour is crucial for me.
However, this breaks label editing in GMF, in a strange way. My new
model is supported by previously generated code, since the feature of
a FeatureLabel in the runtime, can be an EStructuralFeature. However,
the gmfmap model only allows an EAttribute, so when editing the gmfmap
model I get a lot of error messages, and hence I cannot regenerate the
code (even though the generated code would work, if it was allowed).
It should be easy to support EReference for label editing, if this is
supported by the code generated by the ecore generator, based on
genmodel. Am I right or completely off track?
Hallvard
|
|
|
Powered by
FUDForum. Page generated in 0.03539 seconds