Drag&Drop with unknown source [message #490461] |
Thu, 08 October 2009 17:32 |
Eclipse User |
|
|
|
Originally posted by: formatzeh.gmx.de
I want to add DnD in my RCP app for a specific view as drop target. But
as you can imagine there can be several other views containing objects I
of the same type which I want to let dropped into my view. So I don't
know the drag source. But if I drag an object from another view, for
example from a SVN repository view, the mouse pointer changes what let's
me believe that 'anonymous' dragging is possible. So I have to check in
my drop target anyhow if the type of the dragged object is correct and
if true it can be dropped. Is it possible anyhow?
|
|
|
|
Re: Drag&Drop with unknown source [message #491729 is a reply to message #490637] |
Thu, 15 October 2009 15:05 |
Eclipse User |
|
|
|
Originally posted by: formatzeh.gmx.de
I think I have to tell something more about my structure. My drop target
should be a view which is a org.eclipse.ui.navigator.CommonNavigator.
And this view should act as drop target for elements dragged from other
views. With the extension point org.eclipse.ui.navigator.viewer I
referenced a viewerContentBinding. In this contentBinding - specified at
the extension point org.eclipse.ui.navigator.navigatorContent - I set
java.lang.Object as triggerPoints, possibleChildren and as
possibleDropTargets in a dropAssistant. But it does not react on dragged
elements from other views (for example an svn repository view). The
point is that if I drag an element from another view my the
CommonNavigator won't be activated when hovering it.
Any ideas?
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.24536 seconds