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 09:40
Christian Pelster is currently offline Christian Pelster
Messages: 18
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?

Regards,

Pelle
Previous Topic:Adding validation errors (and handling exceptions) in JvmModelInferrer
Next Topic:How to customize hover for imported elements ?
Goto Forum:
  


Current Time: Wed Jul 23 14:20:46 EDT 2014

Powered by FUDForum. Page generated in 0.01519 seconds