Hi André
i would say that depends highly on your EA diagrams. If they are similar to the Ecore structure it would be relatively easy.
If you dont need to store additional data inside of EA it gets even more easy.
I try to make an example:
You have created a stereotyped (from your UML profile) class called myClass1.
This type of class should be exported as an EClass.
You implement an EClass.cs file in your Addin which extends the class
MocaTaggableElement (if you want to store data in EA) or MocaSerializableElement (if you only want to serialize during export)
(Both classes are somehow explained at
https://code.google.com/p/ea-serialization-to-tree/)
You implement the serializeToMocaTree method of your new c# class.
You have to build the same tree we use.
During export you iterate over your EA Model and on every occurrence of your stereotyped class you will create an Object of EClass.cs,
call the serializeToMocaTree method and add this tree on your parent tree (which should be the tree of an EPackage)
After that you have a complete moca tree which will be transformed
to Ecore by our Eclipse plugin.
A disadvantage is that you have to build up the same structure we do and your code (especially in eclipse) will be dependent on our plugin.
From my point of view i would say that its worth a try.
You can start simple with a single EPackage.cs, implement the needed method and see how far you can get.