Bug 186940 Style name in theme cannot be identify by auto when reopen the library[01]
Description: Style name in theme cannot be identify by auto when reopen the library[01] Step: 1.Open a library and add a theme 2.New a style on the theme and use the default name that is "NewStyle" 3.Save the library, close it and reopen it again. 4.New another style on the same theme Actual result: The default style name on second times is also "NewStyle" Exception result: The default style name on second times is "NewStyle1"
model/org.eclipse.birt.report.model.tests/test/org/eclipse/birt/report/model/api/ElementFactoryTest.java
assertEquals( tableHandle1, rowHandle.getContainer( ) );
		TableHandle tableHandle2 = factory.newTableItem( "Table2", 3, 4, 5, 6 ); 
		assertEquals( "Table2", tableHandle2.getName( ) ); 
		assertEquals( 3, tableHandle2.getColumns( ).getCount( ) );
		assertEquals( 4, tableHandle2.getHeader( ).getCount( ) );
		assertEquals( 5, tableHandle2.getDetail( ).getCount( ) );
		assertEquals( 6, tableHandle2.getFooter( ).getCount( ) );
		
		
		for ( int i = 0; i < 4; i++ )
		{
			rowHandle = (RowHandle) tableHandle2.getHeader( ).get( i );
			assertEquals( 3, rowHandle.getCells( ).getCount( ) );
			for ( int j = 0; j < 2; j++ )
			{
				assertEquals( rowHandle, rowHandle.getCells( ).get( j )
						.getContainer( ) );
			}
		}
		
		for ( int i = 0; i < 5; i++ )
		{
			rowHandle = (RowHandle) tableHandle2.getDetail( ).get( i );
			assertEquals( 3, rowHandle.getCells( ).getCount( ) );
			for ( int j = 0; j < 2; j++ )
			{
				assertEquals( rowHandle, rowHandle.getCells( ).get( j )
						.getContainer( ) );
			}
		}