Bug 154001 In library, Insert In Layout will not display table in library Layout
Description: In library, Insert In Layout will not display table in library Layout Steps to reproduce: 1. New a library file 2. New data source and dataset 3. Select the dataset, right click and click Insert In Layout Expected result: A table appears in Layout Actual result: Nothing changed in Layout but the table is inserted in Outline.
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/views/actions/InsertInLayoutAction.java
*******************************************************************************/
package org.eclipse.birt.report.designer.internal.ui.views.actions;
import java.util.HashMap;
import org.eclipse.birt.report.designer.core.DesignerConstants;
import org.eclipse.birt.report.designer.core.commands.CreateCommand;
import org.eclipse.birt.report.designer.core.model.SessionHandleAdapter;
import org.eclipse.birt.report.designer.core.model.schematic.ListBandProxy;
import org.eclipse.birt.report.designer.internal.ui.dnd.InsertInLayoutUtil;
import org.eclipse.birt.report.designer.internal.ui.util.ExceptionHandler;
import org.eclipse.birt.report.designer.internal.ui.util.Policy;
import org.eclipse.birt.report.designer.internal.ui.util.UIUtil;
import org.eclipse.birt.report.designer.nls.Messages;
import org.eclipse.birt.report.model.api.CommandStack;
import org.eclipse.birt.report.model.api.activity.SemanticException;
import org.eclipse.gef.EditPart;
import org.eclipse.gef.EditPartViewer;
import org.eclipse.jface.viewers.IStructuredSelection;
/**
 * Action to insert object to layout.
 * <p>
 * Can use run() method of instance or use static method
 * <code>insertSingleInsert()</code> to new a object
 * <p>
 */
public class InsertInLayoutAction extends AbstractViewAction
{
	public static final String DISPLAY_TEXT = Messages.getString( "InsertInLayoutAction.action.text" ); 
	private EditPart targetPart;
	/**
	 * Constructor. Uses DISPLAY_TEXT as default text.