COConfigurationManager.addAndFireParameterListener("SWT_bGTKTableBug",
new ParameterListener() {
public void parameterChanged(String parameterName) {
// some people switch from motif to gtk & back again, so make this
// only apply to GTK, even if it was enabled prior
bFixGTKBug = COConfigurationManager
.getBooleanParameter("SWT_bGTKTableBug")
&& Utils.isGTK && SWT.getVersion() < 3226;
}
});
if (!bFixGTKBug || t == null || t.isDisposed())
return 0;
return -t.getHeaderHeight();