Show/hide connections for a node on selection/unselection [message #180049] |
Tue, 01 April 2008 05:20  |
Eclipse User |
|
|
|
Hi All,
I want to show incoming connections for a node on selection and hide them
on unselection. Where should I look at?
I guess I should install EditPolicy.SELECTION_FEEDBACK_ROLE in the node's
edit part, but how do I iterate connections and show/hide them from there?
Any help appreciated.
Thanks in advance,
Alexey
|
|
|
|
|
|
Re: Show/hide connections for a node on selection/unselection [message #761422 is a reply to message #761274] |
Tue, 06 December 2011 08:08  |
Eclipse User |
|
|
|
Thanks for the hint! I was trying to find a method of contained EditPart-s to override, but without success. I also tried to breakpoint at handleNotification, but it seems, that the contained EditPart has nothing to do with collapsing/expanding the compartment. I guess, that this action only deals with View-s, not the EditPart-s (?).
However, I just found a workaround/solution inspired by the Logic Diagram Example. Inheriting the compartment's EditPart from ShapeCompartmentEditPart does the job of hiding/unhiding connection links during collapse/expand.
--
Piotr
|
|
|
Powered by
FUDForum. Page generated in 0.03350 seconds