|Re: Resources loading problems. [message #1274510 is a reply to message #1274503]
||Fri, 21 March 2014 15:24
| Olivier Constant
Registered: January 2012
Q1 : Is the "if ... LOADED" normal?
Well, I don't see why not. If the list of _resources has changed since the last call to load() but scope exploration is not yet complete, then it will load missing resources.
Q2 : What are the resources which are being used? I load my own resources then add them into list _resources, but I don't see anything in the viewer.
FragmentedModelScope was designed to start from a single file/resource URI and incrementally extend, load and explore the scope according to user-defined / metamodel-specific rules. It was not initially designed to start from a set of resources. Nevertheless, this scenario would make sense too. I do not see why it would not work in this scenario at first glance, but I may be missing something. So I am interested in extending FragmentedModelScope to support your scenario if a change is needed. Just tell me if you notice anything abnormal during your tests.
i found a solution for Q2 :
i have to add my resource in the _resources list to be compared, and add it again to _rootresources to be displayed in the viewer.
Indeed, a class invariant is that _rootResources must be included into _resources. I will make it more explicit in the Javadoc.
Powered by FUDForum
. Page generated in 0.02578 seconds