Bug 192171 Layout still display css style from library after removing library.[01]
Description: Layout still display css style from library after removing library. Build number:2.2.0.v20070612 Steps to reproduce: 1. Add a css file in Library Explorer 2. New a library file. 3. Use css file in library default theme. 4. New a report and use the library. 5. Insert a label and apply the style from library. 6. Remove the library in report Outline. Expected result: Style effect disappears from label in Layout. Actual result: Label in Layout still displays the style effect. Error log:N/A
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/command/AbstractLibraryRecord.java
IModuleModel.IMAGES_PROP ) );
	}
	/**
	 * Updates the element reference which refers to the given library.
	 * 
	 * @param target
	 *            the library whose element references are updated.
	 * @param slotId
	 *            the id of themes/styles slot
	 */
	private void updateReferenceableClients( DesignElement target, int slotId )
	{
		ContainerSlot slot = target.getSlot( slotId );
		Iterator iter = slot.iterator( );
		while ( iter.hasNext( ) )
		{
			DesignElement element = (DesignElement) iter.next( );
			assert element instanceof IReferencableElement;
			IReferencableElement referenceableElement = (IReferencableElement) element;
			
			referenceableElement.updateClientReferences( );
			
			if ( referenceableElement instanceof Theme )
				updateReferenceableClients(
						(DesignElement) referenceableElement,
						IThemeModel.STYLES_SLOT );
		}
	}
}