public void editorValueChanged(boolean oldValidState, boolean newValidState) { if (!newValidState) // currently not valid so show an error message setErrorText(editor.getErrorMessage()); else // currently valid setErrorText(null); }
public CellEditor getEditor(Composite parent) { if (editor == null) { editor = descriptor.createPropertyEditor(parent); if (editor != null) { editor.addListener(cellEditorListener); } } if (editor != null) { editor.setValue(editValue); setErrorText(editor.getErrorMessage()); } return editor; }
public void cancelEditor() { setErrorText(null); }