Skip to content
Snippets Groups Projects
Commit d47b247d authored by Simon Barner's avatar Simon Barner
Browse files

- getReferencingResourceURIs(): Load side-car model resources via...

- getReferencingResourceURIs(): Load side-car model resources via ResourceSet.getResource. This has the advantage that custom resource factories will be considered
parent 4e1e362f
No related branches found
No related tags found
No related merge requests found
......@@ -62,7 +62,7 @@ import org.fortiss.tooling.kernel.service.IPersistencyService;
* @author mou
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: 25C72F05752AD6750F8DECDBF4E54798
* @ConQAT.Rating YELLOW Hash: A14278605586372E3CCEE85B91CF34CD
*/
public final class ResourceUtils {
......@@ -401,9 +401,7 @@ public final class ResourceUtils {
ResourceSet resourceSet = new ResourceSetImpl();
try {
URI siblingUri = URI.createFileURI(member.getLocation().toString());
Resource siblingResource = resourceSet.createResource(siblingUri);
siblingResource.load(EMFResourceUtils.buildOptionsMap());
Resource siblingResource = resourceSet.getResource(siblingUri, true);
EcoreUtil.resolveAll(resourceSet);
for(Resource currentResource : resourceSet.getResources()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment