changed = true;
}
} else if (typeExpr.isNonParametricType(CAL_RelativeTime.TypeConstructors.RelativeDate)) {
RelativeDateValueNode dateValueNode = (RelativeDateValueNode) valueEntryPanel.getValueNode();
// Check. If it's parseable, then it's valid (of course!).
// If not parseable, then give a default value of the date in ValueNode.
DateFormat dateFormat = RelativeTemporalValueNode.getDateFormat(DateFormat.FULL, -1);
try {
dateFormat.parse(currentText);
} catch (ParseException pe) {
currentText = dateFormat.format(dateValueNode.getDateValue());
changed = true;
}
} else if (typeExpr.isNonParametricType(CAL_RelativeTime.TypeConstructors.RelativeTime)) {