I would like to change tooltip for close button from "close" to "delete" and to replace an "x" with another image. I found the corresponding places in the code of SWT.
Class CTabFolder:
String _getToolTip(int x, int y) {
// ...
if ((showClose || item.getShowClose()) && item.closeRect.contains(x, y)) {
return SWT.getMessage("SWT_Close"); //$NON-NLS-1$
}
Class CTabFolderRenderer:
void drawClose(GC gc, Rectangle closeRect, int closeImageState) {
// ...
}
To my sorrow I noticed neither of both methods can be overridden. So is there really no chance to fulfill my requirement? And this although CTabFolderRenderer is even intended to be subclassed. User Niranjan asked a similar question and he apparently managed to solve one of my problems. But how?