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

Bug 362821

Summary: Unable to display properties
Product: [Modeling] EEF Reporter: William Piers <william.piers>
Component: GeneralAssignee: EEF Inbox <emft.eef-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: blocker    
Priority: P3 CC: sbouchet
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
EEF Generators fix
sbouchet: iplog+
EEF Metamodels fix sbouchet: iplog+

Description William Piers CLA 2011-11-03 12:45:27 EDT
version: HEAD

When trying to display properties in a .component model, I get the following NPE:
java.lang.NullPointerException
	at org.eclipse.emf.eef.runtime.part.impl.SectionPropertiesEditingPart.initSemanticContents(SectionPropertiesEditingPart.java:259)
	at org.eclipse.emf.eef.runtime.part.impl.SectionPropertiesEditingPart.refresh(SectionPropertiesEditingPart.java:181)

The metamodels plugin.xml seems to be the cause of the problem: many property sections declare their own Documentation tab but it is still managed by the DocumentedElement.
This make EEF unable to retrieve the correct part type, therefore unable to create the needed component.
Comment 1 William Piers CLA 2011-11-17 04:26:59 EST
Created attachment 207131 [details]
EEF Generators fix

Implements a news strategy for plugin.xml use, i.e. declare filters in providers instead of simply use input type.
Comment 2 William Piers CLA 2011-11-17 04:27:37 EST
Created attachment 207132 [details]
EEF Metamodels fix

Regenerated code, merged plugin.xml files. Also fixes the component.component model which was referring to the wrong DocumentedElementEditionComponents (views instead of mapping)
Comment 3 Bouchet Stéphane CLA 2011-11-17 04:30:45 EST
thanks william, i will review and push for M4.
Comment 4 Bouchet Stéphane CLA 2011-11-17 12:08:14 EST
applied and verified.