public static ImageLoader getInstance() {
if (ImageLoader.instance == null) {
ImageLoader.instance = new ImageLoader(Display.getDefault(), null);
// always add az2 icons to instance
SkinPropertiesImpl skinProperties = new SkinPropertiesImpl(
ImageRepository.class.getClassLoader(),
"org/gudy/azureus2/ui/icons/", "icons.properties");
ImageLoader.instance.addSkinProperties(skinProperties);
}
return ImageLoader.instance;