Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 329797

Summary: Combo edition generation errors
Product: [Modeling] EEF Reporter: William Piers <william.piers>
Component: GeneralAssignee: EEF Inbox <emft.eef-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: gonzague.reydet, goulwen.lefur
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
a patch fixing the bug goulwen.lefur: iplog+

Description William Piers CLA 2010-11-09 09:44:33 EST
When choosing the "Combo widget" as the representation of an element editor, the generated code does not match the EEF runtime API. Here is the generated code:

element.setContentProvider(new EMFListContentProvider());

But EMFListContentProvider() constructor doesn't exists in the API (it takes a boolean parameter called "nullable").
Comment 1 William Piers CLA 2010-12-21 12:47:05 EST
Created attachment 185653 [details]
a patch fixing the bug

The attached patch fixes the bug (no more compilation errors after generation). I chose to add a constructor without parameters instead of changing the Acceleo file, because this way you will be able to later improve the generation and support this parameter.
With this implementation the nullable parameter is set to false by default.
Comment 2 Goulwen Le Fur CLA 2011-01-06 04:20:41 EST
Appliyed
Comment 3 Goulwen Le Fur CLA 2011-01-06 04:26:04 EST
*** Bug 328530 has been marked as a duplicate of this bug. ***