Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » DnD for multiple TransferTypes
DnD for multiple TransferTypes [message #329430] Tue, 24 June 2008 03:53
Eclipse UserFriend
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
Previous Topic:how to decorate the console color
Next Topic:showPerspective send a "invalid access thread"
Goto Forum:
  


Current Time: Mon May 12 10:03:46 EDT 2025

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

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

Back to the top