I use the Eclipse ColorRegistry to manage user generated Colors in an RCP Application.
Because the Colors and Keys are User generated, there is also the possibility for the user to change the color that is associated with a key or to remove the key / color combination entirely. However the
In short: no there is no way to remove an entry from the
You could use a
Map or similar custom data structure instead to store named colors. If it is likely that many names point to the same color, you may want to use
RGBs and a
ResourceManager as the backing color store to avoid creating duplicate colors.