Bug 135252 [Regression]Focus will lost when switching to script view
Steps to reproduce: 1.Select a data set 2.Click "Script" tab Expected result: Script view for the data set shows up Actual result: The focus on data set lost
UI/org.eclipse.birt.report.designer.ui.editors.schematic/src/org/eclipse/birt/report/designer/ui/editors/pages/ReportScriptFormPage.java
return jsEditor.getAdapter( adapter );
	}
	/**
	 * Get JS Script editor.
	 * 
	 * @return
	 */
	public IEditorPart getScriptEditor( )
	{
		return jsEditor;
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.birt.report.designer.ui.editors.pages.ReportFormPage#canLeaveThePage()
	 */
	public boolean canLeaveThePage( )
	{
		if ( isDirty( ) )
		{
			doSave( null );
		}
		return super.canLeaveThePage( );
	}
	private IReportProvider getProvider( )
	{
		return (IReportProvider) getEditor( ).getAdapter( IReportProvider.class );
	}
}