Bug 146159 [Regression]Changing font operation doesn't work other than the first time
Description: The first time changing operation can work well. However, Change it again, it won't work. Steps: 1.Insert lable/text to layout or master page 2.Change the font from serif to cursive, it works well 3.Change the font again Result: The action doesn't work Additional infor: build number:200606080632
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/util/UIUtil.java
if ( lineText == null || "".equals( lineText ) ) { 
			return null;
		}
		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( )];