Links with "Feature Seq Initializer" still don't work. [message #108108] |
Thu, 01 March 2007 10:46 |
Michael Moser![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=mmo%40zurich.ibm.com) Messages: 914 Registered: July 2009 |
Senior Member |
|
|
As a proof of concept whether GMF might be a way to create a UI for our
project I am trying to create a simple diagram editor, that shows
"Process"-es and "Artifact"-s (imagine: files or data objects). I want
to be able to draw "Relationship"-s from processes to artifacts, like
"creates", "reads", "updates", "deletes".
In ecore/genmodel I defined the above two and a "Relationship"-type that
has a "type" (an enumerated value) and a "label" (string) field.
In .gmftools I defined tools to create each of these relationships, in
..gmfgraph I defined a couple of connections (using different polylines
with different colors and arrow tips) and in .gmfmap I defined four
LinkMappings with source Process and target Artifact and "Feature Seq
Initializer"s that set the type to one of the enumeration values and the
label to a corresponding string.
The above seems rather trivial and straight forward to me. However, when
I run the generated diagram editor I get the following strange behavior:
1.) If I create any of the misc. Relationship-types then the connection
is drawn, but no label is shown, except for "creates" relations (which
happens to be value 0 in the enumeration - not sure if this is
relevant).
2.) If I close the diagram file and re-open it, then all relations
appear correctly labeled, but each relation is now drawn twice! Once
with their expected connection, but additionally with a "creates"
connection. While the relations appear correctly labeled, strange
enough, if one inspects closer, the labels are actually attached to the
newly added "creates" connections and not to the connection that would
correspond to the type of the connection (i.e. the latter still have no
label).
I have reported this effect already a while ago and back then was told,
that a work-around to this would be to switch "Gen Editor Generator..."
=> "Gen Diagram ..." => Diagram => "Synchronized" in the .gmfgen file to
false. Doing so fixes things insofar that no additional connections are
being created and/or drawn after reopening the file, but the labels
still don't appear properly.
This seems such a basic functionality to me: what am I missing or doing
wrong here? Is there an alternative to achieve what I want or is there
some hope that this gets fixed any time soon?
Michael
|
|
|
Powered by
FUDForum. Page generated in 0.03929 seconds