class WorkbenchLayoutInfoImpl implements WorkbenchLayoutInfo {

    @Override
    public int getHeaderHeight() {
        try {
            return workbenchLayout.getHeaderPanel().getBoundingClientRect().getHeight().intValue();
        } catch (Exception e) {
            return 0;
        }
    }

}