public static ImageDescriptor createImageDescriptor(Bundle bundle,
			IPath path, boolean useMissingImageDescriptor)
	{
		URL url = FileLocator.find(bundle, path, null);
		if (url != null)
		{
			return ImageDescriptor.createFromURL(url);
		}
		if (useMissingImageDescriptor)
		{
			return ImageDescriptor.getMissingImageDescriptor();
		}
		return null;
	}
public static ImageDescriptor createImageDescriptor ( Bundle bundle , IPath path , boolean useMissingImageDescriptor ) { URL url = FileLocator . find ( bundle , path , null ) ; if ( url != null ) { return ImageDescriptor . createFromURL ( url ) ; } if ( useMissingImageDescriptor ) { return ImageDescriptor . getMissingImageDescriptor ( ) ; } return null ; }
/*
Creates an image descriptor for the given path in a bundle. The path can contain variables like $NL$. If no image
could be found, <code>useMissingImageDescriptor</code> decides if either the 'missing image descriptor' is
returned or <code>null</code>. Added for 3.1.1.