Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Change Click Resolution Sequence
Change Click Resolution Sequence [message #165505] Fri, 14 December 2007 18:49 Go to next message
Eclipse UserFriend
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 Go to previous message
Boris Blajer is currently offline Boris BlajerFriend
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
>
>
Previous Topic:How to get IPathmapManager reference?
Next Topic:newbie - gmf installation issue - wizards missing
Goto Forum:
  


Current Time: Tue Apr 23 15:01:10 GMT 2024

Powered by FUDForum. Page generated in 0.03011 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top