Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Provide model at runtime
Provide model at runtime [message #938031] Tue, 09 October 2012 13:40
Christian Pelster is currently offline Christian PelsterFriend
Messages: 23
Registered: January 2010
Junior Member
Hi all,

I've created a small DSL and now I'm facing the following problem:

I have some model files the contain some model elements that most likely will be used when someone is using the DSL.
I would like to deliver the model files with my "my.dsl.ui" plugin, but I've no idea how to achieve that my contributed models are visible to the model files that will be edited via this plugin.
I had the same problem when using my DSL via ant, there i came up with a solution like:

1. scan classpath for *.modelextension
2. add found resources to a resourceset
3. use the resourceset to get the actual model via resourceset.getResource("modelfile", ...)

Any ideas?


Previous Topic:Adding validation errors (and handling exceptions) in JvmModelInferrer
Next Topic:Get all nodes of a given grammar construct type
Goto Forum:

Current Time: Tue Mar 28 18:10:26 GMT 2017

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

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