Bug 152300 Model api is wrong.
In the LibrarCommand class,the method reloadLibrary , code lije this: activityStack.commit( ); // clears the activity stack to avoid potential problems. activityStack.flush( ); LibraryReloadedEvent event = new LibraryReloadedEvent( module .getLibraryByLocation( url.toExternalForm( ) ) ); module.broadcast( event ); Please first fire model event,then fire the commandstack event.
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/command/LibraryCommand.java
*             if failed to remove <code>IncludeLibrary</code> strcutre
	 */
	public void dropLibrary( Library library ) throws SemanticException
	{
		
		if ( !module.getLibraries( ).contains( library ) )
		{
			throw new LibraryException( library, new String[]{library
					.getNamespace( )},
					LibraryException.DESIGN_EXCEPTION_LIBRARY_NOT_FOUND );
		}
		
		
		dealAllElementDecendents( library, SIMPLE_ACTION );
		doDropLibrary( library );
	}
	/**
	 * Performs the action to drop the library from the module.
	 * 
	 * @param library
	 *            the library to drop
	 * @param action
	 *            can be RELOAD or SIMPLE.
	 * @throws SemanticException
	 *             if error occurs during insert an included library
	 */
	private void doDropLibrary( Library library ) throws SemanticException
	{
		
		ActivityStack stack = getActivityStack( );