Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Import/Export of XMI models to/from the EMFStore (How to import/export an XMI model to/from the EMFStore)
Import/Export of XMI models to/from the EMFStore [message #1700696] Mon, 06 July 2015 14:01 Go to next message
Yuri Sokolovski is currently offline Yuri SokolovskiFriend
Messages: 9
Registered: July 2015
Junior Member
Hi,

Is there a way to import/export the EMF model in XMI format into/from the EMFStore?

Appreciate any response!

Thank you!

Re: Import/Export of XMI models to/from the EMFStore [message #1701033 is a reply to message #1700696] Wed, 08 July 2015 19:55 Go to previous messageGo to next message
Edgar Mueller is currently offline Edgar MuellerFriend
Messages: 89
Registered: March 2011
Member
Hi Yuri,

have you already tried to read the XMI file via a resource, get its
contents and add them via ESLocalProject.getModelElements().

Cheers,
Edgar

> Hi,
> Is there a way to import/export the EMF model in XMI format into/from
> the EMFStore?
>
> Appreciate any response!
>
> Thank you!
>
>


--
Edgar Mueller

Get Professional Eclipse Support:
http://eclipsesource.com/en/services/developer-support/
Re: Import/Export of XMI models to/from the EMFStore [message #1701209 is a reply to message #1701033] Thu, 09 July 2015 20:51 Go to previous message
Yuri Sokolovski is currently offline Yuri SokolovskiFriend
Messages: 9
Registered: July 2015
Junior Member
Hi, Edgar.

No I haven't tried any programmatic way.

I made it work finally once I had changed my XMI model so that it didn't extend any of the ECore elements (EClass or EAttribute) - initially the model I created was extending ECore model quite a bit.

Then I could import it into the EMF Store Model Explorer and had no issues. It seems that EMF Store gets confused if the model depends on any of the ECore modeling elements.

Thank you for your response.

Regards,
-Yuri
Previous Topic:[EMF Forms] Null Pointer Exception on Custom View
Next Topic:Question: How to import an XMI model into EMFStore Model Explorer
Goto Forum:
  


Current Time: Thu Mar 28 17:45:37 GMT 2024

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

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

Back to the top