[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.modeling.gmf] two (maybe a little bit wider) problems with a custom layout
|
Hello together,
i have two problems concerning a custom layout for lifelines in a
sequenceeditor.
a small intro:
The first appended image shows such a lifeline from some sequencechart.
The figure for this editpart is composed in a .gmfgraph as follows:
'container' Rectangle (invisible root figure)
- my custom layout
- 'upper' Rectangle (the red one)
- a polyline
the custom layout is responsible for arranging the 'upper' rectangle,
polyline and any number of so called Locations (blue circles in the
second appended image). Locations are child editparts of the lifeline
editpart and are only drawn on the polyline due to my custom layout(they
will be the start- or endpoints for messages between lifelines).
first problem:
the location figures are drawn behind the lifelines polyline figure (see
the second image). does anybody have an idea why? I thought the figures
of a child editpart (LocationEditpart) are always drawn on top of its
parent editpart (LifelineEditpart) in gef?
second problem:
my custom layout is working fine. the location *figures* are arranged
correctly only over the polyline.
However the position of the corresponding *notation view element* is not
set to the appropriate figure location but to the position where i moved
and released the mouse (e.g. i move a location outside above the
lifeline figure, when i release it my layout sets it correctly to the
beginning of the lifeline but the y-value of the notation view element
gets negative)
this is a problem since i need the correct notation coordiantes of the
locations to sort them in my domain model e.g. when to locations get
swapped.
any ideas here which commands or editpolicies i could tweak to get the
expected result?
i hope i made myself clear.
best regards,
David

