void (PropertyChangeEvent evt) { // when user starts edit we need to force disable ok actions, because tree.isEditing() still false; // after editing completed okActions will be enabled automatically by dialog validation myDialog.enableOkActions(!(Boolean)evt.getNewValue()); }