|
|
|
|
|
Re: How to run the code generator from another eclipse instance [message #690904 is a reply to message #685901] |
Thu, 30 June 2011 12:01 |
john doe Messages: 74 Registered: June 2011 |
Member |
|
|
Hi there. I found some documentation about including the 'SimpleProjectWizardFragment' (http://www.eclipse.org/Xtext/documentation/latest/xtext.html#projectwizard) in my generator workflow located in my .generator project, under src/workflow. I include the following code snippet:
// project wizard fragment
fragment = projectWizard.SimpleProjectWizardFragment {
generatorProjectName = "${projectName}.generator"
modelFileExtension = file.extensions
}
Unfortunately, it won't work for me. I just gives me errors with each line stating:
- Couldn't resolve reference to JvmType 'projectWizard.SimpleProjectWizardFragment'.
- Couldn't resolve reference to JvmFeature 'fragment'.
- Couldn't resolve reference to Referrable 'projectName'.
- Couldn't resolve reference to JvmFeature 'generatorProjectName'.
- Couldn't resolve reference to Referrable 'file.extensions'.
- Couldn't resolve reference to JvmFeature 'modelFileExtension'.
I have included the import 'import org.eclipse.xtext.ui.generator.* '
any ideas what I'm missing here?
Thanks
[Updated on: Thu, 30 June 2011 12:01] Report message to a moderator
|
|
|
|
|
Re: How to run the code generator from another eclipse instance [message #690984 is a reply to message #685900] |
Thu, 30 June 2011 13:54 |
john doe Messages: 74 Registered: June 2011 |
Member |
|
|
Christian Dietrich wrote on Mon, 20 June 2011 11:11Hi,
Alex already said what to do
(1) enable the SimpleProjectWizard in the workflow of the dsl
(2) run the workflow
(3) merge/copy plugin-xml_gen to plugin.xml
(4) start runtime
(5) create the a dsl project specific for your dsl
~Christian
Hi there Chrisitan.
I have completed the steps as per the documentation. I have followed the steps of merging the plugin-xml_gen with my dsl project's ui plugin.xml. I have tested it out by running a new eclipse instance and creating a new project that pertains to my DSL (called 'criteria'). Now, what does this mean for me? I have this Xtext project and does this mean that I can edit the template and run it to generate code? Sorry if these questions seem a little trivial but this is all new territory for me and I appreciate the help. Thanks
[Updated on: Thu, 30 June 2011 13:59] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06280 seconds