Anyone have experience in Drag and Drop with SWT tabs?

28 views
Skip to first unread message

Daniel Lucraft

unread,
Nov 22, 2009, 8:08:27 AM11/22/09
to Redcar
Hi

I've been playing with implementing Drag and Drop for the tabs in
notebooks (you can see the result in plugins/application_swt/lib/
application_swt/notebook/drag_and_drop_listener.rb). It sort of kind
of works, if you only drag within one notebook. (It doesn't actually
keep the content of the tabs when you drop them, but it's an outline
of how it should work.)

It needs two things, really:

1. Drag and drop between notebooks.
2. Visual feedback on the drag operation.

I don't have any idea where to start with either of them. I can't even
find the implementation of how eclipse does them. Can anyone help?

Dan

PS. I believe I will need to define some kind of 'data' 'transfer'
'type' to make tabs serializable or something. I'm going to have to do
something similar for what I'm working on now anyway, which is support
for multiple panes. But until someone can help with drag and drop you
will only be able to move tabs between notebooks with keybindings.

Reply all
Reply to author
Forward
0 new messages