Bug 20717 [DND] Drag and Drop with Read-Only file opens strange message dialog
If the project has a read-only file, and if that file is drag & drop from Navigator view to other area.view, desktop opens the dialog that says "filename is read only. Do you still with to move it ?" I didn't move the file at all, so this message is wrong. i think no message should be opened because dropped area is not navigator.
bundles/org.eclipse.ui.views/src/org/eclipse/ui/views/navigator/NavigatorDragAdapter.java
package org.eclipse.ui.views.navigator;
/*
 * (c) Copyright IBM Corp. 2000, 2001.
 * All Rights Reserved.
 */
import java.util.*;
import org.eclipse.core.resources.*;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.swt.dnd.*;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.jface.viewers.*;
import org.eclipse.ui.actions.ReadOnlyStateChecker;
import org.eclipse.ui.part.ResourceTransfer;
/**
 * Implements drag behaviour when items are dragged out of the
 * resource navigator.
 * 
 * @since 2.0
 */
public class NavigatorDragAdapter extends DragSourceAdapter {
	ISelectionProvider selectionProvider;
	private static final String CHECK_MOVE_TITLE = ResourceNavigatorMessages.getString("DragAdapter.title"); 
	private static final String CHECK_MOVE_MESSAGE = ResourceNavigatorMessages.getString("DragAdapter.checkMoveMessage"); 
	/**
	 * Constructs a new drag adapter.