public void addResourceAssignment ( ResourceAssignment assignment ) { if ( getExistingResourceAssignment ( assignment . getResource ( ) ) == null ) { m_assignments . add ( assignment ) ; getParentFile ( ) . getResourceAssignments ( ) . add ( assignment ) ; Resource resource = assignment . getResource ( ) ; if ( resource != null ) { resource . addResourceAssignment ( assignment ) ; } } }
Add a resource assignment which has been populated elsewhere .