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.tests/test/org/eclipse/birt/report/model/library/LibraryThemeTest.java
LabelHandle label = (LabelHandle) designHandle.findElement( "mylabel" ); 
		assertNotNull( table );
		assertNotNull( label );
		assertEquals( "#FF0000", table.getStringProperty( Style.COLOR_PROP ) ); 
		assertEquals( ColorPropertyType.BLACK, label
				.getStringProperty( Style.COLOR_PROP ) );
	}
	/**
	 * Test cases:
	 * 
	 * <ul>
	 * <li>1. includes one librarie with theme, assert getDisplayLabel()
	 * returns qualified name of the item. No exception expected.
	 * 
	 * </ul>
	 * 
	 * @throws Exception
	 */
	public void testGetDisplayLabel( ) throws Exception
	{
		openDesign( "DesignWithThemesInTwoLibraries.xml" ); 
		designHandle.includeLibrary( "LibraryAIncludeTheme.xml", "libA" ); 
		assertEquals( "libA.theme1", ( (ThemeHandle) designHandle 
				.getVisibleThemes( IAccessControl.DIRECTLY_INCLUDED_LEVEL )
				.get( 1 ) ).getDisplayLabel( IDesignElementModel.FULL_LABEL ) );
		assertEquals( "libA.theme1", ( (ThemeHandle) designHandle 
				.getVisibleThemes( IAccessControl.DIRECTLY_INCLUDED_LEVEL )
				.get( 1 ) ).getDisplayLabel( ) );
		assertEquals( "libA.theme1", ( (ThemeHandle) designHandle 
				.getVisibleThemes( IAccessControl.DIRECTLY_INCLUDED_LEVEL )