public static ImageDescriptor getImageDescriptor ( String path ) { JBPMEclipsePlugin plugin = getDefault ( ) ; ImageRegistry reg = plugin . getImageRegistry ( ) ; ImageDescriptor des = reg . getDescriptor ( path ) ; if ( des == null ) { des = AbstractUIPlugin . imageDescriptorFromPlugin ( "org.jbpm.eclipse" , path ) ; reg . put ( path , des ) ; } return des ; }
Returns an image descriptor for the image file at the given plug - in relative path . Uses the plug ins image registry to cache it .