#15 Output Configurations
Dec 11, 2012 | 8 minutes | Beginners
In this episode I demonstrate, how to create multiple output configurations (also called outlets) with different default settings and use it within an IGenerator implementation.
- source code Project Files in Zip (92.7 KB)
- mp4 Full Size H.264 Video (21.5 MB)
- m4v Smaller H.264 Video (12.3 MB)
- webm Full Size VP8 Video (12.8 MB)
- ogv Full Size Theora Video (25.4 MB)
Hi, OutputConfigurationProviderClass is not being generated in Eclipse version 3.7 . Any idea to get this class in this version.
could you please provide the Xtext version you are using?
I am using Xtext version 2.0.1. If I try to upgrade the version, I am getting compatibility error.
In Xtext version 2.0.1 you probably use MWE workflow files to run the generator. In this case you define your output configurations (called outlets) as follow
Then within your generator you can specify the letout to use
Thanks for the reply, I am new to xtext and when I added above block I got below Runtime Exception :
0 [main] INFO lipse.emf.mwe.utils.StandaloneSetup - Registering platform uri 'C:\xtext-eclipse-3.7'
1218 [main] ERROR mf.mwe2.launch.runtime.Mwe2Launcher - Problems running workflow org.xtext.example.mydsl.GenerateMyDsl: no 'slot' has been configured.
java.lang.RuntimeException: Problems running workflow org.xtext.example.mydsl.GenerateMyDsl: no 'slot' has been configured.
Appreciate your help
Below is the MWE code I am using:
you alter wrong MWE workflow file.
Normally with Xtext 2.0 you have two MWE files. First MWE workflow (that you posted here) is used to generate java and other artifacts from your
MyDsl.xtextgrammar. We will leave it alone for now.
The second workflow is used to generate code from your DSL. You will find this MWE file in the same directory your generator class located in. Within this MWE file you can define custom outlets, like I showed in my previous comment.
First sign in through GitHub to post a comment.