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

Bug 346945

Summary: [EMF Runtime Extensions] Label decoration for proxyfied EObjects does not work correctly for multiplicity-many features
Product: [Automotive] Sphinx Reporter: Stephan Eberle <stephaneberle9>
Component: CoreAssignee: Stephan Eberle <stephaneberle9>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: ali.akar82, idydieng
Version: 0.7.0   
Target Milestone: 0.7.0   
Hardware: All   
OS: All   
Whiteboard:

Description Stephan Eberle CLA 2011-05-24 04:46:29 EDT
= Problem description =

org.eclipse.sphinx.emf.edit.ExtendedItemProviderAdapter#overlayImage(Object, Object) adds an exclamation mark as overlay image to the icons of EObjects that are proxies so as to facilitate their identification in the UI by the user. While this works well for single-valued reference features the overlay image is added for multi-valued reference features only if the first EObject in the list is a proxy but not if only one or several of the subsequent EObjects are proxies.

= Resolution proposal =

Improve implementation of org.eclipse.sphinx.emf.edit.ExtendedItemProviderAdapter#overlayImage(Object, Object) so as to fully support multi-valued EObject lists as well.
Comment 1 Stephan Eberle CLA 2011-05-24 07:16:20 EDT
Fixed as proposed in description. The location to modify was however org.eclipse.sphinx.emf.edit.ExtendedItemPropertyDescriptor.getLabelProvider(...).new IItemLabelProvider() {...}.getImage(Object).
Comment 2 Balazs Grill CLA 2021-07-14 02:15:10 EDT
Mass-closing Resolved tickets