private void updateReadyness ( ) { StringBuffer _buffer = new StringBuffer ( ) ; if ( null == myMessageProvider ) { _buffer . append ( NO_MESSAGE_PROVIDER ) ; } if ( null == myIconProvider ) { if ( _buffer . length ( ) > 0 ) { _buffer . append ( COMMA ) ; } _buffer . append ( NO_ICON_PROVIDER ) ; } if ( _buffer . length ( ) > 0 ) { _buffer . append ( DOT ) ; } myReasonWhyNotReady = _buffer . toString ( ) ; myIsReady = ( _buffer . length ( ) == 0 ) ; }
Do the self diagnostic and update the status .