[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.gef] Re: Reacting on single-click

Hello,

regarding one part of the question below - I found the methods on SelectionRequest with which you can check keys - is???KeyPressed. But they always return false (I'm on Eclipse 3.0.0 & gtk).

-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