public void setDefaultApplication ( App application ) { m_applicationDefault = application ; if ( application != null ) if ( ( ! ( m_applicationDefault instanceof MainApplication ) ) || ( application == m_applicationDefault ) ) { // Move db access properties down if ( m_args != null ) Util . parseArgs ( m_properties , m_args ) ; if ( m_properties . get ( DBParams . LOCAL ) == null ) m_properties . put ( DBParams . LOCAL , ( application . getProperty ( DBParams . LOCAL ) != null ) ? application . getProperty ( DBParams . LOCAL ) : DEFAULT_LOCAL_DB ) ; if ( m_properties . get ( DBParams . REMOTE ) == null ) m_properties . put ( DBParams . REMOTE , ( application . getProperty ( DBParams . REMOTE ) != null ) ? application . getProperty ( DBParams . REMOTE ) : DEFAULT_REMOTE_DB ) ; if ( m_properties . get ( DBParams . TABLE ) == null ) m_properties . put ( DBParams . TABLE , ( application . getProperty ( DBParams . TABLE ) != null ) ? application . getProperty ( DBParams . TABLE ) : DEFAULT_TABLE_DB ) ; } }
Set the default application .