Bug 576442 - [JFace] Support setting/storing of custom colors in ColorFieldEditor
Summary: [JFace] Support setting/storing of custom colors in ColorFieldEditor
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.22   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-05 09:11 EDT by Christoph Laeubrich CLA
Modified: 2021-10-05 09:11 EDT (History)
0 users

See Also:


Attachments

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