public Image get ( ImageDescriptor descriptor ) { if ( descriptor == null ) descriptor = ImageDescriptor . getMissingImageDescriptor ( ) ; Image result = ( Image ) fRegistry . get ( descriptor ) ; if ( result != null ) return result ; Assert . isTrue ( fDisplay == SWTUtil . getStandardDisplay ( ) , "Allocating image for wrong display." ) ; //$NON-NLS-1$ result = descriptor . createImage ( ) ; if ( result != null ) fRegistry . put ( descriptor , result ) ; return result ; }
Returns the image associated with the given image descriptor .