if ( value != null && value instanceof byte[] )
{
byte[] currentImageData = ( byte[] ) value;
ImageDialog dialog = new ImageDialog( shell, currentImageData, SWT.IMAGE_JPEG );
if ( dialog.open() == TextDialog.OK && dialog.getNewImageRawData() != null )
{
setValue( dialog.getNewImageRawData() );
return true;
}
}