}
return defaultEditor;
}
private static MongoDatePickerCellEditor buildDateCellEditor(final JsonTreeNode treeNode) {
final MongoDatePickerCellEditor dateEditor = new MongoDatePickerCellEditor();
// Note from dev: Quite ugly because when clicking on the button to open popup calendar, stopCellEdition is invoked.
// From that point, impossible to set the selected data in the node description
dateEditor.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent actionEvent) {
treeNode.getDescriptor().setValue(dateEditor.getCellEditorValue());
}
});
return dateEditor;
}