private void registerErrorHandlingStyles(IConfigRegistry configRegistry) {
// this is needed to support different styling on just in time
// conversion/validation
// error rendering in a text editor
Style conversionErrorStyle = new Style();
conversionErrorStyle.setAttributeValue(
CellStyleAttributes.BACKGROUND_COLOR, GUIHelper.COLOR_RED);
conversionErrorStyle.setAttributeValue(
CellStyleAttributes.FOREGROUND_COLOR, GUIHelper.COLOR_WHITE);
configRegistry.registerConfigAttribute(
EditConfigAttributes.CONVERSION_ERROR_STYLE,
conversionErrorStyle, DisplayMode.EDIT,
EditErrorHandlingExample.COLUMN_TWO_LABEL);
Style validationErrorStyle = new Style();
validationErrorStyle.setAttributeValue(
CellStyleAttributes.BACKGROUND_COLOR, GUIHelper.COLOR_BLACK);
validationErrorStyle.setAttributeValue(
CellStyleAttributes.FOREGROUND_COLOR, GUIHelper.COLOR_WHITE);
configRegistry.registerConfigAttribute(
EditConfigAttributes.VALIDATION_ERROR_STYLE,
validationErrorStyle, DisplayMode.EDIT,