Bug 72297 [DnD] ViewerDropAdapter impossible to set DND.FEEDBACK_NONE
It is not possible to disable selection feedback in ViewerDropAdapter. There are setFeedbackEnabled(false) and setScrollExpandEnabled(false) methods to turn off the feedback effects. If those methods are used, selection feedback still provided. It is not possible to turn it off, elements are still selected when drag is over them. Overriding method; private void setFeedback(DropTargetEvent event, int location) { event.feedback = DND.FEEDBACK_NONE; } - does not chenge the feedback either. setFeedbackEnabled() should be extended to disable SELECTION feedback or new method created, setSelectionFeedback().
bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/ViewerDropAdapter.java
* are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.jface.viewers;
import org.eclipse.swt.dnd.DND;
import org.eclipse.swt.dnd.DropTargetAdapter;
import org.eclipse.swt.dnd.DropTargetEvent;
import org.eclipse.swt.dnd.TransferData;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.graphics.Rectangle;
import org.eclipse.swt.widgets.Item;
import org.eclipse.swt.widgets.TableItem;
import org.eclipse.swt.widgets.TreeItem;
/**
 * This adapter class provides generic drag-and-drop support for a viewer.
 * <p>
 * Subclasses must implement the following methods:
 * <ul>
 *   <li><code>validateDrop</code> - identifies valid drop targets in viewer</li>
 *   <li><code>performDrop</code> - carries out a drop into a viewer</li>
 * </ul>
 * The <code>setFeedbackEnabled</code> method can be called to turn on and off 
 * visual insertion feedback (on by default).
 * </p>
 */
public abstract class ViewerDropAdapter extends DropTargetAdapter {