Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 346945 - [EMF Runtime Extensions] Label decoration for proxyfied EObjects does not work correctly for multiplicity-many features
Summary: [EMF Runtime Extensions] Label decoration for proxyfied EObjects does not wor...
Status: CLOSED FIXED
Alias: None
Product: Sphinx
Classification: Automotive
Component: Core (show other bugs)
Version: 0.7.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 0.7.0   Edit
Assignee: Stephan Eberle CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-24 04:46 EDT by Stephan Eberle CLA
Modified: 2021-07-14 02:15 EDT (History)
2 users (show)

See Also:


Attachments

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