Bug 129580 HCG_BIDI: Undesirable order of BiDi chars in Edit Text Item dialog
This is BiDi specific defect. Capital characters refer to BiDi (Hebrew/Arabic) characters. 1. Create report 2. Add text item from the palette 3. Define it as HTML/Dynamic Text 4. Add <CODE> section 5. Type inside some logical expression using BiDi characters. if ABC != "OLLEH world" then ABC = "ELLOH" Actual result: if OLLEH" =! ABC world" then ELLOH" = ABC" The order of characters is corrupted. The content of comment and variables names is mixed.
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/util/UIUtil.java
{
			Layout layout = ( (Composite) c ).getLayout( );
			if ( layout instanceof ColumnLayout )
				return hHint;
		}
		return SWT.DEFAULT;
	}
	/**
	 * Updates the page scroll increment for given composite.
	 * 
	 * @param scomp
	 */
	public static void updatePageIncrement( ScrolledComposite scomp )
	{
		ScrollBar vbar = scomp.getVerticalBar( );
		if ( vbar != null )
		{
			Rectangle clientArea = scomp.getClientArea( );
			int increment = clientArea.height - 5;
			vbar.setPageIncrement( increment );
		}
	}
	private static boolean isWrapControl( Control c )
	{
		if ( c instanceof Composite )
		{
			return ( (Composite) c ).getLayout( ) instanceof ILayoutExtension;
		}
		return ( c.getStyle( ) & SWT.WRAP ) != 0;
	}