Skip to main content


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 15:40 Go to next message
Yueming Hong is currently offline Yueming HongFriend
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 19:25 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
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


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: create a project [message #1039204 is a reply to message #1039106] Thu, 11 April 2013 22:39 Go to previous message
Steve Kallestad is currently offline Steve KallestadFriend
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: Thu Apr 18 20:46:31 GMT 2024

Powered by FUDForum. Page generated in 0.01954 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top