Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [MWE]problems using mwe.utils.Reader with UML2 + profiles
[MWE]problems using mwe.utils.Reader with UML2 + profiles [message #139114] Thu, 23 July 2009 15:52 Go to next message
ekkehard gentz is currently offline ekkehard gentzFriend
Messages: 118
Registered: July 2009
Location: rosenheim, Germany, bavar...
Senior Member

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
Re: [MWE]problems using mwe.utils.Reader with UML2 + profiles [message #139126 is a reply to message #139114] Thu, 23 July 2009 17:02 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Hi Ekke,

I think this is a regression, please file the bugzilla. Thanks for the
detailled explanation.

Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com


Am 23.07.2009 17:52 Uhr, schrieb ekke:
> 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
Re: [MWE]problems using mwe.utils.Reader with UML2 + profiles [message #139138 is a reply to message #139126] Thu, 23 July 2009 17:16 Go to previous message
ekkehard gentz is currently offline ekkehard gentzFriend
Messages: 118
Registered: July 2009
Location: rosenheim, Germany, bavar...
Senior Member

Hi Sebastian,

opened Bugzilla (https://bugs.eclipse.org/bugs/show_bug.cgi?id=284464)

ekke

Sebastian Zarnekow <Sebastian.Zarnekow@itemis.de> schrieb:

> Hi Ekke,
>
> I think this is a regression, please file the bugzilla. Thanks for the
> detailled explanation.
>
> Regards,
> Sebastian
>
--
ekke
independent software architect
senior erp consultant
blog: http://ekkes-corner.org


ekke
independent software architect

blog: http://ekkes-corner.org
twitter: @ekkescorner
Re: [MWE]problems using mwe.utils.Reader with UML2 + profiles [message #621175 is a reply to message #139114] Thu, 23 July 2009 17:02 Go to previous message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Hi Ekke,

I think this is a regression, please file the bugzilla. Thanks for the
detailled explanation.

Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com


Am 23.07.2009 17:52 Uhr, schrieb ekke:
> 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
Re: [MWE]problems using mwe.utils.Reader with UML2 + profiles [message #621176 is a reply to message #139126] Thu, 23 July 2009 17:16 Go to previous message
ekkehard gentz is currently offline ekkehard gentzFriend
Messages: 118
Registered: July 2009
Location: rosenheim, Germany, bavar...
Senior Member

Hi Sebastian,

opened Bugzilla (https://bugs.eclipse.org/bugs/show_bug.cgi?id=284464)

ekke

Sebastian Zarnekow <Sebastian.Zarnekow@itemis.de> schrieb:

> Hi Ekke,
>
> I think this is a regression, please file the bugzilla. Thanks for the
> detailled explanation.
>
> Regards,
> Sebastian
>
--
ekke
independent software architect
senior erp consultant
blog: http://ekkes-corner.org


ekke
independent software architect

blog: http://ekkes-corner.org
twitter: @ekkescorner
Previous Topic:[MWE]problems using mwe.utils.Reader with UML2 + profiles
Next Topic:emf compare
Goto Forum:
  


Current Time: Sat Feb 24 20:34:15 GMT 2024

Powered by FUDForum. Page generated in 0.02114 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top