private void setRowHeight(int itemHeight, Widget widget) { if (wigetExists(widget) && (widget instanceof Table || widget instanceof Tree)) { widget.setData(RWT.CUSTOM_ITEM_HEIGHT, new Integer(itemHeight)); } }