|
|
Re: Resolve proxies [message #974009 is a reply to message #973989] |
Tue, 06 November 2012 19:55 |
Zlatka Manas Messages: 26 Registered: March 2012 |
Junior Member |
|
|
@Inject
ResourceDescriptionsProvider resourceDescriptionsProvider;
Resource res = ex.eResource();
IResourceDescriptions index = resourceDescriptionsProvider.getResourceDescriptions(ex.eResource());
The provider is null so I cannot get the descriptions. ex is an Expression from the language.
I also have (different method)
IResourceDescription descr = index.getResourceDescription(myResource.getURI());
EObject object = null;
for(IContainer visibleContainer: manager.getVisibleContainers(descr, index)) {
for(IResourceDescription visibleResourceDesc: visibleContainer.getResourceDescriptions()) {
System.out.println(visibleResourceDesc.getURI());
}
for (IEObjectDescription od : visibleContainer.getExportedObjectsByType(PooslPackage.Literals.DATA_METHOD_CALL)) {
DataMethodCall sodModel = (DataMethodCall) od.getEObjectOrProxy();
object = EcoreUtil2.resolve(sodModel, myResource);
}
}
}
[Updated on: Tue, 06 November 2012 19:58] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03762 seconds