if (isEditable)
// this will ensure that the schedule is extended far enough
// to include the date in question
tl.getSchedule().saveActualIndirectTime(targetDate, 0);
Period p = tl.getSchedule().get(targetDate);
if (p != null && p.getBeginDate() != EVSchedule.A_LONG_TIME_AGO
&& p.getEndDate(false).after(targetDate)) {
this.targetPeriod = p;
this.duration = (p.getEndDate().getTime() - p.getBeginDate()
.getTime()) / (double) DateUtils.DAYS;
if (isEditable) {
rowsAreEditable = true;
createEditingControls();
lockedLabel.addMouseListener(this);
}
setTime(p.getPlanDirectTime(), TimeChangeSource.Other);
}
}