protected Image convertToImage ( Object imageDescription ) { if ( imageDescription instanceof Image ) { return ( Image ) imageDescription ; } else if ( imageDescription instanceof ImageDescriptor ) { return this . imageHelper . getImage ( ( ImageDescriptor ) imageDescription ) ; } else if ( imageDescription instanceof String ) { return this . imageHelper . getImage ( ( String ) imageDescription ) ; } return null ; }
Replies the image that corresponds to the given object .