Bug 139648 BIRT Resouce deployment issue - Wrong relative path generated.
- Set the BIRT Resource Path using Windows->Preference to E:\birt\birtResources - Copy base.rptlibrary, testlibrary.rptlibrary files to the above location. - Now the library explorer will show all the two libraries. - Create a report design and add the report items from the libraries. - Open the XMLSource view of the report design. The relative paths to the library are not correct. <list-property name="libraries"> <structure> <property name="fileName">../../birtResources/base.rptlibrary</property> <property name="namespace">base</property> </structure> <structure> <property name="fileName">../../birtResources/testlibrary.rptlibrary</property> <property name="namespace">testlibrary</property> </structure> </list-property>
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/util/UIUtil.java
int width = 0;
		GC gc = new GC( control );
		for ( int i = 0; i < string.length( ); i++ )
		{
			char c = string.charAt( i );
			width += gc.getAdvanceWidth( c );
		}
		gc.dispose( );
		return width;
	}
	/**
	 * Returns the maxinum length in pixels of given strings in a control.
	 * 
	 * @return the length in pixels
	 */
	public static int getMaxStringWidth( String[] strArray, Control control )
	{
		int maxWidth = 0;
		for ( int i = 0; i < strArray.length; i++ )
		{
			int width = getStringWidth( strArray[i], control );
			maxWidth = maxWidth >= width ? maxWidth : width;
		}
		return maxWidth;
	}
	/**
	 * Returns if current active editor is reportEditor.
	 * 
	 * @return true if current active editor is reportEditor, or false else.
	 */