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
private void updateDirtyStatus() 
    {
        Shell dialogShell = getParentShell();
        if( dialogShell == null || dialogShell.getText() == null ) 
            return;
        
        String currentTitle = dialogShell.getText();
        if( isDirty() ) 
        {
            if( ! currentTitle.startsWith( DIRTY_STATUS_MARK ) ) 
            {
                dialogShell.setText( DIRTY_STATUS_MARK + currentTitle );
            }
        } 
        else if( currentTitle.startsWith( DIRTY_STATUS_MARK ) ) 
        {
            dialogShell.setText( currentTitle.substring(1) );
        }
    }
    /*
     * (non-Javadoc)
     * @see org.eclipse.datatools.sqltools.sqlbuilder.sqlbuilderdialog.SQLBuilderDialog#close()
     */
    public boolean close()
    {
        getSQLBuilder().removeContentChangeListener( this );
        return super.close();
    }
}