Bug 166729 [Linux]setImageDirectory() method is no effect[0600]
Description: [Linux]setImageDirectory() method is no effect[0600] Step: 1.Run the test case by junit. You can find out the case on: /cvsroot/org.eclipse.birt.report.tests.engine/src/org/eclipse/birt/report/tests/engine/regression/Regression_142894.java /cvsroot/org.eclipse.birt.report.tests.engine/src/org/eclipse/birt/report/tests/engine/regression/input/regression_142894.rptdesign /cvsroot/org.eclipse.birt.report.tests.engine/src/org/eclipse/birt/report/tests/engine/regression/input/pics/green.bmp 2.In render task, we set that "renderContext.setImageDirectory( "image" );" Actual result: The background image path is "pics/green.bmp" in html code. But the image is save at "image/green.bmp"
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/util/ModelUtil.java
* null, or element is not in the tree of module, then do nothing.
	 * 
	 * @param module
	 * @param element
	 */
	public static void addElement2NameSpace( Module module,
			DesignElement element )
	{
		if ( module == null || element == null || element.getRoot( ) != module )
			return;
		module.makeUniqueName( element );
		int ns = ( (ElementDefn) element.getDefn( ) ).getNameSpaceID( );
		if ( element.getName( ) != null
				&& ns != MetaDataConstants.NO_NAME_SPACE
				&& element.getContainer( ).isManagedByNameSpace(
						element.getContainerSlot( ) ) )
			module.getNameSpace( ns ).insert( element );
	}
	/**
	 * Gets the element name with the given xml name.
	 * 
	 * @param xmlName
	 *            the xml name to find
	 * @return the element name with the given xml name if found, otherwise null
	 */
	public static String getElementNameFromXmlName( String xmlName )
	{
		if ( StringUtil.isBlank( xmlName ) )
			return null;
		if ( DesignSchemaConstants.CELL_TAG.equalsIgnoreCase( xmlName ) )