Skip to main content


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?

Regards,

Pelle
Previous Topic:Generation of field initializers and methods body at JVM Inferring
Next Topic:How to customize hover for imported elements ?
Goto Forum:
  


Current Time: Tue Mar 19 11:27:53 GMT 2024

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

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

Back to the top