Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Compile errors with EEF code from XSD generated EMF model(Compile errors with EEF code from XSD generated EMF model)
Compile errors with EEF code from XSD generated EMF model [message #1219394] Tue, 03 December 2013 16:19
John Palof is currently offline John PalofFriend
Messages: 18
Registered: July 2009
Junior Member
I have been chasing a problem where my EEF code generation results in code which fails to compile. The problem code appears to involve issues with Strings. I have been able to recreate the problem in the Library Tutorial when generating the EMF model from an XML schema. This is what I tried:

1) I followed the 'Generating an EMF Model using XML Schema' tutorial ( and generated the EMF editor.

2) I then followed to create the EEF code.

3) The generated code has two types of issues (ex:

a) There is an incomplete import statement:
// Start of user code for imports
import ;

b) The first parameter in the following method call is missing a parameter:
if (isAccessible(LibraryViewsRepository.Book.Properties.title_))
basePart.setTitle_(EEFConverterUtil.convertToString(, book.getTitle()));

If I perform the same steps but use the Rose model (library.mdl) to generate the EMF model everything is fine.

Do I need to alter the EMF model or EEF code generation templates to correct this?

Any type of help or guidance would be greatly appreciated.


PS: I have attached the model, edit, and editor projects for both approaches (mdl -> emf and xsd -> emf).

[Updated on: Tue, 03 December 2013 16:47]

Report message to a moderator

Previous Topic:[EMF/Edit][Teneo] Call to AdapterFactoryEditingDomain.getEditingDomainFor(eObject) returns null, eOb
Next Topic:Teneo Persists and Retrieves superclass not subclass.
Goto Forum:

Current Time: Fri Mar 05 08:12:13 GMT 2021

Powered by FUDForum. Page generated in 0.02051 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top