use of org.eclipse.emf.ecore.EStructuralFeature.Setting in project InformationSystem by ObeoNetwork.
the class TaskImpl method getUseCase.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated NOT
*/
public UseCase getUseCase() {
Collection<Setting> useCaseReferences = new GraalUsageCrossReferencer() {
@Override
protected boolean crossReference(EObject eObject, EReference eReference, EObject crossReferencedEObject) {
return eReference == GraalPackage.Literals.USE_CASE__TASKS;
}
@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 UseCase);
}
}.findUsage(this);
UseCase useCase = null;
for (Setting setting : useCaseReferences) {
useCase = (UseCase) setting.getEObject();
break;
}
return useCase;
}
Aggregations