Java Code Examples for org.eclipse.emf.ecore.EStructuralFeature.Setting

The following are Jave code examples for showing how to use Setting of the org.eclipse.emf.ecore.EStructuralFeature class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: gemoc-studio   File: EMFResource.java   Source Code and License Vote up 6 votes
protected static Set<Resource> getRelatedResources(Resource res,
		Set<Resource> result) {
	if (result.contains(res))
		return result;
	result.add(res);
	Map<EObject, Collection<EStructuralFeature.Setting>> crossRefs = EcoreUtil.ExternalCrossReferencer
			.find(res);
	for (Map.Entry<EObject, Collection<EStructuralFeature.Setting>> entry : crossRefs
			.entrySet()) {
		EObject proxyEObject = entry.getKey();
		result.addAll(getRelatedResources(proxyEObject.eResource(), result));
	}
	return result;
}