Change Click Resolution Sequence [message #165505] |
Fri, 14 December 2007 18:49 |
Eclipse User |
|
|
|
Originally posted by: jdente.21technologies.com
Hi,
Does anybody know how to change the order in which click-events are resolved
on a GMF diagram?
My diagram has square nodes that each have compartments filled with
different labels. If I want to edit one of the labels inside a compartment,
I need to click on the label 3 times. The first click selects the node, the
second click selects the label, and finally the third click brings up a
cursor to edit the label. I'd like to change it so that the first click
will select / edit a label, if it collides with a label. If it misses a
label (selects elsewhere in the node or container), then it will select the
square node.
Can anybody share some insight?
Thanks,
Joe
|
|
|
Re: Change Click Resolution Sequence [message #165529 is a reply to message #165505] |
Sat, 15 December 2007 12:36 |
Boris Blajer Messages: 217 Registered: July 2009 |
Senior Member |
|
|
Hi Joe,
Override isSelectable() for the label edit part to always return true.
Currently the label is not selectable if the selection is not on its
parent, thus the first click is delegated to the parent node.
Best regards,
Boris
Joe Dente wrote:
> Hi,
>
> Does anybody know how to change the order in which click-events are resolved
> on a GMF diagram?
>
> My diagram has square nodes that each have compartments filled with
> different labels. If I want to edit one of the labels inside a compartment,
> I need to click on the label 3 times. The first click selects the node, the
> second click selects the label, and finally the third click brings up a
> cursor to edit the label. I'd like to change it so that the first click
> will select / edit a label, if it collides with a label. If it misses a
> label (selects elsewhere in the node or container), then it will select the
> square node.
>
> Can anybody share some insight?
>
> Thanks,
> Joe
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03011 seconds