Bug 122212 Cancel the action of creating a chart, then delete a data set, it still refers to the non-existent chart.
Description: Cancel the action of creating a chart, then delete a data set, it still refers to the non-existent chart. Steps to reproduce: 1. Create a data source and related data set. 2. Add a chart and select a data set in chart dialog. 3. Cancel creating chart action. 4. Delete the data set from data explorer view. 5. It pops up a dialog said that "the data set refers to the chart". But indeed the chart doesn't exist.
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/actions/BaseInsertMenuAction.java
import org.eclipse.gef.EditPart;
import org.eclipse.gef.GraphicalViewer;
import org.eclipse.gef.Request;
import org.eclipse.gef.ui.actions.SelectionAction;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.swt.widgets.Display;
import org.eclipse.ui.IEditorPart;
import org.eclipse.ui.IWorkbenchPart;
import org.eclipse.ui.PlatformUI;
/**
 * Abstract class for insert report element. Provides basic support for insert
 * actions.
 */
public abstract class BaseInsertMenuAction extends SelectionAction
{
	protected static final String STACK_MSG_INSERT_ELEMENT = Messages.getString( "BaseInsertMenuAction.stackMsg.insertElement" ); 
	private String insertType;
	protected SlotHandle slotHandle;
	private Object model;
	/**
	 * The constructor.
	 * 
	 * @param part
	 *            parent workbench part
	 * @param type
	 *            insert element type
	 */
	public BaseInsertMenuAction( IWorkbenchPart part, String type )
	{
		super( part );