Community
Participate
Working Groups
While trying to use an Xtext-edited file as a QVTo transformation source I encountered the following problem. If all plugins are /resource/ the Xtext-edited file cannot be opened, since its content type is not registered. If all plugins are both /plugin/ and /resource/ but the QVTo mappings reference /resource/ the transformation fails because the Xtext-edited file opens against the /plugin/ static EPackage whereas the QVTo transformation uses the /resource/ dynamic EPackage. No type matches. Silly me, but an easy to create and hard to debug problem. To allow flexible development, it would be convenient to allow all (meta-)modeling activities to proceed in the current workspace. Xtext is the problem here. Somehow Xtext needs to make its content type to Resource Factory registration dynamically visible. In the UMLX/QVTd/OCL Model Registry I was advocating a shared URI mapping capability, which is still needed since QVTo and other tools each having unique URI mapping definitions. It now appears that we require a shared dynamic content type registry; primarily for Xtext.
Xtext actually re-uses EMF's contenttype/fileextension to ResourceFactory mapping...
Exactly. EMF supports /plugin/ resource registration but not /resource/ registration. New mechanisms are needed to make things work in the current workspace. EMF provides dynmaic/reflective Ecore to support /resource/ model content. Tools provide diverse URI mapping to support /resource/ URI registration. Nothing yet supports /resource/ content type registration.
Xtext relies on compiled parsers etc. I cannot image that this could work with a dynamic registry and reasonable effort / complexity / benefit tradeoff? Please reopen if I missed the point.