Bug 153517 The DND of embeddedimage from lib explorer to outline view doesn'w work when the report in outline has used the lib
If the report in outline view has used a library, then drag and drop an embeddedimage of the used library from lib explorer to outline view doesn't work. The DND drop nothing onto the embedded image of the target report. Steps to reproduce: 1.Create a library with an embeddediamge and export to resource folder; 2.Create a new report design; 3.Drag the embeddedimage of lib from lib explorer to outline view;
UI/org.eclipse.birt.report.designer.core/src/org/eclipse/birt/report/designer/util/DNDUtil.java
import org.eclipse.birt.report.model.api.elements.ReportDesignConstants;
import org.eclipse.birt.report.model.api.elements.structures.EmbeddedImage;
import org.eclipse.birt.report.model.api.elements.structures.ResultSetColumn;
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>