Link constraints aren't evaluated for non-model figures [message #540488] |
Wed, 16 June 2010 07:11  |
Eclipse User |
|
|
|
Hi,
can anyone tell me how I can hook into higher level link ReorientCommand?
The following steps lead to an invalid state on about every diagram:
1) draw two figures of your model and a connection between them
2) from the diagram's context menu choose Add | Note
3) drag your connection's source or target (doesn't matter) to the "Note" figure
4) try to drag it back, it won't work
If you specify link constraints in gmfmap, they are not evaluated when reorienting to "Note" figures. If you set a break point in generated XXXReorientCommand's canReorientSource() or canReorientTarget() you'll find, these are never called when reorienting to "Note" figures.
In fact, this "bug" (is it one?) applies to any figure from the "Add" context menu.
So my question is: How can I prevent connection endpoints from being attached to such ("Note") figures at all?
At least I managed to being able to reattach them to my model elements by changing two methods in XXXReorientCommand(). But that's no good solution as users still can drag connection somewhere they're not supposed to.
Cheers
Rob
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05877 seconds