Our language uses some references found in a custom EMF resource (i.e. not managed by XText), and the names of some of these references may contain dots. They are exported as single-segment QNames by the customized IResourceDescription.
These specific references only occur at a given point in the grammar, however, I cannot use this fact in a custom IQualifiedNameConverter since this class is not sensitive to grammar context. This means the strings entered in the DSL text will be split when searching the object descriptions provided by the global scope, and the scope search will fail.
Should I implement some form of escaping of the dot character in both the custom resource description and the qualified name provider of the grammar? I'm not sure of the latter, since the DSL has no grammar rule to define the objects I'm trying to import.
do you care about the segments in the names. if not what about customizing the ResourceServiceProvider for your emf resource
(bind custom IDefaultResourceDescriptionStrategy in your AbstractGenericResourceRuntimeModule subclass)
Need professional support for Xtext, Xpand, EMF?
Go to: http://xtext.itemis.com
Twitter : @chrdietrich
Blog : christiandietrich.wordpress.com
Thanks, it works if I split the names containing dots in the custom emf resource description, and it's not a problem to have them in several segments (although it makes no semantic sense, it's not visible anyway)