Modeling Project Manager should be able to Load Resource which Identified by Content Type [message #1833498] |
Thu, 15 October 2020 06:20 |
jingcan chen Messages: 1 Registered: December 2019 |
Junior Member |
|
|
When converting to a Modeling Project,Sirius trigers ModelingProjectManagerImpl to add semantic resource.
LoadEMFResource#shouldBeAbleToLoad is called before loading semantic resource.We found that shouldBeAbleToLoad has a predication:
if (set.getResourceFactoryRegistry().getFactory(uri, null).getClass() == XMIResourceFactoryImpl.class) {
...
ableToLoad = modelFileSaxParser.isLoadable();
}
this semms not right,set.
using getFactory(uri, null), the null paramter will make it not query from
ResourceFactoryRegistryImpl#contentTypeIdentifierToFactoryMap to get a proper Resource.Factory.
So,when we load semantic resources like arxml for example,they are not going be added to the session.Though,we can register the Resource.Factory to ResourceFactoryRegistryImpl#extensionToFactoryMap.
I think this might be a defect.
|
|
|
Powered by
FUDForum. Page generated in 0.02872 seconds