@Override
protected void commitValue() {
// If there is a selected file, then update the value, else keep old value.
File file = fileNameChooser.getSelectedFile();
if (file != null) {
ValueNode returnVN = new FileNameValueNode(file.getPath(), getValueNode().getTypeExpr());
replaceValueNode(returnVN, true);
notifyValueCommitted();
}
}