Skip to main content

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] Mon, 14 May 2012 02:14
Joey Mink is currently offline Joey MinkFriend
Messages: 87
Registered: July 2009
Location: Centreville, VA, USA


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:

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

-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: Sat Dec 05 01:02:07 GMT 2020

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

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

Back to the top