Bug 319902 Internal API Usage of the ODA framework components
data/org.eclipse.birt.report.data.oda.jdbc.dbprofile.ui/src/org/eclipse/birt/report/data/oda/jdbc/dbprofile/ui/internal/sqb/SQBDataSetWizardPage.java
}
	private SQLBuilderDesignState restoreSQLBuilderStateFromDesign( Shell parentShell )
	{
	    DesignerState designerState = getInitializationDesignerState();
	    if( designerState == null || designerState.getStateContent() == null )
	        return null;
	    
	    SQLBuilderDesignState sqbState;
        try
        {
            sqbState = new SQLBuilderDesignState( designerState );
        }
        catch( OdaException ex )
        {
	        openInvalidInputMessageBox( parentShell, false );
	        return null;
	    }
	    return sqbState;
	}
	
	private boolean isSQLUpToDateInSQBInput( SQLBuilderDesignState sqbState )
	{
        SQLBuilderStorageEditorInput sqbInput = sqbState.getSQBStorageInput();
        String sqlInSQBInput = sqbInput != null && sqbInput.exists() ? 
                            sqbInput.getSQL() : EMPTY_STR;
        String editingQueryText = getDataSetDesignQueryText();
        if( SQLQueryUtility.isEquivalentSQL( sqlInSQBInput, editingQueryText ) )
            return true;
        sqlInSQBInput = sqbState.getPreparableSQL();
        if( sqlInSQBInput != null && sqlInSQBInput.equals( editingQueryText ) )