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

Bug 328473

Summary: [UiCustom] refactor icon features
Product: [Modeling] MoDisco Reporter: Nicolas Bros <nicolas.bros>
Component: InfrastructureAssignee: Nicolas Bros <nicolas.bros>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: hugo.bruneliere, modisco.web-inbox
Version: 0.9.0Flags: nicolas.bros: indigo+
Target Milestone: 0.9.0 M3   
Hardware: All   
OS: All   
Whiteboard:

Description Nicolas Bros CLA 2010-10-22 09:12:59 EDT
At the moment, there are 3 cusomizable icon features:
icon ("Type Icon"): 
 - appears on the metaclass in the Types panel
 - appears on instances
 - appears on Facets if there is no facetMainIcon defined
 - appears as a "sticker" if there is neither a facetMainIcon nor an overlay icon defined
facetMainIcon ("Instance Icon"):
 - appears as the main icon on instances that have this Facet (first Facet "wins")
facetOverlayIcon ("Overlay Icon") :
 - appears as an overlay on top of the main icon


The problem is that the "Type Icon" defines too many things at once. So, it can be  hard to customize exactly what's wanted in some cases.

To improve this, we will:
* add 3 new customizable features:
  - metaclassIcon: the icon that appears on the metaclass in the Types panel
  - instanceIcon: the icon that appears only on the instance. If the instance has Facets, then the first Facet with an icon defines the instanceIcon. Otherwise, the icon is the one which is defined on the metaclass of the instance.
  - stickerIcon: the icon that appears on the right of the instance
* deprecate "icon" : it will still be handled now, but removed in a future version. Add a message in the UiCustom editor to indicate it is deprecated.
* deprecate facetMainIcon : it becomes redundant with instanceIcon. When loading the customization model, replace facetMainIcon by instanceIcon.
Comment 1 Nicolas Bros CLA 2010-10-22 11:36:48 EDT
Done in revision 3353.
Comment 2 Hugo Bruneliere CLA 2011-01-11 05:06:41 EST
Bug fixed.