Bug 156497 [Regression][Acceptance]Report isn't refreshed when delete used library file.
Description: Report isn't refreshed when delete used library file. Steps to reproduce: 1.New a library, add a label, input actuate. 2.New a report, extend lib.label 3.Delete the library file. 4.Refresh the report in Outline of the report Expected result: Empty label in Layout. Actual result: label with content "actuate" in Layout.
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/command/LibraryRecord.java
{
			DesignElement tmpElement = (DesignElement) contentIter.next( );
			ElementDefn elementDefn = (ElementDefn) tmpElement.getDefn( );
			if ( !elementDefn.canExtend( ) || !elementDefn.isContainer( ) )
				continue;
			String name = tmpElement.getExtendsName( );
			if ( StringUtil.isBlank( name ) )
				continue;
			
			ElementRefValue extendRef = (ElementRefValue) tmpElement
					.getLocalProperty( module, IDesignElementModel.EXTENDS_PROP );
			if ( !library.getNamespace( ).equalsIgnoreCase(
					extendRef.getLibraryNamespace( ) ) )
				continue;
			
			ElementStructureUtil
					.refreshStructureFromParent( module, tmpElement );
			ElementStructureUtil.addTheVirualElementsToNamesapce( tmpElement,
					module );
			module.manageId( tmpElement, true );
			if ( overriddenValues == null )
				return;
			
			Long idObj = new Long( tmpElement.getID( ) );
			Map values = (Map) overriddenValues.get( idObj );
			ElementStructureUtil.distributeValues( tmpElement, values );			
		}
	}
}