Bug 192355 [acceptance]Fail to drag xtab from Palette to Outline in Library.[01]
Description: Fail to drag xtab from Palette to Outline in Library. Build number:2.2.0.v20070613 Steps to reproduce: 1. New a library file. 2. Drag crosstab from Palette to Outline->Report Items. Expected result: Crosstab can be dragged to outline as other items do. Actual result: Step2 is forbidden in UI. Error log:n/a
xtab/org.eclipse.birt.report.item.crosstab.ui/src/org/eclipse/birt/report/item/crosstab/internal/ui/CreateCrosstabHandler.java
import org.eclipse.birt.report.designer.core.model.schematic.HandleAdapterFactory;
import org.eclipse.birt.report.designer.internal.ui.util.UIUtil;
import org.eclipse.birt.report.designer.nls.Messages;
import org.eclipse.birt.report.designer.ui.newelement.DesignElementFactory;
import org.eclipse.birt.report.designer.util.DEUtil;
import org.eclipse.birt.report.designer.util.DNDUtil;
import org.eclipse.birt.report.model.api.DesignElementHandle;
import org.eclipse.birt.report.model.api.ExtendedItemHandle;
import org.eclipse.birt.report.model.api.LibraryHandle;
import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.core.expressions.IEvaluationContext;
import org.eclipse.gef.EditPart;
import org.eclipse.gef.requests.CreateRequest;
/**
 * 
 */
public class CreateCrosstabHandler extends AbstractHandler
{
	private static String itemName = "Crosstab";
	public Object execute( ExecutionEvent event ) throws ExecutionException
	{
		SessionHandleAdapter.getInstance( )
				.getReportDesignHandle( )
				.getCommandStack( )
				.startTrans( Messages.getString( "InsertAction.text" ) ); 
		ExtendedItemHandle handle = null;
		handle = DesignElementFactory.getInstance( ).newExtendedItem( null,
				itemName );