Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Dumb questions on TreeView
Dumb questions on TreeView [message #50364] Wed, 18 December 2002 13:42 Go to next message
John Howard is currently offline John HowardFriend
Messages: 83
Registered: July 2009
Member
I want to trap mouseDoubleClick events in the outline view. I know how to
do this with the JFace TreeViewer, but I have no idea how to accomplish the
same task with the GEF TreeViewer.

Spent half the day trying to figure this out, but so far got nowhere.

Thanks,

John.
Re: Dumb questions on TreeView [message #50426 is a reply to message #50364] Wed, 18 December 2002 17:14 Go to previous message
Eclipse UserFriend
Originally posted by: hudsonr.us.eye-bee-em.com

Same as in the GraphicalViewer. The tree EditPart is asked for a
DragTracker on mouse down. DragTrackers should *NOT* be used to drag or even
to select the EditPart in the Tree, since the native tree will handle the
selection already. Dragging in the tree should be done using native
drag-and-drop. See the logic editor for an example. We switched to use
native drag-and-drop in the native Tree because SWT will cause auto-scroll
and auto-expand to happen for "free".

So, subclass AbstractTool, implement the DragTracker interface, and then
override handleDoubleClick(int button). Return this as the dragTracker for
your TreeEditPart.

"John Howard" <john.howard9@btinternet.com> wrote in message
news:atptk9$qi6$1@rogue.oti.com...
> I want to trap mouseDoubleClick events in the outline view. I know how to
> do this with the JFace TreeViewer, but I have no idea how to accomplish
the
> same task with the GEF TreeViewer.
>
> Spent half the day trying to figure this out, but so far got nowhere.
>
> Thanks,
>
> John.
>
>
Previous Topic:Again Layers
Next Topic:any news about overview pane?
Goto Forum:
  


Current Time: Sun Jun 30 13:50:51 GMT 2024

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

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

Back to the top