use of org.obeonetwork.graal.TasksGroup in project InformationSystem by ObeoNetwork.
the class TaskImpl method getReferencedBy.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated NOT
*/
public EList<TaskReference> getReferencedBy() {
Collection<Setting> referencingTasksReferences = new GraalUsageCrossReferencer() {
@Override
protected boolean crossReference(EObject eObject, EReference eReference, EObject crossReferencedEObject) {
return eReference == GraalPackage.Literals.TASK_REFERENCE__TASK;
}
@Override
protected boolean containment(EObject eObject) {
// (We use Resource instead of CDOResource to avoid dependency on CDO)
return (eObject instanceof Resource) || (eObject instanceof System) || (eObject instanceof TasksGroup) || (eObject instanceof Task) || (eObject instanceof Loop) || (eObject instanceof TaskReference);
}
}.findUsage(this);
List<TaskReference> foundTasksReferences = new ArrayList<TaskReference>();
for (Setting setting : referencingTasksReferences) {
foundTasksReferences.add((TaskReference) setting.getEObject());
}
return ECollections.unmodifiableEList(new BasicEList<TaskReference>(foundTasksReferences));
}
Aggregations