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/src/org/eclipse/birt/report/model/api/ElementFactory.java
private DesignElementHandle newElementFrom( String name,
			DesignElementHandle baseElement ) throws ExtendsException
	{
		DesignElementHandle childElement = null;
		if ( baseElement instanceof ExtendedItemHandle )
		{
			String extensionName = baseElement
					.getStringProperty( IExtendedItemModel.EXTENSION_NAME_PROP );
			childElement = newExtendedItem( name, extensionName,
					(ExtendedItemHandle) baseElement );
			ElementStructureUtil.refreshStructureFromParent( module,
					childElement.getElement( ) );
		}
		else
		{
			childElement = newElement( baseElement.getElement( )
					.getElementName( ), name );
			
			
			if ( childElement.getElement( ) instanceof IOdaExtendableElementModel )
			{
				String extensionId = (String) baseElement
						.getProperty( IOdaExtendableElementModel.EXTENSION_ID_PROP );
				childElement.getElement( ).setProperty(
						IOdaExtendableElementModel.EXTENSION_ID_PROP,
						extensionId );
			}
			childElement.setExtends( baseElement );
			ElementStructureUtil.refreshStructureFromParent( module,
					childElement.getElement( ) );