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
.get( 1 );
		ElementFactory factory = designHandle.getElementFactory( );
		LabelHandle label1 = (LabelHandle) factory.newElementFrom(
				baseLabelHandle, "label1" ); 
		TableHandle table1 = (TableHandle) factory.newElementFrom(
				baseTableHandle, "table1" ); 
		designHandle.getBody( ).add( label1 );
		designHandle.getBody( ).add( table1 );
		design.getActivityStack( ).undo( );
		design.getActivityStack( ).undo( );
		assertNull( designHandle.findElement( "label1" ) ); 
		assertNull( designHandle.findElement( "table1" ) ); 
		ParameterGroupHandle baseParameterGroup = (ParameterGroupHandle) libHandle
				.getParameters( ).get( 0 );
		assertNotNull( baseParameterGroup );
		ParameterGroupHandle childParameterGroup = (ParameterGroupHandle) factory
				.newElementFrom( baseParameterGroup, "newPara" ); 
		designHandle.getParameters( ).add( childParameterGroup );
		childParameterGroup = (ParameterGroupHandle) factory.newElementFrom(
				baseParameterGroup, "newParaTwo" ); 
		designHandle.getParameters( ).add( childParameterGroup );
		save( );
		compareFile( "ElementFactoryTest_golden.xml" ); 
		
		int count = designHandle.getParameters( ).getCount( );
		for ( int i = count - 1; i >= 0; i-- )
		{
			DesignElementHandle param = designHandle.getParameters( ).get( i );
			param.drop( );
		}