}
} else if (typeExpr.isNonParametricType(CAL_RelativeTime.TypeConstructors.RelativeDateTime)) {
RelativeDateTimeValueNode dateTimeValueNode = (RelativeDateTimeValueNode) valueEntryPanel.getValueNode();
// Check. If it's parseable, then it's valid (of course!).
// If not parseable, then give a default value of the date time in ValueNode.
DateFormat dateTimeFormat = RelativeTemporalValueNode.getDateFormat(DateFormat.FULL, DateFormat.MEDIUM);
try {
dateTimeFormat.parse(currentText);
} catch (ParseException pe) {
currentText = dateTimeFormat.format(dateTimeValueNode.getDateTimeValue());
changed = true;
}
} else if (typeExpr.isNonParametricType(CAL_Time.TypeConstructors.Time)) {