Bug 134216 [regression] add a report item to library does not work properly
steps to reproduce: - create a library - add report items, say label - add 1st label - add 2nd laebl expected behavior: - everytime i drag a label to Outline->ReportItems, the label will be added actual behavior: - for the 1st label, it worked out fine - for the 2nd label, i had to drag a label twice to complete the operation note that this happened with other report items as well
UI/org.eclipse.birt.report.designer.ui.lib/src/org/eclipse/birt/report/designer/internal/lib/views/outline/dnd/LibraryDropListener.java
import org.eclipse.birt.report.designer.core.model.views.outline.ReportElementModel;
import org.eclipse.birt.report.designer.internal.lib.commands.SetCurrentEditModelCommand;
import org.eclipse.birt.report.designer.internal.ui.editors.schematic.extensions.GuiExtensionManager;
import org.eclipse.birt.report.designer.internal.ui.editors.schematic.tools.AbstractToolHandleExtends;
import org.eclipse.birt.report.designer.internal.ui.editors.schematic.tools.ReportCreationTool;
import org.eclipse.birt.report.designer.internal.ui.extension.ExtendedElementUIPoint;
import org.eclipse.birt.report.designer.internal.ui.extension.ExtensionPointManager;
import org.eclipse.birt.report.designer.internal.ui.palette.BasePaletteFactory;
import org.eclipse.birt.report.designer.internal.ui.palette.ReportElementFactory;
import org.eclipse.birt.report.designer.internal.ui.util.UIUtil;
import org.eclipse.birt.report.designer.internal.ui.views.outline.dnd.DesignerDropListener;
import org.eclipse.birt.report.model.api.DesignElementHandle;
import org.eclipse.birt.report.model.api.LibraryHandle;
import org.eclipse.birt.report.model.api.ModuleHandle;
import org.eclipse.gef.EditDomain;
import org.eclipse.jface.viewers.StructuredSelection;
import org.eclipse.jface.viewers.TreeViewer;
/**
 * Supports dropping elements to outline view.
 *  
 */
public class LibraryDropListener extends DesignerDropListener
{
	private static List supportList = new ArrayList( );
	static
	{
		supportList.add( IReportElementConstants.REPORT_ELEMENT_LABEL );
		supportList.add( IReportElementConstants.REPORT_ELEMENT_TEXT );
		supportList.add( IReportElementConstants.REPORT_ELEMENT_DATA );
		supportList.add( IReportElementConstants.REPORT_ELEMENT_GRID );