Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Label editing and attributes vs. references
Label editing and attributes vs. references [message #97841] Mon, 29 January 2007 05:45
Eclipse UserFriend
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
Previous Topic:saving the choices
Next Topic:Increasing Line Width of a PolylineConnectionEx Figure
Goto Forum:
  


Current Time: Sat Apr 26 02:14:29 EDT 2025

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

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

Back to the top