Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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
Joey Mink is currently offline Joey Mink
Messages: 82
Registered: July 2009
Location: Virginia, USA
Member

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!
 
Read Message
Previous Topic:"Hiding" a rule
Next Topic:[Xtext 1] Could not serialize cross reference when saving programmatically created model
Goto Forum:
  


Current Time: Mon May 20 17:59:46 EDT 2013

Powered by FUDForum. Page generated in 0.01661 seconds