I have tried by extending ColumnLabelProvider and used below code to the checkbox tree viewer
getTree().addListener(SWT.PaintItem, new Listener() {
@Override
public void handleEvent(Event event) {
TreeItem treeItem = (TreeItem) event.item;
ConfigTreeViewNode item = (ConfigTreeViewNode) treeItem.getData();
if (!(item instanceof ConfigTreeViewNodeConfig)) {
return;
}
ConfigTreeViewNodeConfig configNode = (ConfigTreeViewNodeConfig) item;
if (configNode.getValidationMessage() == null) {
return; // not evaluated yet
}
ConfigTreeViewLabelProvider labelProvider = (ConfigTreeViewLabelProvider) getLabelProvider();
Image image = labelProvider.getConversionValidationStateImage(configNode.getValidationMessage());
int x = event.x + event.width + 2; // give small margin
int itemHeight = getTree().getItemHeight();
int imageHeight = image.getBounds().height;
int y = event.y + (itemHeight - imageHeight) / 2;
event.gc.drawImage(image, x, y);
}
});
after this I am able to see ImageICON LabelText ImageICON as shown below
But when I mouse over on the node only first image and text are highlighted and tool tip is coming for them. I want to highlight the third image also and want to bring the tool tip like other selection.