juno upgrade - uml2.types [message #1000280] |
Mon, 14 January 2013 07:35  |
Eclipse User |
|
|
|
I have a dsl backed-up by an UML model that was working just fine for Indigo but when upgrading to Juno I can't just get it to work anymore.
The issue seems to be due to the change from UML 2.2.0 to 4.0.0 and now when I refresh the genmodel it shows me the 'Types' package that wasn't there before... if I try to reference it the mwe workflow stops with this transformation diagnostic error:
The existing attribute 'reference' has an incompatible type 'null'. The expected type is 'EString' [java.lang.String]. (ErrorCode: CannotCreateTypeInSealedMetamodel)
The primitive types in the generated ecore model were changed from EString to String, I added the uml2 import in xtext file but doesn't change anything (import "http://www.eclipse.org/uml2/4.0.0/Types" as types)... is there something that need to be added to the mwe workflow? I only have one registerGeneratedEPackage there that point to the generated model code from the source UML.
Sorry for the basic question, I don't seems to be able to find a way through... any hints?
Thanks,
Marian
|
|
|
|
|
|
Re: juno upgrade - uml2.types [message #1001276 is a reply to message #1000307] |
Wed, 16 January 2013 06:29   |
Eclipse User |
|
|
|
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.26190 seconds