Bug 143104 TVT3.2:TCT639: AR: BIRT: Expression builder should be unmirrored.
OS: Windows XP Must Fix: No. Build Date: 0522 Component: BIRT Blocking: No Language: AR Tester name: Omar Bahy Scenario: 1- Import a report Design, i.e, Test_Report_1.rptdesign 2- Double click on Column_1. 3- Click on row ["CUSTOMERNUMBER"] 4- Click ont he empty box that apears next to it to open the expression builder. Problem: - expression builder text window should be unmirrored to maintain expression readability. This article was reassigned from Category:''TVT/Testing''.
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/ExpressionBuilder.java
Font font = sourceViewer.getTextWidget( ).getFont( );
			FontData data = font.getFontData( )[0];
			Font newFont = FontManager.getFont( data.getName( ),
					data.getHeight( ) + 1,
					data.getStyle( ) );
			sourceViewer.getTextWidget( ).setFont( newFont );
		}
		sourceViewer.getTextWidget( ).addKeyListener( new KeyAdapter( ) {
			public void keyPressed( KeyEvent e )
			{
				if ( isUndoKeyPress( e ) )
				{
					sourceViewer.doOperation( ITextOperationTarget.UNDO );
				}
				else if ( isRedoKeyPress( e ) )
				{
					sourceViewer.doOperation( ITextOperationTarget.REDO );
				}
			}
			private boolean isUndoKeyPress( KeyEvent e )
			{
				return ( ( e.stateMask & SWT.CONTROL ) > 0 )
						&& ( ( e.keyCode == 'z' ) || ( e.keyCode == 'Z' ) );
			}
			private boolean isRedoKeyPress( KeyEvent e )
			{
				return ( ( e.stateMask & SWT.CONTROL ) > 0 )
						&& ( ( e.keyCode == 'y' ) || ( e.keyCode == 'Y' ) );
			}
		} );