refactor the editor generation in order to generate an EMF editor