/EcoreMetamodelExtraction

Ecore metamodel reverse engineering: extract Ecore metamodels from Java code.

Primary LanguageJavaEclipse Public License 1.0EPL-1.0

EcoreMetamodelExtraction

This project is a reverse engineering tool for Ecore metamodels. It allows extracting Ecore metamodels from any arbitrary Java code. At the core of the approach is a mapping from elements of the implicit Java metamodel, which the Java Language Specification defines, to elements of the Ecore meta-metamodel. The project makes heavy use of the EMF Ecore and the Eclipse JDT API.

Open Java projects in the Eclipse IDE can be selected to extract an Ecore Metamodel, which can be saved as an Ecore file. See the wiki for more details on the reverse engineering of Ecore metamodels.

How to install:

  1. Clone or download the project
  2. Import as existing project into the Eclipse IDE
  3. You need the Eclipse Modeling Framework and the Eclipse Java Development Tools, make sure that both are installed.
  4. Run the project as Eclipse Application.
  5. You can start the extraction from the context menu of a Java project or from the toolbar (provisional UI).
  6. Extracting metamodels from projects with errors can cause problems while resolving types (or other problems). It is recommended to use code for the reverse engineering of Ecore metamodels that compiles without problems.