Automatically Load generated Xtext [message #1736357] |
Tue, 28 June 2016 18:58  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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)
does
|
|
|
Powered by
FUDForum. Page generated in 0.03127 seconds