Bug 199028 A problem with dataset valid check
Description: There is a sample datasource and dataset, delete the datasource, the dataset will be invalid. Then create a datasource like the previous one, the dataset still does not work. Build version:2.2.0.v20070807-0630 Steps to reproduce: 1. Create a sample datasource and dataset. 2. Delete the datasource, and the dataset will be invalid. 3. Create a sample datasource again, with the same name as the deleted one. 4. Double click on the dataset, error pops "The datasource of this dataset is missing". Expected result: The dataset shall be refer to the same name datasource. Actual result: If remove a datasource, the related datasets will not workable and repairable.
UI/org.eclipse.birt.report.designer.ui.views/src/org/eclipse/birt/report/designer/internal/ui/views/data/providers/DataSetNodeProvider.java
IMenuManager menu )
	{
		super.createContextMenu( sourceViewer, object, menu );
		if ( ( (DataSetHandle) object ).canEdit( ) )
		{
			WizardUtil.createEditDataSetMenu( menu, object );
		}
		menu.insertBefore( IWorkbenchActionConstants.MB_ADDITIONS + "-refresh", 
				new ShowPropertyAction( object ) );
		menu.insertAfter( IWorkbenchActionConstants.MB_ADDITIONS + "-refresh", new Separator( ) ); 
		menu.insertAfter( IWorkbenchActionConstants.MB_ADDITIONS + "-refresh", new RefreshAction( sourceViewer ) ); 
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.birt.report.designer.internal.ui.views.INodeProvider#getNodeDisplayName(java.lang.Object)
	 */
	public String getNodeDisplayName( Object model )
	{
		return DEUtil.getDisplayLabel( model, false );
	}
	public Image getNodeIcon( Object model )
	{
		DataSetHandle handle = (DataSetHandle) model;
		if ( !( handle instanceof JointDataSetHandle )
				&& handle.getDataSource( ) == null )
		{
			return ReportPlatformUIImages.getImage( ISharedImages.IMG_OBJS_ERROR_TSK );
		}
		return super.getNodeIcon( model );