[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.emf] Re: Loading all resources at the same time

Romulo,

Comments below.

Romulo Arpini wrote:
Hi Ed,

When we have a resource referecing another resource, you say in your book that the resource that is being referenced is lazily loaded when the property sheets needs to display the instances from the other resource.
Ok. Is there any simple way to load all the resources that is being referenced by the model?
EcoreUtil.resolveAll can be applied to a resource to resolve all the proxies. Applied to a resource set it resolves all proxies of all resources...

And another question Ed, that has nothing to do with the above question.
That will cost extra though. :-P

How can I get a resource that is being referenced without needing to pass the path of the xmi or to have an Eobject that is an instance of a class from that metamodel?
I don't follow. How is it being referenced. I.e, what information do you have or what's the starting point?

Sorry if I am not clear.

Thanks in advance.