|
Re: binding to mouse input [message #767231 is a reply to message #765699] |
Sat, 17 December 2011 11:39 |
valentin Mising name Messages: 38 Registered: December 2011 |
Member |
|
|
A response from paulweb515: Quote:you can't.
The best you can get in the latest eclipse is the left and right mouse buttons on 5-button mice are bound to ALT+LEFT and ALT+RIGHT
I have achieved the goal by
textWidget.addMouseListener(new MouseAdapter() {
OpenDeclarationAction openDeclaration = new OpenDeclarationAction();
public void mouseDown(MouseEvent e) {
if (e.stateMask == SWT.CTRL && e.button == 1)
openDeclaration.run(null);
}
});
Yet, there seems is even better option: hyperlink detectors
[Updated on: Tue, 27 December 2011 17:58] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.08599 seconds