Overview

The EmfUtils provides UI enhancements for EMF (Eclipse Modeling Framework). It helps to locate the non-generated, self-written code in sources generated with EMF.

Introduction

The EMF (Eclipse Modeling Framework ) is a well-known modeling framework in the Eclipse community. With EMF you create an Ecore model and generate some Java code from this model. Afterwards you can customize the generated code by overriding the generated code, or by adding some additional code. This yields to a code which is a mixture between generated and non-generated code. Typically the portion of the non-generated code is rather small (5% - 10%).

This yields to the following challenge:

  • How to locate the non-generated, self-written code in the generated code?
As a simple solution this project provides some 'Java Element Filters' for different Eclipse JDT views of the 'Java' and 'Java Browsing' perspective, namely
  • EMF generated types filter



    Filters out all generated types without any non-generated members

    Applies to
    • Package Explorer in Java perspective
    • Types view in Java Browsing perspective


  • EMF generated members filter



    Filters out all generated members

    Applies to
    • Package Explorer in Java perspective
    • Members view in Java Browsing perspective