Bug 142928 Item from library is changed to a report design item after revert to report item
Details: Item from library is changed to a report design item after revert to report item. Setp: 1.New a template. 2.Use a libary contain a label. 3.Drop the label from library explorer into layout. 4.Change the label to template item. 5.Revert the template item to report item. Actual result: The label is become a report item, but a item from library. Please see the attach image. Exception result: The lable is revert a item from library.
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/DesignElementHandle.java
{
			ElementDefn elementDefn = (ElementDefn) element.getDefn( );
			DesignElementHandle container = element.getContainer( );
			String slotInfo = null;
			String posnInfo = null;
			if ( container != null )
			{
				SlotHandle slot = element.getContainerSlotHandle( );
				ISlotDefn slotDefn = container.getElement( ).getDefn( )
						.getSlot( slot.getSlotID( ) );
				String slotDefnName = slotDefn.getXmlName( );
				int slotIndex = 1;
				slotInfo = "/" + slotDefnName + "[" + slotIndex 
						+ "]"; 
				int tagIndex = 1;
				for ( int i = 0; i < slot.findPosn( element ); i++ )
				{
					DesignElementHandle tmpElement = slot.get( i );
					if ( tmpElement.getDefn( ) == elementDefn )
						tagIndex++;
				}
				posnInfo = "[" + tagIndex + "]";
			}
			String elementPath = ""; 
			if ( !StringUtil.isBlank( slotInfo ) )
				elementPath = slotInfo;
			elementPath = elementPath + "/" + elementDefn.getXmlElement( ); 
			if ( !StringUtil.isBlank( posnInfo ) )
				elementPath = elementPath + posnInfo;
			sb.insert( 0, elementPath );