Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Modeling Project Manager should be able to Load Resource which Identified by Content Type
Modeling Project Manager should be able to Load Resource which Identified by Content Type [message #1833498] Thu, 15 October 2020 06:20
jingcan chen is currently offline jingcan chenFriend
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.


Previous Topic:Delete Edge
Next Topic:[Property View] Shared between model explorer tree, EMF editor and Sirius
Goto Forum:
  


Current Time: Fri Apr 23 03:18:28 GMT 2021

Powered by FUDForum. Page generated in 0.01218 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top