Bug 185500 [Common Navigator] DND allows to Drop Projects on Projects but shows error
Build ID: I20070323-1616 Steps To Reproduce: 1. Select a Project in Project Explorer 2. Drag & Drop it on another project 3. Error Dialog is shown: Error message "Problems occurred moving the selected resources: Path for project must have only one segment. Path for project must have only one segment." More information: The original problem is that this is not handled correctly by CopyFilesAndFoldersOperation (e.g. MoveFilesAndFoldersOperation) .validateDestination(..) It only shows in the Project Explorer, as it allows dragging of Projects (other project viewers don't so they don't run into this). I've created a patch for this that simply checks in method "validateDrop" if a project is dropped on another resource and returns Status.ERROR.
bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/internal/navigator/resources/plugin/WorkbenchNavigatorMessages.java
public static String DropAdapter_title;
	
	public static String DropAdapter_problemImporting;
	
	public static String DropAdapter_problemsMoving;
	
	public static String DropAdapter_targetMustBeResource;
	
	public static String DropAdapter_canNotDropIntoClosedProject;
	
	public static String DropAdapter_resourcesCanNotBeSiblings;
	
	public static String DropAdapter_dropOperationErrorOther;
	
	
	public static String MoveResourceAction_title;
	
	public static String MoveResourceAction_checkMoveMessage;
	public static String WorkingSetRootModeActionGroup_Top_Level_Element_;
	public static String WorkingSetRootModeActionGroup_Project_;
	public static String WorkingSetRootModeActionGroup_Working_Set_;
	public static String CopyAction_Cop_;
	public static String CopyAction_Copy_selected_resource_s_;
	public static String PasteAction_Past_;
	public static String PasteAction_Paste_selected_resource_s_;
	static {
		initializeMessages(BUNDLE_NAME, WorkbenchNavigatorMessages.class);
	}
}