Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » ECore to MOF XMI and back
ECore to MOF XMI and back [message #419772] Fri, 06 June 2008 14:35 Go to next message
Andy Evans is currently offline Andy EvansFriend
Messages: 61
Registered: July 2009
Member
Hi,

Does anyone know of an Eclipse based (preferable open source) which
can convert from ECore to MOF XMI and back?

Thanks,

Andy
Re: ECore to MOF XMI and back [message #419773 is a reply to message #419772] Fri, 06 June 2008 15:01 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Andy,

In the editor you can save as *.emof to get an EMOF serialization and
when loading one of those, you can save as *.ecore to get an Ecore one
back. EMOFResourceFactoryImpl's resources do the magic to convert them.


ase wrote:
> Hi,
>
> Does anyone know of an Eclipse based (preferable open source) which
> can convert from ECore to MOF XMI and back?
>
> Thanks,
>
> Andy
>
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: ECore to MOF XMI and back [message #419910 is a reply to message #419773] Thu, 12 June 2008 16:05 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: matthias.schmidt.xactium.com

Hi Ed,

I hit the same issues like Andy did.
Could you give me more details, please? Which editor do you mean?

I tried the editor for .ecore files, the .ecore_diagram and the EMF
editor generated out of the .ecore file. I always went to File -> Save
As... but the Save As dialogue simply allows to change the name of the
file rather then the file type.

In addition to that. Could you point me to a package which includes the
EMOFResourceFactoryImpl class.

Cheers!
Matthias




Ed Merks wrote:
> Andy,
>
> In the editor you can save as *.emof to get an EMOF serialization and
> when loading one of those, you can save as *.ecore to get an Ecore one
> back. EMOFResourceFactoryImpl's resources do the magic to convert them.
>
> ase wrote:
>> Hi,
>>
>> Does anyone know of an Eclipse based (preferable open source) which
>> can convert from ECore to MOF XMI and back?
>>
>> Thanks,
>>
>> Andy
>>
>>
Re: ECore to MOF XMI and back [message #419912 is a reply to message #419910] Thu, 12 June 2008 17:57 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Matthias,

The Sample Ecore Editor, the one you open directly on a .ecore file,
without the diagram. You change the name to end with .emof and it will
change the serialization format to be EMOF; it says so on the
description... Ctrl-Shift-T should be your best friend:
org.eclipse.emf.ecore.xmi.impl is the package and
org.eclipse.emf.ecore.xmi is the plugin.


Matthias Schmidt wrote:
> Hi Ed,
>
> I hit the same issues like Andy did.
> Could you give me more details, please? Which editor do you mean?
>
> I tried the editor for .ecore files, the .ecore_diagram and the EMF
> editor generated out of the .ecore file. I always went to File -> Save
> As... but the Save As dialogue simply allows to change the name of the
> file rather then the file type.
>
> In addition to that. Could you point me to a package which includes
> the EMOFResourceFactoryImpl class.
>
> Cheers!
> Matthias
>
>
>
>
> Ed Merks wrote:
>> Andy,
>>
>> In the editor you can save as *.emof to get an EMOF serialization and
>> when loading one of those, you can save as *.ecore to get an Ecore
>> one back. EMOFResourceFactoryImpl's resources do the magic to
>> convert them.
>>
>> ase wrote:
>>> Hi,
>>>
>>> Does anyone know of an Eclipse based (preferable open source) which
>>> can convert from ECore to MOF XMI and back?
>>>
>>> Thanks,
>>>
>>> Andy
>>>
>>>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Re: Add New Resource Storage Mechanism
Next Topic:[CDO] loading old resources after modifying the model
Goto Forum:
  


Current Time: Fri Apr 19 14:41:20 GMT 2024

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

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

Back to the top