There are cases where table viewer icon decoration is not possible. ( exception single column table , you can do). By creating overlay icons and returning them in
ITableLabelProvider
public Image getColumnImage(Object element, int columnIndex) would suffice.
Ex:
ImageDescriptor desc = WorkbenchPlugin.getImageDescriptor(FilterIconDecorator.DECORATOR_ICON_PATH);
if(desc != null)
{
DecorationOverlayIcon decoratedImage = new DecorationOverlayIcon(
image, desc, IDecoration.BOTTOM_LEFT);
if (decoratedImage != null)
return decoratedImage.createImage();
}
No comments:
Post a Comment