Bug 185569 [CommonNavigator] CommonDragAdapter should provide ways for CommonDragAdapterAssistant to perform clean up after drag has finished
Build ID: M20070212-1330 Steps To Reproduce: I am not sure if this has been fixed in later releases (I am currently working with 3.2.0). The CommonDragAdapter class used by CommonNavigator does not allow CommonDragAdapterAssistant contributions to perform clean up after drag has finished. In my version of CommonDragAdapter, its dragFinished method contains comments saying // TODO Handle clean up if drop target was outside of workbench that's why I am not sure if later versions have already addressed this issue. More information:
tests/org.eclipse.ui.tests.harness/src/org/eclipse/ui/tests/harness/util/SWTEventHelper.java
}
	public static void pressKeyCode(Display display, int keyCode,
			boolean runEventQueue) {
		keyCodeDown(display, keyCode, runEventQueue);
		keyCodeUp(display, keyCode, runEventQueue);
	}
	public static void pressKeyCodeCombination(Display display, int[] keyCodes) {
		pressKeyCodeCombination(display, keyCodes, true);
	}
	public static void pressKeyCodeCombination(Display display, int[] keyCodes,
			boolean runEventQueue) {
		for (int i = 0; i < keyCodes.length; i++)
			keyCodeDown(display, keyCodes[i], runEventQueue);
		for (int i = keyCodes.length - 1; i >= 0; i--)
			keyCodeUp(display, keyCodes[i], runEventQueue);
	}
	public static void keyCodeDown(Display display, int keyCode) {
		keyCodeEvent(display, SWT.KeyDown, keyCode, true);
	}
	public static void keyCodeDown(Display display, int keyCode,
			boolean runEventQueue) {
		keyCodeEvent(display, SWT.KeyDown, keyCode, runEventQueue);
	}
	public static void keyCodeUp(Display display, int keyCode) {
		keyCodeEvent(display, SWT.KeyUp, keyCode, true);
	}
	public static void keyCodeUp(Display display, int keyCode,
			boolean runEventQueue) {
		keyCodeEvent(display, SWT.KeyUp, keyCode, runEventQueue);
	}