ControlSystemStudio / cs-studio

Control System Studio is an Eclipse-based collections of tools to monitor and operate large scale control systems, such as the ones in the accelerator community.
https://controlsystemstudio.org/
Eclipse Public License 1.0
113 stars 96 forks source link

Checkboxes in databrowser Properties and Axes tabs do not show when the row is highlighted #2686

Closed rjwills28 closed 3 years ago

rjwills28 commented 3 years ago

If a row is selected in the Properties or Axes tab in the databrowser, then the checkbox disappears (e.g. the checkbox indicating whether the trace is shown or not). Instead you just see a blue square and cannot tell what whether the checkbox is selected or not.

The image was not getting painted on top of the 'blue' selected row. I changed the LabelProvider for all of these checkbox fields from a CellLabelProvider (basic implementation) with a StyleCellLabelProvider, which allows for styled cells to be painted and updated from a listener. This fixes the issue.