Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » possibility to have one xtext editor for many files?
possibility to have one xtext editor for many files? [message #902922] Tue, 21 August 2012 08:11 Go to next message
frank fotso is currently offline frank fotsoFriend
Messages: 91
Registered: May 2012
Member
Morning Everybody

i'm working with xtext and Ecore.
i would like to know if:
it is possible to have one editor for many differents files with different extension?

that means, normally i have many xtext grammars for differents particular extension(may be call .eep .mem and .sys) and that doesn't help me.
so i want to have one xtext grammar and one xtext editor to manage different extension files( .mem , .eep , .sys) and i want to know if that is possible?


Best regards
Frank
Re: possibility to have one xtext editor for many files? [message #902924 is a reply to message #902922] Tue, 21 August 2012 08:20 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Hi yes this is possible. You can configure a list of extensions in
the language workflow but note: you still have only one entry rule
for the parser and thus to ensure via check that the right content
goes to the right file

--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: possibility to have one xtext editor for many files? [message #902933 is a reply to message #902924] Tue, 21 August 2012 09:25 Go to previous messageGo to next message
frank fotso is currently offline frank fotsoFriend
Messages: 91
Registered: May 2012
Member
Thks Christian
can you tell me where to look or to configure that lists of extension or if you have any tutorial talking about that part, that will be great.

Thanks in advance ,
Frank
Re: possibility to have one xtext editor for many files? [message #902935 is a reply to message #902933] Tue, 21 August 2012 09:30 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
As I said: there is a property in the workflow. (Don't forget to
merge plugin.XML_gen to plugin.xml

--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: possibility to have one xtext editor for many files? [message #903595 is a reply to message #902935] Fri, 24 August 2012 13:15 Go to previous messageGo to next message
frank fotso is currently offline frank fotsoFriend
Messages: 91
Registered: May 2012
Member
thks Christian
i saw the place where i will put differents extension
but how do i separate the differents extensions. i have added the extension pdp like this
var grammarURI = "classpath:/org/xtext/example/mydsl/MyDsl.xtext"
var file.extensions = "mydsl , pdp"
var projectName = "org.xtext.example.mydsl"
var runtimeProject = "../${projectName}"

but is not working
Re: possibility to have one xtext editor for many files? [message #903604 is a reply to message #903595] Fri, 24 August 2012 13:37 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
"mydsla,mydslb" works for me. But as I said: you may have to merge
(copy) plugin.xml_gen to plugin.xml in the runtime and UI project

--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:Multiple EObjects from a single rule.
Next Topic:why a parser exception inside a converter is ignored by my test ?
Goto Forum:
  


Current Time: Wed Apr 24 17:00:47 GMT 2024

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

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

Back to the top