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
assertTrue( element instanceof SimpleMasterPageHandle );
		element = factory
				.newElement( ReportDesignConstants.STYLE_ELEMENT, null );
		assertTrue( element instanceof StyleHandle );
		element = factory.newElement(
				ReportDesignConstants.TABLE_GROUP_ELEMENT, null );
		assertTrue( element instanceof TableGroupHandle );
		element = factory.newElement( ReportDesignConstants.TABLE_ITEM, null );
		assertTrue( element instanceof TableHandle );
		element = factory.newElement( ReportDesignConstants.TEXT_ITEM, null );
		assertTrue( element instanceof TextItemHandle );
		
		element = factory.newElement( ReportDesignConstants.TEXT_ITEM,
				"text item" ); 
		assertEquals( "text item", element.getName( ) ); 
	}
	/**
	 * Test new element from
	 * 
	 * @throws Exception
	 * 
	 * @throws Exception
	 */
	public void testNewElementFrom( ) throws Exception
	{
		openDesign( "ElementFactoryTest_1.xml" ); 
		LibraryHandle libHandle = designHandle.getLibrary( "Lib3" ); 
		LabelHandle baseLabelHandle = (LabelHandle) libHandle.getComponents( )
				.get( 0 );
		TableHandle baseTableHandle = (TableHandle) libHandle.getComponents( )