Skip to content

Proof of concept for the integration of Ecore functionality into existing Java code.

License

Notifications You must be signed in to change notification settings

Ecorification/JavaCodeEcorification

 
 

Repository files navigation

JavaCodeEcorification

This is a proof of concept for the automatic integration of Ecore functionality into Java code. We call this process Ecorification. The goal is to integrate Ecore functionality into Java code while preserving all of its original functionality. Preserving the original functionality of the Java code requires retaining the interfaces which are offered by the modules of the code and also retaining all internal functionality of the code. That means the product of the Ecorification is the original code, enriched with the desired Ecore functionality. It can be used exactly as before, but it also uses the modeling infrastructure and implements all interfaces for Ecore-based tooling.

The basic idea of the Ecorification is to find an Ecore representation of the Java code, which is used to integrate its Ecore functionality into the Java code. The Ecore representation is obtained by creating an Ecore metamodel that represents the Java code as closely as possible (with the help of the EcoreMetamodelExtraction project). We use the Eclipse Modeling Framework to generate Ecore model code from the Ecore metamodel. We then interlace both the original Java code and the generated Ecore model code. This can be achieved by utilizing the separation of interface and implementation in the Ecore count to mount the original code into the super relation hierarchy of the model code. The combination of both codes then contains the implementation details of the original code and the Ecore functionality of the model code. This way, the Java Code Ecorification allows the integration of Ecore functionality.

This process is depicted in the following diagram:

The Ecorification Process

How to install:

  1. Clone or download the project.
  2. Import as existing project into the Eclipse IDE.
  3. Do the steps one and two of the EcoreMetamodelExtraction project installation instructions (use Eclipse 2018-09 or newer, Oxygen is no longer supported, tested up to Eclipse 2020-06).
  4. You need the Eclipse Modeling Framework, the Eclipse Java Development Tools, the Eclipse Plug-in Development Environment, the Xtend IDE, XAnnotations, and log4j. Make sure that all of them are installed.
  5. Run the project as Eclipse Application.
  6. You can start the extraction from the context menu of a Java project (provisional UI).

About

Proof of concept for the integration of Ecore functionality into existing Java code.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 63.4%
  • Xtend 36.6%