/** * {@inheritDoc} After the error is handled by its underlying {@link IEditErrorHandler}, the * configured error style will be applied to the editor control. */ @Override public void displayError(ICellEditor cellEditor, Exception e) { super.displayError(cellEditor, e); if (!this.errorStylingActive) { Control editorControl = cellEditor.getEditorControl(); // store the current rendering information to be able to reset again originalBgColor = editorControl.getBackground(); originalFgColor = editorControl.getForeground(); originalFont = editorControl.getFont(); // set the rendering information out of the error style editorControl.setBackground( this.errorStyle.getAttributeValue(CellStyleAttributes.BACKGROUND_COLOR)); editorControl.setForeground( this.errorStyle.getAttributeValue(CellStyleAttributes.FOREGROUND_COLOR)); editorControl.setFont(this.errorStyle.getAttributeValue(CellStyleAttributes.FONT)); if (decorationProvider != null) { decorationProvider.showDecoration(); } this.errorStylingActive = true; } }