File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes IDEs, Version Control and other tools and the fly likes Eclipse - which EMF plug-in? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Eclipse - which EMF plug-in?" Watch "Eclipse - which EMF plug-in?" New topic

Eclipse - which EMF plug-in?

Fintan Conway
Ranch Hand

Joined: Apr 03, 2002
Posts: 141
To use EMF to develop UML models and generate the code for them - should I download the EMF plug-in, or are there other plug-ins based on EMF that I should download?
Dave Steinberg

Joined: Aug 18, 2003
Posts: 20
You'll definately need to download the EMF plug-ins to get started. This includes the runtime support for EMF-based applications and the code generation tools. However, EMF is not, itself, a UML modeling tool. If you want to create your models in UML, you'll need a tool like:
  • Rational Rose, for which EMF has built-in import support.
  • Omondo EclipseUML, which natively supports EMF. A free edition is available.
  • ArgoUML, which uses Argo2Ecore to export to EMF. ArgoUML is open source.

  • A modeling tool isn't essential, though, as you can also specify models for EMF using annotated Java interfaces or XML Schema. Chapter 2 of the book discusses these issues, and Chapters 6, 7 and 8 detail the mappings from annotated Java, XML Schema and UML, respectively, to Ecore, EMF's "native" meta-model language.

    Author of <a href="" target="_blank" rel="nofollow">Eclipse Modeling Framework</a>
    Joe Pluta
    Ranch Hand

    Joined: Jun 23, 2003
    Posts: 1376
    Ahhhhhhh. That answers my other question. EMF is a meta-definition utility, that supports (today) UML, XML and annotated Java. Omondo adds the UML modeling capabilities on top of EMF.
    Thus, with Omondo you can work from the UML stage and then generate either XML or Java.
    Is there enough information in the book for a truly insane person to start fiddling around with an RDB interface? Are there already plans for such a thing? I know it's in the overall direction, but ave concrete steps been made? Because I'd be pretty interested in such a capability, and even working on one.
    Joe Pluta
    Ranch Hand

    Joined: Jun 23, 2003
    Posts: 1376
    Okay, along the same lines, do you have a preference for an XML editor for use with EMF generated XML?
    Frank Budinsky

    Joined: Sep 08, 2003
    Posts: 28
    The book doesn't include specific information about how to implement RDB support for EMF but between the book, the emf newsgroup, and poking through the code, a "truly insane person" should be able to figure it out.
    From the emf newsgroup, I've gotten the impression that several people are already playing around with this kind of thing. We also are doing some prototyping in this area ourselves, but we aren't ready to commit to releasing anything yet.
    For your editing XML question, there is an EMF-generated sample editor that we provide with EMF that can be used to edit EMF generated XML files.

    Lead author of <a href="" target="_blank" rel="nofollow">Eclipse Modeling Framework</a>.
    Joe Pluta
    Ranch Hand

    Joined: Jun 23, 2003
    Posts: 1376
    Oh goodie... just what I need. Another newsgroup to monitor .
    Seriously, though, this looks like it has a LOT of synergy with the stuff I do for a living, so you may well find me puttering about.
    I agree. Here's the link:
    subject: Eclipse - which EMF plug-in?
    Similar Threads
    EMF + UML 2 Tools [model to java code]
    how to install Eclipse-plun-in Visual Editor (VE) ?
    Spring + JPA + Hibernate and multiple Database connection
    JDeveleper and rmi
    Eclipse Visual Editor , the design pane disappear