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
} );
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.jface.action.Action#run()
	 */
	public void run( )
	{
		if ( Policy.TRACING_ACTIONS )
		{
			System.out.println( "Insert action >> Run ..." ); 
		}
		CommandStack stack = SessionHandleAdapter.getInstance( )
				.getCommandStack( );
		stack.startTrans( STACK_MSG_INSERT_ELEMENT );
		try
		{
			final Request req = insertElement( );
			stack.commit( );
			selectElement( req.getExtendedData( )
					.get( IRequestConstants.REQUEST_KEY_RESULT ), true );
		}
		catch ( Exception e )
		{
			stack.rollbackAll( );
			ExceptionHandler.handle( e );
		}
	}
}