예제 #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);
 }
예제 #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;
  }
예제 #3
0
 public void cancelEditor() {
   setErrorText(null);
 }