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
Display.getCurrent( ).asyncExec( new Runnable( ) {
			public void run( )
			{
				if ( element instanceof ReportItemHandle )
				{
					IWorkbenchPart part = PlatformUI.getWorkbench( )
							.getActiveWorkbenchWindow( )
							.getPartService( )
							.getActivePart( );
					if ( part instanceof AbstractMultiPageLayoutEditor )
					{
						IEditorPart epart = ( (AbstractMultiPageLayoutEditor) part ).getActiveEditor( );
						if ( epart instanceof GraphicalEditorWithFlyoutPalette )
						{
							GraphicalViewer viewer = ( (GraphicalEditorWithFlyoutPalette) epart ).getGraphicalViewer( );
							Object cpart = viewer.getEditPartRegistry( )
									.get( element );
							if ( cpart instanceof EditPart )
							{
								viewer.flush( );
								viewer.select( (EditPart) cpart );
							}
							if ( edit && cpart instanceof LabelEditPart )
							{
								( (LabelEditPart) cpart ).performDirectEdit( );
							}
						}
					}
				}
			}