Bug 155272 - [Navigator] Add support for PluginTransfer drag/drop
Summary: [Navigator] Add support for PluginTransfer drag/drop
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Francis Upton IV CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-25 16:39 EDT by Chris Phillips CLA
Modified: 2019-09-06 16:18 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Phillips CLA 2006-08-25 16:39:35 EDT
ResourceNavigator.initDragAndDrop Line 779
Transfer[] transfers = new Transfer[] {
                LocalSelectionTransfer.getInstance(),
                ResourceTransfer.getInstance(), FileTransfer.getInstance(),
                PluginTransfer.getInstance() };
        TreeViewer viewer = getTreeViewer();
        viewer.addDragSupport(ops, transfers, new NavigatorDragAdapter(viewer));
Drag support is initiated withe support for "PluginTransfer".

NavigatorDragAdapter.dragSetData Line 121

Support is provided for all Transfer types except "PluginTransfer".  As a result the data is null and when it tries to drop on our editor which supports PluginTransfer SWT throws a nullpointer exception.
Comment 1 Eric Moffatt CLA 2006-08-30 15:34:50 EDT
Chris, is this a request to have the CommonNavigator support PluginTransfer? (I can't quite make out exactly what you're after from the comment...;-).
Comment 2 Chris Phillips CLA 2006-08-30 16:48:26 EDT
Sorry for not being clearer.  Basicly the Navigator View registers that it supports PluginTransfer with the viewer.addDragSupport() call.  However the NavigatorDragAdapter class (specifically the dragSetData function) doesn't support PluginTransfer.  This causes a nullpointer if you have a target (in our case a gef Editor) that does support PluginTransfer.  

We have worked around it for our product.
Comment 3 Eric Moffatt CLA 2007-06-21 15:18:20 EDT
Michael, I'm not sure if this is still an issue but you look like the best candidate to check.

Punt it back to me if this isn't relavent to you...
Comment 4 Francis Upton IV CLA 2009-01-29 01:54:50 EST
This is for the ResourceNavigator, not the CNF which does support the plugin transfer type.
Comment 5 Eclipse Webmaster CLA 2019-09-06 16:18:23 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.