| [news.eclipse.tools.gef] Re: Reacting on single-click |
Hello,
-i
Iwan Vosloo wrote:
Hello,
I have a typical graphical editor and want to open A view (say viewA) when a user double-clicks on a node (This part solved from the FAQ), and another view (say viewB) when a user just clicks on a node. (Or alternatively double-clicks with shift held in).
I like handling opening of the views in EditPart.performRequest(...) as recommended in the FAQ for double clicks, since it is not a command that edits the model.
So, the question is - where do I listen for a single click event, or, how can I check the status of control keys (like shift) at the time of a double-click from the mouse?
Thank -i