if ( image == null ) { log.logError( "Unable to load image [" + filename + "] for plugin " + plugin.getIds()[ 0 ] ); image = SwtSvgImageUtil.getMissingImage( display );
/** * Load image from several sources. */ public static SwtUniversalImage getImageAsResource( Display display, String location ) { SwtUniversalImage result = null; if ( result == null && SvgSupport.isSvgEnabled() ) { result = getImageAsResourceInternal( display, SvgSupport.toSvgName( location ) ); } if ( result == null ) { result = getImageAsResourceInternal( display, SvgSupport.toPngName( location ) ); } if ( result == null && !location.equals( NO_IMAGE ) ) { log.logError( "Unable to load image [" + location + "]" ); result = getImageAsResource( display, NO_IMAGE ); } if ( result == null ) { log.logError( "Unable to load image [" + location + "]" ); result = getMissingImage( display ); } return result; }
if ( image == null ) { log.logError( "Unable to load image file [" + filename + "] for plugin " + step ); image = SwtSvgImageUtil.getMissingImage( display );