Daniel Lucraft
unread,Nov 22, 2009, 8:08:27 AM11/22/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.