double click event on GraphicalViewer? [message #177925] |
Fri, 15 April 2005 18:43  |
Eclipse User |
|
|
|
Originally posted by: christian.sell.netcologne.de
Hello,
is there a way to trap double click events on a GraphicalViewer? So far,
all I could find was a selection event, but no way to distinguish double
clicks..
TIA,
chris
|
|
|
Re: double click event on GraphicalViewer? [message #177933 is a reply to message #177925] |
Fri, 15 April 2005 19:14   |
Eclipse User |
|
|
|
Originally posted by: gslade.no.spam.us.ibm.com
A double click comes through to an edit part as an open request. You can
capture it in your edit part in your perform request implementation.
public void performRequest(Request request){
if (request.getType() == RequestConstants.REQ_OPEN) {
// double click event
OpenAction.runDefault(getEditor());
}
}
Guy
Christian Sell wrote:
> Hello,
>
> is there a way to trap double click events on a GraphicalViewer? So far,
> all I could find was a selection event, but no way to distinguish double
> clicks..
>
> TIA,
> chris
|
|
|
|
Powered by
FUDForum. Page generated in 0.01560 seconds