How to get the platform uri from a pathmap? [message #523000] |
Wed, 24 March 2010 17:23 |
Eclipse User |
|
|
|
Originally posted by: formatzeh.gmx.de
In another conversation I got the CrossReferencer recommended. So I get
all external references of an EObject with
EcoreUtil.ExternalCrossReferencer.find(referee);
The keys of the returned map represent the EObjects of the referencing
model in the other resource. I want to collect all resources which
reference the EObject 'referee' and are placed in the platform:
Map<EObject, Collection<Setting>> references =
EcoreUtil.ExternalCrossReferencer.find(referee);
for (EObject referer : references.keySet()) {
Resource resource = referer.eResource();
URI uri = resource.getURI();
String platformString = uri.toPlatformString(true);
if(platformString != null){
referers.add(platformString);
}
}
But I never get a platformString because the uri always is a pathmap.
How can I now translate the pathmap to a platform string? And where can
I read more about pathmaps?
best regards,
Gilbert
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03418 seconds