How to import a library [message #1784096] |
Thu, 22 March 2018 13:01 |
Francesco Bedini Messages: 32 Registered: March 2018 |
Member |
|
|
I have this content in eDSPNConstructors().qvto
modeltype EDSPN "strict" uses eDSPN(".../eDSPN");
library eDSPNConstructors(){
property randomSequence:Sequence(Integer) = Sequence{1,2,3,4,5,6,7,8,9};
/** Constructors **/
constructor Label::Label(given_text : String) {
...
}
}
Then in another file:
modeltype UML "strict" uses uml("http://www.eclipse.org/uml2/5.0.0/UML");
modeltype EDSPN "strict" uses eDSPN(".../eDSPN");
transformation AS2UPetriNetTransformation(in uml:UML, out net:EDSPN) extends library eDSPNConstructors();
I get the error: "Can't resolve module reference 'eDSPNConstructors'"
The file are both located into a "transforms" folder that is set as the QVT source container in the QVT Settings.
I also tried:
extends eDSPNConstructors();
Any idea? Does it make any sense to divide the helpers, query and constructors in different files?
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04126 seconds