Bug 136821 Data can't be added to master page
Steps to reproduce: 1.Drag a data from palette to master page header Expected result: The data is added into master page header Actual result: org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.ClassCastException) at org.eclipse.swt.SWT.error(SWT.java:3374) at org.eclipse.swt.SWT.error(SWT.java:3297) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:126) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3323) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2969) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:169) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336) at org.eclipse.core.launcher.Main.basicRun(Main.java:280) at org.eclipse.core.launcher.Main.run(Main.java:977) at org.eclipse.core.launcher.Main.main(Main.java:952) Caused by: java.lang.ClassCastException at org.eclipse.birt.report.designer.util.DEUtil.getBindingHolder(DEUtil.java:1895) at org.eclipse.birt.report.designer.util.DEUtil.getBindingHolder(DEUtil.java:1892) at org.eclipse.birt.report.designer.util.DEUtil.getVisiableColumnBindingsList(DEUtil.java:1861) at org.eclipse.birt.report.designer.util.DEUtil.getVisiableColumnBindingsList(DEUtil.java:1838) at org.eclipse.birt.report.designer.ui.dialogs.ColumnBindingDialog$1.getElements(ColumnBindingDialog.java:112) at org.eclipse.jface.viewers.StructuredViewer.getRawChildren(StructuredViewer.java:920) at org.eclipse.jface.viewers.TableViewer.getRawChildren(TableViewer.java:1269) at org.eclipse.jface.viewers.StructuredViewer.getFilteredChildren(StructuredViewer.java:861) at org.eclipse.jface.viewers.StructuredViewer.getSortedChildren(StructuredViewer.java:977) at org.eclipse.jface.viewers.TableViewer.internalRefreshAll(TableViewer.java:870) at org.eclipse.jface.viewers.TableViewer.internalRefresh(TableViewer.java:818) at org.eclipse.jface.viewers.TableViewer.internalRefresh(TableViewer.java:807) at org.eclipse.jface.viewers.StructuredViewer$7.run(StructuredViewer.java:1359) at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1294) at org.eclipse.jface.viewers.CheckboxTableViewer.preservingSelection(CheckboxTableViewer.java:295) at org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:1357) at org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:1316) at org.eclipse.jface.viewers.TableViewer.inputChanged(TableViewer.java:767) at org.eclipse.jface.viewers.ContentViewer.setInput(ContentViewer.java:250) at org.eclipse.jface.viewers.StructuredViewer.setInput(StructuredViewer.java:1513) at org.eclipse.birt.report.designer.ui.dialogs.ColumnBindingDialog.createDialogArea(ColumnBindingDialog.java:446) at org.eclipse.jface.dialogs.Dialog.createContents(Dialog.java:794) at org.eclipse.jface.window.Window.create(Window.java:426) at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1116) at org.eclipse.birt.report.designer.internal.ui.dialogs.BaseDialog.open(BaseDialog.java:135) at org.eclipse.birt.report.designer.internal.ui.editors.schematic.editparts.DataEditPart.performDirectEdit(DataEditPart.java:61) at org.eclipse.birt.report.designer.internal.ui.editors.schematic.tools.ReportCreationTool$1.run(ReportCreationTool.java:221) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123) ... 20 more
UI/org.eclipse.birt.report.designer.core/src/org/eclipse/birt/report/designer/util/DEUtil.java
*         type
	 */
	public static ActionHandle getActionHandle( ReportItemHandle element )
	{
		ActionHandle actionHandle = null;
		if ( element instanceof LabelHandle )
		{
			actionHandle = ( (LabelHandle) element ).getActionHandle( );
		}
		else if ( element instanceof DataItemHandle )
		{
			actionHandle = ( (DataItemHandle) element ).getActionHandle( );
		}
		else if ( element instanceof ImageHandle )
		{
			actionHandle = ( (ImageHandle) element ).getActionHandle( );
		}
		return actionHandle;
	}
	/**
	 * Sets the handle of the action of the given element.
	 * 
	 * @param element
	 *            the element handle to set
	 * @param action
	 *            the action
	 * 
	 * @return the handle of the action, or null if the element is not a proper
	 *         type
	 *