Bug 576442

Summary: [JFace] Support setting/storing of custom colors in ColorFieldEditor
Product: [Eclipse Project] Platform Reporter: Christoph Laeubrich <laeubi>
Component: UIAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3    
Version: 4.22   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Christoph Laeubrich CLA 2021-10-05 09:11:28 EDT
Currently all custom colors are lost for a ColorFieldEditor and it is not possible to set some.
It would be nice to have a "setCustomColorsKey(String preferenceKey)" that allows setting a key under which the custom colors are stored.

For example if preference key is "MyCustomColors" this would result in the folloing preferences stored:

MyCustomColors=<number of custom colors>
MyCustomColors.0=<first custom color>
MyCustomColors.1=<second custom color>
...