[MWE]problems using mwe.utils.Reader with UML2 + profiles [message #621174] |
Thu, 23 July 2009 15:52 |
|
I'm migrating my projects from oaw4 to oaw5 (MWE + Xpand + Xtext).
in oaw4 I'm using
org.eclipse.mwe.emf.Reader
(long time ago I used the org.openarchitectureware.emf.XmiReader, but switched
to emf.Reader because XMIReader is deprecated)
now in oaw5 I renamed
org.eclipse.mwe.emf.Reader into org.eclipse.emf.mwe.utils.Reader
but now this emf reader has problems to read
* EMF-UML2-XMI exports from MagicDraw
* uml files written by UML2Writer
If I'm using the
(deprecated) org.eclipse.xtend.typesystem.emf.XmiReader
then all works well.
If I make a short test after readinf the model like
allOwnedElements().typeSelect(Entity).size
then I'm getting 0 using emf Reader under oaw5
and the correct value using XMIReader.
using oaw4 both log correct size: emf reader and XMIReader
talked about this with Karsten Thoms:
problems seem to be a different behaviour if you're using emf + uml2 + profile
meta-models.
my current definitions in my Xpand, Xtend, Xcheck components:
1. EMF MetaModel
2. UML2 MetaModel
3. UML2 Profiles MetaModel
(works using XMIReader in oaw4 and oaw5, works also using emf Reader in oaw4)
Since Xpand / MWE / Xtext 0.7.1 it should work if you only define the profiles
MetaModel in Xpand or Xtend components.
in Karsten's workflow this works
for my workflow this also works (I can remove emf metamodel and uml2 metamodel
from my components)
...but - as before - it only works using XMIReader, not using emf Reader
(My uml2 model is a MagicDraw 16.5 model exported as EMF - UML2 - XMI)
btw: if I define metamodels in components in this order:
1. uml2 profile
2. emf
then I get errors like
Couldn't find operation 'setName(String)' for uml::Property from Xtend
Couldn't find operation 'getAppliedStereotype(String)' for
uml::EnumerationLiteral from generator
--------------
after hours and hours of testing I have to say this is really a regression
and at the moment - to work with oaw5 - I have to use the deprecated XMIReader
any ideas ?
or should I open a Bugzilla ?
ekke
ekke@ekkes-corner.org
--
ekke
independent software architect
senior erp consultant
blog: http://ekkes-corner.org
ekke
independent software architect
blog: http://ekkes-corner.org
twitter: @ekkescorner
|
|
|
Powered by
FUDForum. Page generated in 0.02328 seconds