Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » xtext with multiple file extensions(xtext with multiple file extensions)
xtext with multiple file extensions [message #1736893] Mon, 04 July 2016 09:18 Go to next message
Sachin Samaram is currently offline Sachin SamaramFriend
Messages: 271
Registered: April 2016
Senior Member
Hi,

Can I have multiple file extensions for xtext editor?

I can have extensions like test.jpl, test.scr, test.jam. All have the same type of parser rules.
Re: xtext with multiple file extensions [message #1736895 is a reply to message #1736893] Mon, 04 July 2016 09:25 Go to previous messageGo to next message
Sachin Samaram is currently offline Sachin SamaramFriend
Messages: 271
Registered: April 2016
Senior Member
Is it possible to configure it in the .mwe2 file as a comma-separated list.
Re: xtext with multiple file extensions [message #1736898 is a reply to message #1736895] Mon, 04 July 2016 09:28 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
yes. dont forget to merge (maybe copy) plugin.xml_gen changed contents to plugin.xml

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: xtext with multiple file extensions [message #1736899 is a reply to message #1736898] Mon, 04 July 2016 09:33 Go to previous messageGo to next message
Sachin Samaram is currently offline Sachin SamaramFriend
Messages: 271
Registered: April 2016
Senior Member
After adding the comma separated extension in .mwe2 file I generated artifacts. Nothing has changed in plugin.xml_gen. Contents in plugin.xml and plugin.xml_gen are same.
Re: xtext with multiple file extensions [message #1736900 is a reply to message #1736899] Mon, 04 July 2016 09:35 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
can you share e.g. the

<extension point="org.eclipse.xtext.builder.participant">
<participant
class="org.xtext.example.mydsl.ui.MyDslExecutableExtensionFactory:org.eclipse.xtext.builder.IXtextBuilderParticipant"
fileExtensions="mydsl"/>
</extension>

of the plugin.xml in mydsl.ui


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: xtext with multiple file extensions [message #1736912 is a reply to message #1736900] Mon, 04 July 2016 11:20 Go to previous messageGo to next message
Sachin Samaram is currently offline Sachin SamaramFriend
Messages: 271
Registered: April 2016
Senior Member
<extension point="org.eclipse.xtext.builder.participant">
<participant
class="com.prolifics.jpl.ui.JPLEditorExecutableExtensionFactory:org.eclipse.xtext.builder.IXtextBuilderParticipant"
fileExtensions="jpl,scr,jam,asc"/>
</extension>
Re: xtext with multiple file extensions [message #1736913 is a reply to message #1736912] Mon, 04 July 2016 11:24 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
then it should work fine

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: xtext with multiple file extensions [message #1736914 is a reply to message #1736912] Mon, 04 July 2016 11:24 Go to previous message
Sachin Samaram is currently offline Sachin SamaramFriend
Messages: 271
Registered: April 2016
Senior Member
Its working sir. Sorry. It just copied the extension first now I replaced entire plugin.xml with plugin_XML_gen

[Updated on: Mon, 04 July 2016 11:26]

Report message to a moderator

Previous Topic:Xtext Dependencies for RCP Applications
Next Topic:[SOLVED] Strange erroneous behavior of xtext-maven-plugin
Goto Forum:
  


Current Time: Fri Apr 19 02:11:12 GMT 2024

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

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

Back to the top