Skip to main content



      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 04:11 Go to next message
Eclipse UserFriend
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 04:20 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: possibility to have one xtext editor for many files? [message #902933 is a reply to message #902924] Tue, 21 August 2012 05:25 Go to previous messageGo to next message
Eclipse UserFriend
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 05:30 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: possibility to have one xtext editor for many files? [message #903595 is a reply to message #902935] Fri, 24 August 2012 09:15 Go to previous messageGo to next message
Eclipse UserFriend
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 09:37 Go to previous message
Eclipse UserFriend
"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
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 Jul 16 04:09:36 EDT 2025

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

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

Back to the top