Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 328473 - [UiCustom] refactor icon features
Summary: [UiCustom] refactor icon features
Status: CLOSED FIXED
Alias: None
Product: MoDisco
Classification: Modeling
Component: Infrastructure (show other bugs)
Version: 0.9.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 0.9.0 M3   Edit
Assignee: Nicolas Bros CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-22 09:12 EDT by Nicolas Bros CLA
Modified: 2011-01-11 05:06 EST (History)
2 users (show)

See Also:
nicolas.bros: indigo+


Attachments

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