Bug 147020 Template reversion is not correct
Steps to reproduce: 1.New a table, add a data in table detail, convert it to a template report item 2.Bind the table with data set, double click the template report item Expected result: The template report item is reverted to data item first, "Select data binding" dialog pops up. Actual result: "Select data binding" dialog pops up. and no available column bindings listed. Please make sure the result of "Double click" is the same as context menu.
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/editors/schematic/editparts/PlaceHolderEditPart.java
import org.eclipse.birt.report.model.api.TextItemHandle;
import org.eclipse.birt.report.model.api.activity.NotificationEvent;
import org.eclipse.birt.report.model.api.activity.SemanticException;
import org.eclipse.birt.report.model.api.elements.DesignChoiceConstants;
import org.eclipse.draw2d.Figure;
import org.eclipse.draw2d.IFigure;
import org.eclipse.draw2d.LineBorder;
import org.eclipse.draw2d.PositionConstants;
import org.eclipse.gef.EditPolicy;
import org.eclipse.jface.dialogs.Dialog;
import org.eclipse.jface.viewers.TextCellEditor;
import org.eclipse.swt.graphics.Font;
import org.eclipse.swt.graphics.Image;
public class PlaceHolderEditPart extends ReportElementEditPart
{
	private DesignElementHandle copiedHandle;
	public PlaceHolderEditPart( Object model )
	{
		super( model );
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.birt.report.designer.internal.ui.editors.schematic.editparts.ReportElementEditPart#notify(org.eclipse.birt.model.core.DesignElement,
	 *      org.eclipse.birt.model.activity.NotificationEvent)
	 */
	public void elementChanged( DesignElementHandle arg0, NotificationEvent arg1 )
	{
		markDirty( true );
		refreshVisuals( );