DnD - PluginTransfer to Navigator View [message #145596] |
Fri, 17 October 2003 06:55  |
Eclipse User |
|
|
|
Originally posted by: sturmovik_MRZIM_SPAM.vip.hr
I read the article "Drag and Drop in the Eclipse UI" by John Arthorne,
and I did all neccessary work stated there:
- defined an extension on the "org.eclipse.ui.dropActions" extension point
- created my drop adapter class implementing
"org.eclipse.ui.part.IDropActionDelegate"
(for start it does nothing, just notifies me that it's run() method has
been called)
- set the event.data = new PluginTransferData(myDropAdapterID, someData) in
dragSetData() method in source viewers's drag listener;
....but when I try to drag from my plugin's view and drop into Resoure
Navigator view, I get a "drop forbidden sign".
Am I missing something?
Thanks in advance,
Valter
|
|
|
Re: DnD - PluginTransfer to Navigator View [message #147979 is a reply to message #145596] |
Wed, 22 October 2003 17:58  |
Eclipse User |
|
|
|
Originally posted by: John_Arthorne.oti.com_
When you call viewer.addDragSupport, do you pass the instance of
org.eclipse.ui.part.PluginTransfer as one of the transfer types? See
the first paragraph of "Step 3" in the article. Note that the article
includes complete source with a working example. The UI "readme"
example (available as a separate download from eclipse.org downloads
page), also has an example of using plugin transfer.
--
Valter wrote:
> I read the article "Drag and Drop in the Eclipse UI" by John Arthorne,
> and I did all neccessary work stated there:
> - defined an extension on the "org.eclipse.ui.dropActions" extension point
> - created my drop adapter class implementing
> "org.eclipse.ui.part.IDropActionDelegate"
> (for start it does nothing, just notifies me that it's run() method has
> been called)
> - set the event.data = new PluginTransferData(myDropAdapterID, someData) in
> dragSetData() method in source viewers's drag listener;
>
> ...but when I try to drag from my plugin's view and drop into Resoure
> Navigator view, I get a "drop forbidden sign".
>
> Am I missing something?
>
> Thanks in advance,
> Valter
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02964 seconds