Bug 142800 TVT3.2:TCT576: AR: BIRT: New Data Set Wizard
OS: Windows XP. Must Fix: YES. Blocking: No. Build Date: 0518 Component: BIRT - New Data Set Wizard. Language: AR Tester Name: Omar Bahy Scenario: 1- Right click on data set and choose "New Data Set". Click Finish 2- Inspect the SQL statement box. Problem: SQL statement box should be unmirrored to maintain readability. This article was reassigned from Category:''TVT/Testing''.
data/org.eclipse.birt.report.data.oda.jdbc.ui/src/org/eclipse/birt/report/data/oda/jdbc/ui/editors/SQLDataSetEditorPage.java
populateAvailableDbObjects( );
		createTextualQueryComposite( SashForm );
		setSashFormWeights( SashForm );
		return SashForm;
	}
	
	/**
	 * Sets Splitter Weights.
	 * if left side is too wide,set weights with default value 40,60.  
	 * @param splitter
	 */
	private void setSashFormWeights(SashForm sashForm) {
		int leftWidth = sashForm.getChildren( )[0].computeSize( SWT.DEFAULT,
				SWT.DEFAULT ).x;
		int totalWidth = sashForm.computeSize( SWT.DEFAULT, SWT.DEFAULT ).x;
		if ( (double) leftWidth / (double) totalWidth > 0.4 )
		{
			
			sashForm.setWeights( new int[]{
					40, 60
			} );
		}
		else
		{
			sashForm.setWeights( new int[]{
					leftWidth, totalWidth - leftWidth
			} );
		}
		
	}