|
Re: Dumb questions on TreeView [message #50426 is a reply to message #50364] |
Wed, 18 December 2002 17:14 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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.
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03483 seconds