Bug 321540 Extends Integrated SQB to include database definition in the SQM
Extends the integrated SQL Query Builder to include a connection's database definition in its custom SQLQuerySourceFormat. Through this, database specific information is made readily available to a client at runtime for customized formatting of the SQL query source.
data/org.eclipse.birt.report.data.oda.jdbc.dbprofile.ui/src/org/eclipse/birt/report/data/oda/jdbc/dbprofile/ui/internal/sqb/CustomSQLBuilderDialog.java
return m_savedSQBState;
	}
	
    private SQLBuilderDesignState getSQLBuilderState( String sqbInputName )
    {
        SQLBuilder sqlBuilder = getSQLBuilder();
        if( sqlBuilder == null )
            return null;    
        
        
        return new SQLBuilderDesignState( sqbInputName, sqlBuilder );
    }
    
    QueryStatement getSQLQueryStatement() 
    {
        refreshSQLQueryStatement();
        return getSQLBuilder().getDomainModel().getSQLStatement();
    }
    private void refreshSQLQueryStatement()
    {
        if( ! isDirty() )
            return;     
        
        
        
        SQLBuilder sqlBuilder = getSQLBuilder();
        SQLSourceViewer sourceViewer = sqlBuilder.getSourceViewer();
        boolean currentTextModified = sourceViewer.isTextChanged();
        
        sourceViewer.setTextChanged( true );