Bug 198604 After refresh the library, the link groups key are changed in cube builder[1101]
Description: After refresh the library, the link groups key are changed in cube builder[1101] Build number: 2.2.1.v20070802-0630 Steps to reproduce: 1, New a cube in library, the cube has a joint key between dimension table and facttable 2, Using the cube in a report design 3, Check the joint status in link group 4, Refresh the library in outline 5, Recheck the joint staus in link group Expected result: After step5, the joint status are correct and as same as the status in library Actual result: The dimension table is missing and the joint key is disconnected
model/org.eclipse.birt.report.model.tests/test/org/eclipse/birt/report/model/library/ReloadLibraryTest.java
TableHandle parent = (TableHandle) table1.getExtends( );
		assertNotNull( parent );
		RowHandle rowHandle = (RowHandle) table1.getHeader( ).get( 0 );
		CellHandle cellHandle = (CellHandle) rowHandle.getCells( ).get( 0 );
		assertEquals( cellHandle.getStringProperty( StyleHandle.COLOR_PROP ),
				ColorPropertyType.BLUE );
		TableHandle table2 = (TableHandle) designHandle.findElement( "table2" );
		assertNotNull( table2.getExtends( ) );
		assertEquals( table2.getStringProperty( StyleHandle.COLOR_PROP ),
				ColorPropertyType.LIME );
		
		String libFilePath = (String) filePaths.get( 1 );
		openLibrary( libFilePath, false );
		TableHandle libTable1 = (TableHandle) libraryHandle
				.findElement( "libTable1" ); 
		
		( (ThemeHandle) libraryHandle.getThemes( ).get( 0 ) ).getStyles( )
				.drop( 0 );
		
		libTable1.getDetail( ).drop( 0 );
		libTable1.getDetail( ).drop( 0 );
		assertEquals( 0, libTable1.getDetail( ).getCount( ) );
		
		TableHandle libTable2 = (TableHandle) libraryHandle
				.findElement( "libTable2" ); 
		libTable2.drop( );
		libraryHandle.save( );
		
		MyLibraryListener libraryListener = new MyLibraryListener( );
		designHandle.addListener( libraryListener );