Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 10:45
Hallvard Traetteberg is currently offline Hallvard TraettebergFriend
Messages: 673
Registered: July 2009
Location: Trondheim, Norway
Senior Member
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 May 18 16:23:53 GMT 2024

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

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

Back to the top