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.navigator/src/org/eclipse/ui/tests/navigator/NavigatorTestBase.java
import org.eclipse.ui.tests.navigator.extension.TestResourceContentProvider;
import org.eclipse.ui.tests.navigator.util.TestWorkspace;
public class NavigatorTestBase extends TestCase {
	public static final String COMMON_NAVIGATOR_RESOURCE_EXT = "org.eclipse.ui.navigator.resourceContent"; 
	public static final String COMMON_NAVIGATOR_JAVA_EXT = "org.eclipse.jdt.java.ui.javaContent"; 
	public static final String COMMON_NAVIGATOR_TEST_EXT = "org.eclipse.ui.tests.navigator.testContent"; 
	public static final String TEST_CONTENT = "org.eclipse.ui.tests.navigator.testContent";
	public static final String TEST_CONTENT1 = "org.eclipse.ui.tests.navigator.testOverriddenContent1";
	public static final String TEST_CONTENT2 = "org.eclipse.ui.tests.navigator.testOverriddenContent2";
	public static final String TEST_OVERRIDE1= "org.eclipse.ui.tests.navigator.testOverride1";
	public static final String TEST_OVERRIDE2 = "org.eclipse.ui.tests.navigator.testOverride2";
	public static final String TEST_SORTER_CONTENT = "org.eclipse.ui.tests.navigator.testSorterContent";
	public static final String TEST_DROP_COPY_CONTENT = "org.eclipse.ui.tests.navigator.testDropCopy";
	
	protected String _navigatorInstanceId;
	protected Set _expectedChildren = new HashSet();
	protected IProject _project;
	protected IProject _p1;
	protected IProject _p2;
	protected static final int _p1Ind = 0;
	protected static final int _p2Ind = 1;
	protected static final int _projectInd = 2;
	
	protected static int _projectCount;
	
	protected CommonViewer _viewer;
	protected CommonNavigator _commonNavigator;
	protected INavigatorContentService _contentService;
	protected NavigatorActionService _actionService;
	protected boolean _initTestData = true;