Model Importer Implementation [message #545901] |
Fri, 09 July 2010 14:57 |
Martin Knauer Messages: 10 Registered: July 2010 Location: Karlsruhe (DE) + Lyon (FR... |
Junior Member |
|
|
Hi,
I'm required to write a model importer along the lines of the XML Schema/Rose/Annotated Java importers used when defining EMF models the usual way.
Unfortunately I was unable to find any documentation on this subject. Also, the sources of the original importers contain very little comments and I have a hard time understanding the code.
I know how to read my input format and how to create a dynamic ecore model from it, but I don't know how to integrate it into an importer like the ones I mentioned above. Also, I'm not sure if creating an dynamic ecore model is the best approach..?
Where is a good place to start looking for information regarding this matter?
I'm new to eclipse development and to EMF, so please excuse me if I missed something obvious...
Kind regards,
Martin
[Updated on: Fri, 09 July 2010 15:05] Report message to a moderator
|
|
|
|
|
|
Re: Model Importer Implementation [message #551170 is a reply to message #551096] |
Thu, 05 August 2010 13:41 |
Ed Merks Messages: 33141 Registered: July 2009 |
Senior Member |
|
|
I would expect most folks to use the ANT tasks for this. We have tests
that use those in org.eclipse.emf.test.tools so you could have a look at
how those run, i.e., extract them from CVS...
koïta Aboubakar wrote:
> Hello,
>
> I am also currently trying to generate UML model from from Java
> annotations through Ecore \ Genmodel .
>
> For the first step, i.e Java2Genmodel, I consulted the
> org.eclipse.emf.importer.ecore.Java2GenModel plugin documentation at
> http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.emf/org .eclipse.emf/plugins/org.eclipse.emf.importer.java/readme.ht ml?root=Modeling_Project&view=co
>
>
> I try to run unsuccessfully generation with the following command :
> eclipsec -noSplash -clean -application
> org.eclipse.emf.importer.java.Java2GenModel <workspace absolute
> path for genmodel file to generate> -package <file URI of the
> annoted Java package located in a eclipse project>
>
>
> This command product only a empty genmodel file without the ecore model.
>
> As Martin said, there is a lack of documentation on the use of these
> pluging, and I continue to try to understand the code. Meanwhile, I
> remain interested by any suggestion on the problem.
>
> Best regards,
>
> Aboubakar Koïta
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.04703 seconds