Esempio n. 1
0
 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);
 }
Esempio n. 2
0
  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;
  }
Esempio n. 3
0
 public void cancelEditor() {
   setErrorText(null);
 }