Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Adding C/C++ nature to DSL project with the project wizard
Adding C/C++ nature to DSL project with the project wizard [message #1412496] Tue, 26 August 2014 09:50 Go to next message
Pedro Isidro is currently offline Pedro IsidroFriend
Messages: 2
Registered: July 2014
Junior Member
I have created a DSL which generates C++ code and I have enabled the SImpleProjectWizard fragment in the GenerateMyDsl.mwe2 workflow. What I would like to do now is to make the wizard automatically add the C/C++ nature to the newly created MyDsl project. Can this be done? If so, how?
Re: Adding C/C++ nature to DSL project with the project wizard [message #1414473 is a reply to message #1412496] Sun, 31 August 2014 11:56 Go to previous message
Lorenzo Bettini is currently offline Lorenzo BettiniFriend
Messages: 1754
Registered: July 2009
Location: Firenze, Italy
Senior Member
On 26/08/2014 11:50, Pedro Isidro wrote:
> I have created a DSL which generates C++ code and I have enabled the
> SImpleProjectWizard fragment in the GenerateMyDsl.mwe2 workflow. What I
> would like to do now is to make the wizard automatically add the C/C++
> nature to the newly created MyDsl project. Can this be done? If so, how?

Hi

there should be some method to be redefined/extended in the base classes
of the project creator that adds the natures; you should have a look at
such method and customize it (you may have to create a custom derived
class extending the one generated, and bind it in your UI module).

cheers
Lorenze

--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
HOME: http://www.lorenzobettini.it
Xtext Book:
http://www.packtpub.com/implementing-domain-specific-languages-with-xtext-and-xtend/book
Previous Topic:Strange Guice Injector error
Next Topic:Generate mutiple file for my dsl from Command Line
Goto Forum:
  


Current Time: Thu Dec 05 17:12:52 GMT 2019

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

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

Back to the top