|
Re: Multiple versions of a grammar in parallel [message #1760005 is a reply to message #1760000] |
Fri, 21 April 2017 07:09 |
|
well there are multiple thinks of this.
(a) you can't install multiple versions of the same plugin, you can install multiple plugins only => no simple update mechanism
(b) xtext supports content type based language differentiations by some adoptions of plugin.xml (and maybe other places)
e.g. org.eclipse.xtext.content_resourceServiceProvider instead of org.eclipse.xtext.extension_resourceServiceProvider,
register editor based on content type instead of file extension
i dont know of any documentation or tutorials on this nor have a ever don this myself
and i dont know if this runs properly with all features you use and need.
(c) xtext 2.11 has the option to switch parser entry rule from outside, maybe you can leverage this from your usecase as well (e.g. adoption XtextResourceFactory)
(d) just have one grammar/parser and do the distinction there somehow (dont know where the version idenitifer is at your code)
=> you need to find a way to mitigate the usability flaws of (a) and have a look if you can get (b) running
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Day Job: https://www.everest-systems.com
|
|
|
|
Powered by
FUDForum. Page generated in 0.04097 seconds