[Complete OCL] Correct way of importing referred metamodels [message #1022350] |
Thu, 21 March 2013 14:09  |
Eclipse User |
|
|
|
Hello,
If my metamodel references other metamodels, what is the correct way of importing and using them in a Complete OCL document?
Currently I am suing:
import 'http://www.eclipse.org/qvt/0.9/QVTcoreBase'
import 'http://www.eclipse.org/qvt/0.9/QVTcore'
Where QVTCore references elements in the QVTcoreBase metamodel, and it seems to work. I would assume that then, I would need two separate package sections to define context restrictions:
package qvtcore
context Mapping
...
endpackage
package qvtcorebase
context CoreDomain
...
endpackage
However, if I use this method the CoreDomain context is not recognized, although the quick fix suggests replacing it for CoreDomain.
If I put all the contexts in the qvtcore package the error goes away.
But if I now lunch an eclipse instance from my environment and open the complete OCL, things works the other way round. That is, the single package generates errors and the separate package approach does not.
Can it be something related to the way the imported metamodels are resolved?
(I have attached screenshots with the errors)
Attachment: OCLForum.zip
(Size: 140.09KB, Downloaded 213 times)
|
|
|
|
Powered by
FUDForum. Page generated in 0.03577 seconds