[Xpand2]Loading multiple model files [message #675932] |
Wed, 01 June 2011 21:39  |
Eclipse User |
|
|
|
Howdy!
I'm currently loading both Xtext models and XMI models using the org.eclipse.xtext.mwe.Reader and org.eclipse.emf.mwe.utils.Reader components respectively:
component = Reader {
uri = "platform:/resource/org.xtext.example.generator/src/model/default.graph"
modelSlot = "qgraph"
}
component = org.eclipse.xtext.mwe.Reader {
// lookup all resources on the classpath
// useJavaClassPath = true
// or define search scope explicitly
path = modelPath
// this class will be generated by the xtext generator
register = org.xtext.RpgdslStandaloneSetup {}
load = {
slot = "model"
type = "Model"
}
}
Is there a way to load every XMI file in a folder? Or better yet, every file with a given extension? As opposed to defining what exactly is the file we want to load that is. I know the Xtext reader can do that, it would be useful if the other one did as well!
Thank you for your time,
Sérgio Silva
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03930 seconds