Bug 172606 Error icon in Library Explorer for multi-extends item.[01]
Description: Error icon in Library Explorer for multi-extends item. Build number:2.1.2.v20070202 Steps to reproduce: 1. New a.rptlibrary and b.rptlibrary. 2. New a table in a.rptlibray. 3. Open b.rptlibray and extends table item in a.rptlibray. 4. Open Library Explore, check table item inside b.rptlibrary. Expected result: Normal item icon before table item. Actual result: Error icon indicate the item exists errors. see attached.
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/util/UIUtil.java
}
		int[] level = getExpressionBidiLevel( lineText );
		int[] segments = new int[level.length];
		int j = 0;
		segments[j++] = 0;
		for ( int i = 1; i < level.length; i++ )
		{
			if ( level[i] != level[i - 1] )
				segments[j++] = i;
		}
		if ( j < segments.length )
		{
			int[] result = new int[j];
			System.arraycopy( segments, 0, result, 0, j );
			segments = result;
		}
		return segments;
	}
	/**
	 * Get Bidi level of Expression String.
	 * 
	 * @param message
	 * @return
	 */
	public static int[] getExpressionBidiLevel( String message )
	{
		java.text.Bidi bidi = new Bidi( message,
				Bidi.DIRECTION_DEFAULT_LEFT_TO_RIGHT );
		int[] level = new int[message.length( )];
		boolean bidiStart = false;