resolve references between two files in webUI [message #1805966] |
Mon, 29 April 2019 09:02  |
Eclipse User |
|
|
|
I am trying to build a web editor for an existing dsl. As a start I created a myDSL
grammar org.xtext.example.mydsl.MyDsl with org.eclipse.xtext.xbase.annotations.XbaseWithAnnotations
generate myDsl "http://www.xtext.org/example/mydsl/MyDsl"
Model:
'package' name=QualifiedName
greetings+=Greeting*
;
Greeting:
'Hello' type =JvmTypeReference name=ID '!'
('greet ' greeted += [Greeting|QualifiedName] '!')*
;
I added the Save,Load and Generated buttons and added the FileResourceHandler.
Now I start ServerLauncher an I can open the editor in the browser.
Now I create two resources
Example1.mydsl
package test
Hello String A !
Hello String B !
greet A!
Example2.mydsl
package test1
Hello String B1 !
greet test.A!
error test.A cannot be resolved.
What do I have to do to include all resources found in one directory?
Is there any way to generate all resources (Like a clean build in eclipse)?
Thanks!
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.15216 seconds