Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » double click event on GraphicalViewer?
double click event on GraphicalViewer? [message #177925] Fri, 15 April 2005 18:43 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: double click event on GraphicalViewer? [message #177965 is a reply to message #177925] Fri, 15 April 2005 20:32 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

http://www.eclipse.org/gef/developer/faq.html?cvsroot=Tools_ Project#code_doubleclick
Previous Topic:Refreshing Console View
Next Topic:GridLayer & GuideLayer
Goto Forum:
  


Current Time: Thu Apr 25 13:42:02 GMT 2024

Powered by FUDForum. Page generated in 0.02658 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top