Bug 176436 Charts Imported from Libraries do not update when libraries change
During a live presentation of BIRT at EclipseCon, we came across a rather embarassing issue. When charts are included in a library, and imported into a report design from a library, any changes to the library instance of the chart do not reflect in the report itself.
model/org.eclipse.birt.report.model.tests/test/org/eclipse/birt/report/model/library/ReloadLibraryTest.java
designHandle.getBody( ).add( labelHandle );
		assertTrue( designHandle.needsSave( ) );
		assertTrue( designHandle.getCommandStack( ).canUndo( ) );
		assertFalse( designHandle.getCommandStack( ).canRedo( ) );
		ActivityStack stack = (ActivityStack) designHandle.getCommandStack( );
		File f = new File( libFilePath );
		RandomAccessFile raf = new RandomAccessFile( f, "rw" );
		
		raf.seek( 906 );
		
		raf.writeBytes( "<label id=\"21\"/>" );
		raf.close( );
		
		try
		{
			designHandle.reloadLibrary( libraryHandle );
			fail( );
		}
		catch ( DesignFileException e )
		{
		}
		assertTrue( stack.canUndo( ) );
		assertFalse( stack.canRedo( ) );
		assertEquals( 1, stack.getCurrentTransNo( ) );
		assertTrue( designHandle.needsSave( ) );
		
		libraryHandle.close( );
		libraryHandle = null;
	}
}