* @date 12.07.2006
*/
public Image getColumnImage(Object element, int columnIndex) {
if(element instanceof IOfficeSearchMatch) {
IOfficeSearchMatch officeSearchMatch = (IOfficeSearchMatch)element;
IWorkbenchAdapter workbenchAdapter = (IWorkbenchAdapter)officeSearchMatch.getFile().getAdapter(IWorkbenchAdapter.class);
if(workbenchAdapter != null) {
ImageDescriptor descriptor = workbenchAdapter.getImageDescriptor(((IOfficeSearchMatch)element).getFile());
if (descriptor == null) {
return null;
}
Image image = SearchUIPluginImages.getImageRegistry().get(officeSearchMatch.getFile().getFileExtension());