Bug 199997 Edit Data Set Dialog problem
Description: In the "Edit data set" dialog, when drag vertical scroll bar in the Query page, the "User identifier quoting" will be hidden. Build version:2.2.0.v20070815-0630 Steps to reproduce: 1.Open "Edit data set" dialog, in the query page, drag the vertical scroll bar. 2.See the attached screenshot, the "User identifier quoting" will be hidden. Actual result: The "User identifier quoting" will be hidden. Expected result: "User identifier quoting" displays well. Error log: N/A.
data/org.eclipse.birt.report.data.oda.jdbc.ui/src/org/eclipse/birt/report/data/oda/jdbc/ui/editors/SQLDataSetEditorPage.java
/*
	 * @see org.eclipse.jface.dialogs.DialogPage#setVisible(boolean)
	 */
	public void setVisible( boolean visible )
	{
		super.setVisible( visible );
		getControl( ).setFocus( );
	}
	/**
	 * Prepare UI when pageActivated event is invoked Following things will be
	 * done: Set StyledText content Set StyledText as focus
	 * 
	 */
	private void prepareUI( )
	{
		StyledText styledText = viewer.getTextWidget( );
		String queryText = styledText.getText( );
		String extensionId = this.getDataSetDesign( )
				.getOdaExtensionDataSetId( );
		this.formerQueryTxt = queryText;
		if ( queryText != null
				&& queryText.equalsIgnoreCase( SQLUtility.getQueryPresetTextString( extensionId ) ) )
		{
			String[] lines = SQLUtility.getQueryPresetTextArray( extensionId );
			if ( lines != null && lines.length > 0 )
				styledText.setSelection( lines[0].length( ) + 1,
						lines[0].length( ) + 1 );
		}
		styledText.setFocus( );
	}