// handling
// at least
// for undo
// TODO this code is a hack and does not belong here.
Dependency dependency = (Dependency) rowNode.getImpl();
DependencyService dependencyService = DependencyService.getInstance();
try {
Duration duration = (Duration) ((col == 4) ? value : getValueAt(row, 4)); // TODO
// can
// not
// assume
// column
// positions
int type = ((Number) DependencyType.mapStringToValue((String) ((col == 3) ? value : getValueAt(row, 3)))).intValue();
dependencyService.setFields(dependency, duration.getEncodedMillis(), type, this);
dependencyService.update(dependency, this);
} catch (InvalidAssociationException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
} else {