Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Automatically Load generated Xtext(Loading autogenerated DSL file at runtime)
Automatically Load generated Xtext [message #1736357] Tue, 28 June 2016 18:58 Go to next message
Sonia Ravindran is currently offline Sonia RavindranFriend
Messages: 16
Registered: June 2016
Junior Member
When I write a DSL using Xtext (a.mydsl) , I generate another DSL file (b.mydsl) which complies to existing grammar of my DSL language.
The Newly generated DSL does not reflect to my existing EMF model until i open and re-save the file manually. How can i tell Xtext to parse and load the newly generated DSL file?
Re: Automatically Load generated Xtext [message #1736450 is a reply to message #1736357] Wed, 29 June 2016 12:49 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14652
Registered: July 2009
Senior Member
i dont know if that is a good idea but your could try to customize

org.eclipse.xtext.builder.BuilderParticipant.handleChangedContents(Delta, IBuildContext, EclipseResourceFileSystemAccess2)

and call org.eclipse.xtext.builder.IXtextBuilderParticipant.IBuildContext.needRebuild()

as org.eclipse.xtext.builder.JavaProjectBasedBuilderParticipant.handleChangedContents(Delta, IBuildContext, IFileSystemAccess)

Twitter : @chrdietrich
Blog :
Previous Topic:No JVM Operators XExpressionOrVarDeclaration
Next Topic:Limit the feature scope of a type
Goto Forum:

Current Time: Mon Feb 26 02:31:33 GMT 2024

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

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

Back to the top