Use xmi elements inside the dsl [message #1000691] |
Tue, 15 January 2013 09:12 |
|
Hello everyone!
I've got a complex situation in my hands. I've got an ecore project where I can define some "Functions". From this ecore I've generated an .xmi file with a sample function definition.
My DSL uses that ecore:
...
import "http://www.eclipse.org/xtext/common/JavaVMTypes" as jvmTypes
import "http://www.eclipse.org/xtext/xbase/Xbase" as xbase
import "platform:/resource/com.egicon.ats.sequence.model/model/AtsSequenceEdit.ecore" as coreSequence
...
RealFunction:
'REAL_FUNCTION'
function=[coreSequence :: Function]
;
What I want is this: user can call sample function (xmi file) from RealFunction rule.
Is the cross reference correct? How can I import the xmi file (need to have scope for defined functions)?
Thanks for your tips!
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03444 seconds