public void displaySelection ( final String selection ) { WComponent selectedComponent = UIRegistry . getInstance ( ) . getUI ( selection ) ; if ( selectedComponent == null ) { // Can't load selected component. WMessages . getInstance ( this ) . error ( "Unable to load example: " + selection + ", see log for details." ) ; return ; } displaySelection ( selectedComponent ) ; }
Get the example picker to display the given selection .