Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » DnD - PluginTransfer to Navigator View
DnD - PluginTransfer to Navigator View [message #145596] Fri, 17 October 2003 06:55 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
>
>
Previous Topic:Plugin Classloading changes between 3.0M3 and 3.0M4?
Next Topic:how to call a custom documentbuilder (saxon)
Goto Forum:
  


Current Time: Wed May 07 05:16:13 EDT 2025

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

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

Back to the top