if (element instanceof ViewerFolder) {
return ImageCache.getInstance().getImage(ImageCache.CATEGORY);
}
if (element instanceof ViewerModule) {
ModuleDescription md = ((ViewerModule) element).getModuleDescription();
Status status = md.getStatus();
if (status == Status.experimental) {
return ImageCache.getInstance().getImage(ImageCache.MODULEEXP);
} else {
return ImageCache.getInstance().getImage(ImageCache.MODULE);
}