Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Specify DSL files to build(Can I filter the files built by the Xtext builder?)
Specify DSL files to build [message #871470] Sun, 13 May 2012 22:14
Eclipse UserFriend
Hi,

In the workflow for Eclipse projects in our DSL, users mark a file as "active". Any files included by the active file (or by files included by the active file) should be built. Any DSL files not included in this way should not be built.

However, by default Xtext appears to build all DSL files. Does anyone have a suggestion for filtering the files built by the Xtext builder? I've considered the following:

IXtextBuilderParticipant
-this seems to allow additional capability when building, but doesn't allow control over which resources are built

ToBeBuiltComputer
-this seems like the right place to insert my logic, but extending it is "discouraged access" and I can't seem to bind my implementation. Other posts imply this is a global (all languages) binding for Xtext, so maybe it is not an option.

Other options would be to write my own Problems view, etc. to present the IDE to the user in a way that hides information about files that are outside of the "active" DSL file and its included files. But that will still cost users the performance of building/indexing all files in their project.

Any thoughts would be appreciated!
Previous Topic:"Hiding" a rule
Next Topic:[Xtext 1] Could not serialize cross reference when saving programmatically created model
Goto Forum:
  


Current Time: Thu Jul 03 06:28:28 EDT 2025

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

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

Back to the top