DnD for multiple TransferTypes [message #329430] |
Tue, 24 June 2008 03:53 |
Eclipse User |
|
|
|
Originally posted by: daniel-p.gmx.de
Hi all,
we are currently trying to implement drag & drop for one of ours Eclipse
plugins. The plugin provides a view, which contains a tree to represent
different elements A,B,C,D,E,F see below. Thereby, elements A to C are
defined in the plugin in which also the tree viewer is defined. Element
D,E and F are provided by a third party plugin. Now we would like
reposition elements of type C within the tree (e.g. drag C1 and drop it
on B1, so B1 is the new parent of C1). But it should also be possible to
drag elements of type C on elements of type E (e.g. drag C2 and drop it
on E1, that should result in a new element of type F and C2 remains
where it was).
Can anybode give me a starting point how to implement this (e.g. use
different TransferTypes or only PluginTransfer, using the
org.eclipse.ui.dropActions extension point or not). The main issue is,
that elements D,E and F are provided by a third party plugin and I have
to examin the context of the drop, i.e. wher is an element dropped in
order to create a new elements or move the original one.
A
|-B1
|-B2
|-B3
| |-C1
| |-C2
|
|-D1
|-E1
|-E2
|-F1
Thanks,
Daniel
|
|
|
Powered by
FUDForum. Page generated in 0.02518 seconds