Bug 24143 [DND] Incorrect javadoc for NavigatorDragAdapter
Build 20020924 The javadoc that is generated for NavigatorDragAdapter (look in reference section of online help), looks like this: void dragFinished(DragSourceEvent event) This implementation of dragFinished does nothing. void dragSetData(DragSourceEvent event) This implementation of dragSetData does nothing. void dragStart(DragSourceEvent event) This implementation of dragStart permits the drag operation to This javadoc is incorrect. It has been copied from the generic superclass DragSourceAdapter. I guess we need to override the javadoc for API classes in cases where the implementation differs significantly from the superclass. There are probably many more examples of this throughout the UI.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/NavigatorDragAdapter.java
IResource[] resources = getSelectedResources(typeMask);
            
            
            if (resources == null) {
				return;
			}
            for (int i = 0; i < resources.length; i++) {
                try {
                    resources[i].refreshLocal(IResource.DEPTH_INFINITE, null);
                } catch (CoreException e) {
                    e.printStackTrace();
                }
            }
        }
    }
    /*
     * @see DragSourceListener#dragSetData(org.eclipse.swt.dnd.DragSourceEvent)
     */
    public void dragSetData(DragSourceEvent event) {
        final int typeMask = IResource.FILE | IResource.FOLDER;
        IResource[] resources = getSelectedResources(typeMask);
        if (resources == null || resources.length == 0) {
			return;
		}
        lastDataType = event.dataType;
        
        if (LocalSelectionTransfer.getInstance()
                .isSupportedType(event.dataType)) {
            event.data = LocalSelectionTransfer.getInstance().getSelection();
            return;