Bug 148525 Display text is not found from library resource file
Steps to reproduce: 1.New a library, add a resource file "a.properties" 2.Add a label with text"abc", add a localization "k1=actuate" 3.New a report, extend the label 4.Preview the report Expected result: Report shows "actuate" in preview Actual result: Report shows "actuate" in layout, but "abc" in preview
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/DesignElementHandle.java
* @param slotId
	 *            the slot id
	 * @param type
	 *            the name of the element type, like "Table", "List", etc.
	 * @return <code>true</code> if the slot can contain the an element with
	 *         <code>type</code> type, otherwise <code>false</code>.
	 * 
	 * @see #canContain(int, DesignElementHandle)
	 */
	public boolean canContain( int slotId, String type )
	{
		if ( type == null )
			return false;
		IElementDefn defn = MetaDataDictionary.getInstance( ).getElement( type );
		if ( defn == null )
			defn = MetaDataDictionary.getInstance( ).getExtension( type );
		if ( defn == null )
			return false;
		boolean flag = getElement( ).canContain( getModule( ), slotId, defn );
		if ( !flag )
			return false;
		return !getModule( ).isReadOnly( );
	}
	/**
	 * Determines if the given slot can contain the <code>content</code>.
	 * 
	 * @param slotId
	 *            the slot id
	 * @param content
	 *            the design element handle to check