Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Double Clicking on TreeEditPart
Double Clicking on TreeEditPart [message #182426] Tue, 24 May 2005 21:30 Go to next message
Eclipse UserFriend
Originally posted by: Angel.Roman.prismtech.com

Hi Everyone,

Is there a way to capture a REQ_OPEN on a tree edit part? Basically, I
would like to show a dialog when a tree edit part is double clicked.

Thanks in advance,
Angel
Re: Double Clicking on TreeEditPart [message #182630 is a reply to message #182426] Wed, 25 May 2005 23:58 Go to previous message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
Just add a mouse listener to the tree that will pass an open request to the
tree viewer's selected editpart. Or have your TreeEditPart return a
barebones DragTracker from its getDragTracker() method that does the same in
its mouseDoubleClick() method (although this might have some other
repercussions). To see how that would work, set a breakpoint in
TreeViewer.EventDispatcher#mouseDoubleClicked() and follow the trail.

"Angel Roman" <Angel.Roman@prismtech.com> wrote in message
news:d706i5$u69$1@news.eclipse.org...
> Hi Everyone,
>
> Is there a way to capture a REQ_OPEN on a tree edit part? Basically, I
> would like to show a dialog when a tree edit part is double clicked.
>
> Thanks in advance,
> Angel
Previous Topic:How to resize ScrollableThumbnail
Next Topic:Creating something that is immediately available in DirectEdit mode
Goto Forum:
  


Current Time: Tue Dec 03 09:42:14 GMT 2024

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

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

Back to the top