Bug 313761 [Viewers][doc] ViewerDropAdapter.getSelectedObject impl doesn't match javadoc
Build Identifier: 20100218-1602 The doc comment of ViewerDropAdapter.getSelectedObject() says that the method returns null in case multiple objects are selected. In fact, its implementation checks only whether there is AT LEAST ONE selected object. Reproducible: Always
bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/ViewerDropAdapter.java
currentOperation = DND.DROP_NONE;
        currentEvent = null;
    }
    /* (non-Javadoc)
     * Method declared on DropTargetAdapter.
     * Last chance for the action to disable itself
     */
    public void dropAccept(DropTargetEvent event) {
    	currentEvent = event;
    	if (!validateDrop(currentTarget, event.detail, event.currentDataType)) {
            currentOperation = event.detail = DND.DROP_NONE;
        }
    	currentEvent = null;
    }
    /**
     * Returns the bounds of the given SWT tree or table item.
     *
     * @param item the SWT Item
     * @return the bounds, or <code>null</code> if it is not a known type of item
     */
    protected Rectangle getBounds(Item item) {
        if (item instanceof TreeItem) {
            return ((TreeItem) item).getBounds();
        }
        if (item instanceof TableItem) {
            return ((TableItem) item).getBounds(0);
        }
        return null;