Bug 155272

Summary: [Navigator] Add support for PluginTransfer drag/drop
Product: [Eclipse Project] Platform Reporter: Chris Phillips <chrisph>
Component: UIAssignee: Francis Upton IV <francisu>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3    
Version: 3.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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.