[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.newcomer] Re: Binding Commands to Mouse Events

Tarlog,

I don't think that makes a lot of sense. Generally the mouse will do something based on what it's clicked on, so each control decides that. Listeners for mouse events will only get notified when the mouse event happens for/on that control, i.e., only happens for the control on top of the z-order under the mouse location (I think).


tarlog wrote:
Hi,

I'm writing a plugin that binds some commands to the keys. I wonder if I can also bind these commands to a mouse events?
Foe example I want a command to be invoked when user holds ALT+right click on the mouse.


I tried to add a Listener to a Display, but it appears that Eclipse ignores listeners that are added by plugins.

Thanks,
Tarlog.