EcoreUtil.getURI(myProxyObject) : "child.uml"
-ResourceSet before EcoreUtil.resolveAll(myRootObject) :
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl@7614d6
resources=[org.eclipse.uml2.uml.internal.resource.UMLResourceImpl@1262c96
uri='/test/Test.uml']
-after resolveAll
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl@7614d6
resources=[org.eclipse.uml2.uml.internal.resource.UMLResourceImpl@1262c96
uri='/test/Test.uml',
org.eclipse.uml2.uml.internal.resource.UMLResourceImpl@1cd468c
uri='child.uml'
Ed Merks wrote:
Tristan,
The key to these kinds of proxy issues always turns out to involve me
asking the same basic questions. What is the URI of the resource
being loaded? What is the URI of the proxy within that resource?
Then I point out that the URI of the resource being loaded should be
absolute, i.e., file:/c:/..., http://...,
platform:/resource/project/... and remind folks that the relative URI
within the resource will be resolved against the absolute URI used to
load that resource. I'll also ask what the URI of each resource in
the resource set looks like. The probably look wrong...
Tristan FAURE wrote:
Hi
I am working on an custom EMF reflective editor where we the user
will be able to see models in "box mode" where he can navigate in
each compartment
My plugin works good but i have a problem when a user do a "load
resource" in his model.
When i get Elements referenced i got proxy elements where the
eResource method returns null.
when i do a EcoreUtil.resolveAll(myRootObject) i can see additional
resources but i can't see contents and when i do load on these i
have a filenotfoundException :'(
the additional resources' URI format are "filename.extension" withno
platform information ...
if anybody can help me to obtain EObjects through the proxy it could
be very nice :)
]