Bug 157506 [CommonNavigator] Can't Drop an External File into Project Explorer (Mac and Linux)
Opened for IBM: This is a linux only issue that happens both in RedHat and SLES. Windows is fine. Problem: User can't drag and drop files into the Project Explorer view Expected results: User should be able to drag and drop files into the Project Explorer view Steps: Go to the j2ee perspective (or open the PE view) Create a new general project (note that this issue will happen with any project) Open the Linux File Browser and attempt to drag and drop any file (I'm using a simple text file) from your system into the newly created project in the workbench Result: The file is not added to the project. Doing the same in the Navigator view or Package Explorer view works fine.
bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/navigator/CommonDropAdapter.java
public Object getCurrentTarget() {
		return super.getCurrentTarget();
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.ui.part.PluginDropAdapter#getCurrentTransfer()
	 */
	public TransferData getCurrentTransfer() {
		return super.getCurrentTransfer();
	}
	
    /**
     * Returns the position of the given event's coordinates relative to its target.
     * The position is determined to be before, after, or on the item, based on
     * some threshold value.
     *
     * @param event the event
     * @return one of the <code>LOCATION_* </code>constants defined in this class
     */
    protected int determineLocation(DropTargetEvent event) {
        if (!(event.item instanceof Item)) {
            return LOCATION_NONE;
        }
        Point coordinates = new Point(event.x, event.y);
        coordinates = getViewer().getControl().toControl(coordinates);
        return LOCATION_ON;
    }
}