protected void updateNotify ( long sequence ) { IServiceReference [ ] refs = null ; try { if ( aggregator != null && aggregator . getPlatformServices ( ) != null ) { refs = aggregator . getPlatformServices ( ) . getServiceReferences ( IOptionsListener . class . getName ( ) , "(name=" + registrationName + ")" ) ; //$NON-NLS-1$ //$NON-NLS-2$ if ( refs != null ) { for ( IServiceReference ref : refs ) { IOptionsListener listener = ( IOptionsListener ) aggregator . getPlatformServices ( ) . getService ( ref ) ; if ( listener != null ) { try { listener . optionsUpdated ( this , sequence ) ; } catch ( Throwable ignore ) { } finally { aggregator . getPlatformServices ( ) . ungetService ( ref ) ; } } } } } } catch ( PlatformServicesException e ) { if ( log . isLoggable ( Level . SEVERE ) ) { log . log ( Level . SEVERE , e . getMessage ( ) , e ) ; } } }
Notify options change listeners that Options have been updated