Bug 44150 No Drag and Drop of .class files from Package Explorer
I am working on a GEF application that supports drag and drop of Java classes from the Package Explorer. With source code (.java files) this works fine, but when I try to drag a compiled class (.class from a JAR withtin a project) it seems that the drag doesn't even get initiated. It is possibly, however, to open .class file within an Editor (e.g. with a doubleclick). I think this behavior is inconsistent and it should be possible to initiate a drag for a .class file just like a .java file since both end up in an IType.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/SelectionTransferDragAdapter.java
public SelectionTransferDragAdapter(ISelectionProvider provider) {
		super(provider);
	}
	protected boolean isDragable(ISelection selection) {
		if (selection instanceof IStructuredSelection) {
			for (Iterator iter= ((IStructuredSelection)selection).iterator(); iter.hasNext();) {
				Object element= iter.next();
				if (element instanceof IJavaElement) {
					IPackageFragmentRoot root= (IPackageFragmentRoot)((IJavaElement)element).getAncestor(IJavaElement.PACKAGE_FRAGMENT_ROOT);
					if (root != null && root.isArchive() && root.isExternal())
						return false;
				}
			}
			return true;
		}
		return false;
	}
}