|Provide model at runtime [message #938031]
||Tue, 09 October 2012 13:40
| Christian Pelster
Registered: January 2010
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", ...)
Powered by FUDForum
. Page generated in 0.03961 seconds