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
/*******************************************************************************
 * Copyright (c) 2000, 2004 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials 
 * are made available under the terms of the Common Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/cpl-v10.html
 * 
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.jdt.internal.ui.packageview;
import java.util.Iterator;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.ISelectionProvider;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jdt.core.IJavaElement;
import org.eclipse.jdt.core.IPackageFragmentRoot;
import org.eclipse.jdt.internal.ui.dnd.BasicSelectionTransferDragAdapter;
public class SelectionTransferDragAdapter extends BasicSelectionTransferDragAdapter {