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
public static void doSort( List list )
	{
		Collections.sort( list, new Comparator( ) {
			public int compare( Object arg0, Object arg1 )
			{
				DesignElementHandle h1 = (DesignElementHandle) arg0;
				DesignElementHandle h2 = (DesignElementHandle) arg1;
				String s1 = h1.getDisplayLabel( );
				String s2 = h2.getDisplayLabel( );
				return s1.compareTo( s2 );
			}
		} );
	}
	/**
	 * Returns whether the element is valid or not. An element may be valid even
	 * though it has some semantic errors.
	 * 
	 * @return <code>true</code> if this element is valid, otherwise
	 *         <code>false</code>.
	 */
	public boolean isValid( )
	{
		return getElement( ).isValid( );
	}
	/**
	 * Determines whether to show an error item on the element or not. Show an
	 * error item if the element is invalid or has semantic errors, otherwise
	 * not.
	 * 
	 * @return true if the element has semantic error or the element is invalid