[Xtext 2.3] Cross references in DSL across multiple DSL files? [message #1023202] |
Sat, 23 March 2013 15:45 |
Alan DW Messages: 119 Registered: March 2012 |
Senior Member |
|
|
Hello everyone,
I've written a DSL in Xtext 2.3 and the editor is working fine, except for one detail. I need to be able to cross-reference instances specified in one DSL file in a different file within the same project (preferably via qualified name). This works well within one file with the default configuration, but across file borders, I only have access to the root objects, not to the objects contained within them.
I've tried to replace this line:
fragment = exporting.QualifiedNamesFragment {}
... with this:
fragment = exporting.SimpleNamesFragment {}
in the MWE2 file, which makes it work, but I would strongly prefer to have qualified names instead of the plain names. I also tried to define the rule
QualifiedName: ID ('.' ID)*;
as an unreferenced parser rule in my .xtext file, but it did not change anything.
Any hints about what has to be changed in the default configuration to make qualified name references in the DSL files work across file borders? Basically I just want to be able to reference *any* object from *any* file by its qualified name, no restrictions needed.
Thanks,
Alan
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02717 seconds