Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » create a project
icon5.gif  create a project [message #1038991] Thu, 11 April 2013 11:40 Go to next message
Yueming Hong is currently offline Yueming Hong
Messages: 87
Registered: April 2013
Member
I have a question about Xtext.
As shown in the 5 minutes tutorial, after getting preliminary support for a new language, the source file is still need to be created by manually add the extension and under project of other types.

Will it be possible to create a new type of project(your own type)? and will it be possible to automatically add file extension when a file is created within such project?

I am not sure about this since I just get to know Xtext and hope the community will help me out.

Thanks
Re: create a project [message #1039106 is a reply to message #1038991] Thu, 11 April 2013 15:25 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian Dietrich
Messages: 6131
Registered: July 2009
Senior Member
Hi,

simply uncommenting

fragment = projectWizard.SimpleProjectWizardFragment auto-inject {
    		      generatorProjectName = "${projectName}"
    		 }


in the workflow does the trick.
you may have to merge (copy) plugin.xml_gen to plugin.xml in the ui project.

you can adopt
Re: create a project [message #1039204 is a reply to message #1039106] Thu, 11 April 2013 18:39 Go to previous message
Steve Kallestad is currently offline Steve Kallestad
Messages: 62
Registered: March 2013
Member
Here's a pretty good tutorial on how to create a new project wizard.

You might want to customize the one XText provides or create your own entirely.
Previous Topic:Validation adding to results each time
Next Topic:semantic highlighting stops working after rename-refactor
Goto Forum:
  


Current Time: Fri Jul 25 19:23:34 EDT 2014

Powered by FUDForum. Page generated in 0.01431 seconds