[Bug #1141] Remove Task.reloadResourcesTextIfChange().

We think it's not necessary to reload the resources text when the start date of
a task is updated, and that's what was being done here.

This change caused a invalidate() on the ZK object of the task, which destroyed
the old object and replaced it with a new one. Because of that, the setter we
implemented to fix bug #1141 didn't work.

FEA: ItEr75S04BugFixing
This commit is contained in:
Jacobo Aragunde Pérez 2011-11-10 19:44:12 +01:00
parent 33aada4540
commit 0f4e3e4ee2

View file

@ -96,7 +96,6 @@ public abstract class Task implements ITaskFundamentalProperties {
fundamentalPropertiesListeners.firePropertyChange("beginDate",
previousStart, fundamentalProperties.getBeginDate());
fireEndDate(previousEnd);
reloadResourcesTextIfChange(newStart, previousStart);
}
@Override
@ -204,13 +203,6 @@ public abstract class Task implements ITaskFundamentalProperties {
newStart);
}
private void reloadResourcesTextIfChange(GanttDate newDate,
GanttDate previousDate) {
if (!ObjectUtils.equals(newDate, previousDate)) {
reloadResourcesText();
}
}
public void fireChangesForPreviousValues(GanttDate previousStart,
GanttDate previousEnd) {
dependenciesEnforcerHook.setStartDate(previousStart, previousStart,