task.addAssignment(assignment);
}
}
protected void importDependencies(Project project) {
MpxDependencyConverter converter=new MpxDependencyConverter();
for (net.sf.mpxj.Task mpxTask : mpxProjectFile.getAllTasks()){
// if (mpxTask.getNull() || mpxTask.getID()==null)
// continue;
if (mpxTask==mpxRootTask)
continue;
List<Relation> mpxRelations=mpxTask.getPredecessors();
if (mpxRelations==null) continue;
for (Relation mpxRelation : mpxRelations){
Dependency dependency=new Dependency();
converter.from(mpxRelation, dependency, state);
project.addDependency(dependency);
}
}
}