Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 362821 - Unable to display properties
Summary: Unable to display properties
Status: RESOLVED FIXED
Alias: None
Product: EEF
Classification: Modeling
Component: General (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 blocker
Target Milestone: ---   Edit
Assignee: EEF Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-03 12:45 EDT by William Piers CLA
Modified: 2016-05-05 10:27 EDT (History)
1 user (show)

See Also:


Attachments
EEF Generators fix (10.87 KB, patch)
2011-11-17 04:26 EST, William Piers CLA
sbouchet: iplog+
Details | Diff
EEF Metamodels fix (325.02 KB, patch)
2011-11-17 04:27 EST, William Piers CLA
sbouchet: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.