|
Re: Bug In GEF MVC Tutorial [message #1802541 is a reply to message #1796191] |
Mon, 11 February 2019 17:16 |
|
Hi Servan,
thank you for reporting this issue. This should not happen of course.
There are multiple underlying problems here, I believe:
1) The name of the handler in the stack trace (ResizeTranslateFirstAnchorageOnHandleDragHandler) implies that it should only be used to resize/translate a single, resizable and transformable content part for which resize/translate handles were generated for the user to interact with. I believe that the same handles that are generated for a single selection are also generated for a multi-selection. Therefore, the same handler is executed also for the multi-selection.
2) The connection part does not implement IBendableContentPart. Therefore, it will not work together nicely with the other GEF concepts w.r.t. connections (e.g. bending).
There are several options for implementing resize of a multi-selection. One option is subclassing both ResizeTranslateFirstAnchorageOnHandleDragHandler and ResizeTransformSelectedOnHandleDragHandler. The RTFAOHDH needs to be disabled for multi-selections. The RTSOHDH needs to be disabled for single selections and it needs to disregard connection parts.
Alternatively, you could make ConnectionPart implement IBendableContentPart.
Best regards,
Matthias
|
|
|
|
Powered by
FUDForum. Page generated in 0.02689 seconds