|
|
|
|
Re: juno upgrade - uml2.types [message #1001276 is a reply to message #1000307] |
Wed, 16 January 2013 11:29 |
Marian Edu Messages: 10 Registered: March 2012 |
Junior Member |
|
|
first sorry for being so stupid no to turn on email notifications on the post
Ed, I'm using Juno 4.2.1 Build id: M20120914-1800 and I do see the option to 'reference' the Types package which is what I do.
The data type reference in ecore is like this: eType="ecore:EDataType http://www.eclipse.org/uml2/4.0.0/Types#//Boolean"
Christian, not sure if I need to register all ecore files and genmodels as I'm not directly using a UML file but the Ecore/EPackage generated out of it... however I did tried to register the uml2.types first like this:
uriMap = {
from = "platform:/plugin/org.eclipse.uml2.types/model/Types.genmodel"
to = "platform:/resource/org.eclipse.uml2.types/model/Types.genmodel"
}
uriMap = {
from = "platform:/plugin/org.eclipse.uml2.types/model/Types.ecore"
to = "platform:/resource/org.eclipse.uml2.types/model/Types.ecore"
}
registerGeneratedEPackage = "org.eclipse.uml2.types.TypesPackage"
registerGenModelFile = "platform:/resource/org.eclipse.uml2.types/model/Types.genmodel"
registerEcoreFile = "platform:/resource/org.eclipse.uml2.types/model/Types.ecore"
but then I get a PackageNotFoundException: Package with uri 'http://www.eclipse.org/uml2/2.2.0/GenModel' not found. (platform:/resource/org.eclipse.uml2.types/model/Types.genmodel, 7, 78)
I then tried to register everything as on your blog article, same error only now from platform:/resource/org.eclipse.uml2.uml/model/UML.genmodel.
In xtext file I can import "http://www.eclipse.org/uml2/4.0.0/UML" and "http://www.eclipse.org/uml2/4.0.0/Types"... but "http://www.eclipse.org/uml2/2.2.0/GenModel" is proposed as well, maybe there is something else that I need to register, or the plugin dependencies needs something to be added?
This was working just fine before, all I had to do was to register the generated EPackage... also tried to register the ecore file and the genmodel of my own model but didn't changed a thing
Thanks,
Marian
|
|
|
|
Powered by
FUDForum. Page generated in 0.03827 seconds