Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » multiple DSLs, one Xtext project
multiple DSLs, one Xtext project [message #926391] Fri, 28 September 2012 16:14 Go to next message
Stefano Cottafavi is currently offline Stefano CottafaviFriend
Messages: 57
Registered: July 2009
Member
Hi all,
I would like to if it's possible to have multiple DSLs in the same Xtext project and how the various parts behave together.
will it use multiple injectors (one for each DSLs)?
will be the editor single? will be injected accordingly to the dsl file extension?
and could multiple editors created in such way appear in the same multi-page editor?

thank you in advance.

stefano
Re: multiple DSLs, one Xtext project [message #927101 is a reply to message #926391] Sat, 29 September 2012 08:47 Go to previous messageGo to next message
Henrik Lindberg is currently offline Henrik LindbergFriend
Messages: 2509
Registered: July 2009
Senior Member
Think you need to describe in some more detail what it is you are trying
to achieve - what do you mean by "having multiple DSL's in the same
Xtext project"?

Do you mean different grammars? Different models?

Typically there are multiple injectors (one per "language"), but there
is nothing stopping you from doing advanced things with injectors if you
want to.

- henrik

On 2012-28-09 9:14, Stefano Cottafavi wrote:
> Hi all,
> I would like to if it's possible to have multiple DSLs in the same Xtext
> project and how the various parts behave together.
> will it use multiple injectors (one for each DSLs)?
> will be the editor single? will be injected accordingly to the dsl file
> extension?
> and could multiple editors created in such way appear in the same
> multi-page editor?
>
> thank you in advance.
>
> stefano
Re: multiple DSLs, one Xtext project [message #927113 is a reply to message #927101] Sat, 29 September 2012 09:08 Go to previous messageGo to next message
Stefano Cottafavi is currently offline Stefano CottafaviFriend
Messages: 57
Registered: July 2009
Member
Hi Henrik,
exactly. I would have different grammars and different models; and of course different editors, that I can load in different pages of a multi-page editor (like Eclipse PDE) retrieving the right injector.

Is this possible?

Ste
Re: multiple DSLs, one Xtext project [message #927488 is a reply to message #927113] Sat, 29 September 2012 18:25 Go to previous messageGo to next message
Henrik Lindberg is currently offline Henrik LindbergFriend
Messages: 2509
Registered: July 2009
Senior Member
Why is it important to you that they are in the same project / bunlde?
It just complicates things as you can not use the defaults. What are you
trying to achieve?

- henrik

On 2012-29-09 2:08, Stefano Cottafavi wrote:
> Hi Henrik,
> exactly. I would have different grammars and different models; and of
> course different editors, that I can load in different pages of a
> multi-page editor (like Eclipse PDE) retrieving the right injector.
>
> Is this possible?
>
> Ste
Re: multiple DSLs, one Xtext project [message #927513 is a reply to message #927488] Sat, 29 September 2012 19:06 Go to previous message
Stefano Cottafavi is currently offline Stefano CottafaviFriend
Messages: 57
Registered: July 2009
Member
Oh,
well actually I have them in different projects. It's not a real problem. It can do just fine as it is now.

I was convinced that my approach - keep them separate - was not so good for delivery purposes, cause a lot of independent plugins were created, but sure it works.

Thanks
Ste
Previous Topic:Permission of the generated files
Next Topic:Extend xtend with more extension methods
Goto Forum:
  


Current Time: Tue Apr 16 06:14:21 GMT 2024

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

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

Back to the top