Provide a checkbox component for embedding in a table.
commit117a55835805938033459cd44f362950d5fb3d16
authorRobin Rosenberg <robin.rosenberg@dewire.com>
Thu, 21 Aug 2008 20:29:42 +0000 (21 22:29 +0200)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Thu, 21 Aug 2008 21:38:49 +0000 (21 23:38 +0200)
tree6761b4186b1a690580eef8b46e4dd66e51fa0382
parent6d6a7c31632bccb2f99be3e6963e5c75f60c774c
Provide a checkbox component for embedding in a table.

This is needed by the Refspecs page. Unfortunately the code does not
work fine with Eclipse 3.3 (no image show) and the screen scraping approach
flickers horribly under OSX so we provide our own icon (stolen from the
Eclipse CVS archive at
pde-incubator/visualization/plugins/org.eclipse.draw2d/src/org/eclipse/draw2d/images)
plus some graying out for the disbled version, thereby solving the licensing issue.

Set the system property egit.swt.checkboxhack to switch behavior.
-Degit.swt.checkboxhack=hardwired will use the supplied icons without regard for
look and feel. -Degit.swt.checkboxhack=screenshot will grab the L&F from the
native SWT checkbox.

Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.spearce.egit.ui/icons/checkboxes/disabled_checked.gif [new file with mode: 0644]
org.spearce.egit.ui/icons/checkboxes/disabled_unchecked.gif [new file with mode: 0644]
org.spearce.egit.ui/icons/checkboxes/enabled_checked.gif [new file with mode: 0644]
org.spearce.egit.ui/icons/checkboxes/enabled_unchecked.gif [new file with mode: 0644]
org.spearce.egit.ui/src/org/spearce/egit/ui/UIIcons.java
org.spearce.egit.ui/src/org/spearce/egit/ui/internal/components/CenteredImageLabelProvider.java [new file with mode: 0644]
org.spearce.egit.ui/src/org/spearce/egit/ui/internal/components/CheckboxLabelProvider.java [new file with mode: 0644]