Bug 120293 There is no response when I drag an embedded image from library explorer into outline view.
Description: There is no response when I drag an embedded image from library explorer into outline view. Steps to reproduce: 1. Use a library in a report. 2. Drag an embedded image from library explorer into outline view. There is no response. It doesn't take effect.
UI/org.eclipse.birt.report.designer.core/src/org/eclipse/birt/report/designer/util/DNDUtil.java
import org.eclipse.birt.report.model.api.core.IStructure;
import org.eclipse.birt.report.model.api.elements.ReportDesignConstants;
import org.eclipse.birt.report.model.api.elements.structures.EmbeddedImage;
import org.eclipse.gef.commands.Command;
import org.eclipse.gef.commands.CompoundCommand;
import org.eclipse.jface.viewers.StructuredSelection;
/**
 * Useful utility in Drag and Drop or Copy and Paste.
 */
public class DNDUtil
{
	public static final String TYPE_CUT = "CUT"; 
	public static final String TYPE_COPY = "COPY"; 
	
	public static final int CONTAIN_NO = 0;
	
	public static final int CONTAIN_THIS = 1;
	
	public static final int CONTAIN_PARENT = 2;
	/**
	 * Moves elements. Like paste, but transfer data will be deleted.Includes
	 * transaction.
	 * 
	 * @param transferData
	 *            single or multiple transfer data, every data must be an
	 *            instance of <code>DesignElementHandle</code> or
	 *            <code>DesignElement</code>
	 * @param container
	 *            container, class type could be
	 *            <code>DesignElementHandle</code>,<code>SlotHandle</code>