calculate(true,task);
} else if (changedObject instanceof Dependency) { // dependency added or
// removed
Dependency dependency = (Dependency) changedObject;
if (!dependency.refersToDocument(project))
return;
if (!objectEvent.isUpdate()) {
reset(); // refresh predecssor list - the whold thing may change drastically no matter what the link because of parents
}
task = (Task)dependency.getPredecessor();