public Image getImage(Object element) {
if(element instanceof IWorkingSet) {
ImageDescriptor imageDescriptor = ((IWorkingSet) element).getImage();
if(imageDescriptor != null) {
try {
return (Image) images.create(imageDescriptor);
} catch(DeviceResourceException ex) {
return null;
}
}
}