Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiraj Modi2017-02-27 03:40:12 +0000
committerNiraj Modi2017-02-27 03:40:12 +0000
commit13cb2225f4e70cc8df8d05f9a02501dc1f3e99f6 (patch)
tree7c20652d49f1a2b290ec811d9e681a9874eca9e9 /examples
parent44c66c4fd42dfc98ee7d709f1e1c3237f9de17e9 (diff)
downloadeclipse.platform.swt-13cb2225f4e70cc8df8d05f9a02501dc1f3e99f6.tar.gz
eclipse.platform.swt-13cb2225f4e70cc8df8d05f9a02501dc1f3e99f6.tar.xz
eclipse.platform.swt-13cb2225f4e70cc8df8d05f9a02501dc1f3e99f6.zip
Bug 384906 - [CSS] Allow styling of table headers in SWT
- UnComment the new API calls in ControlExample. Change-Id: I1577c4e64b35e4f094ab53be1cbadccaf5f74791 Signed-off-by: Niraj Modi <niraj.modi@in.ibm.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/TableTab.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/TableTab.java b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/TableTab.java
index 04771a5f59..e962a13db5 100644
--- a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/TableTab.java
+++ b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/TableTab.java
@@ -211,7 +211,7 @@ class TableTab extends ScrollableTab {
break;
case HEADER_FOREGROUND_COLOR: {
Color oldColor = headerForegroundColor;
-// if (oldColor == null) oldColor = table1.getHeaderForeground();
+ if (oldColor == null) oldColor = table1.getHeaderForeground();
colorDialog.setRGB(oldColor.getRGB());
RGB rgb = colorDialog.open();
if (rgb == null) return;
@@ -223,7 +223,7 @@ class TableTab extends ScrollableTab {
break;
case HEADER_BACKGROUND_COLOR: {
Color oldColor = headerBackgroundColor;
-// if (oldColor == null) oldColor = table1.getHeaderBackground();
+ if (oldColor == null) oldColor = table1.getHeaderBackground();
colorDialog.setRGB(oldColor.getRGB());
RGB rgb = colorDialog.open();
if (rgb == null) return;
@@ -647,11 +647,11 @@ class TableTab extends ScrollableTab {
void setHeaderBackground () {
if (!instance.startup) {
-// table1.setHeaderBackground (headerBackgroundColor);
+ table1.setHeaderBackground (headerBackgroundColor);
}
/* Set the header background color item's image to match the header background color. */
Color color = headerBackgroundColor;
-// if (color == null) color = table1.getHeaderBackground();
+ if (color == null) color = table1.getHeaderBackground();
TableItem item = colorAndFontTable.getItem(HEADER_BACKGROUND_COLOR);
Image oldImage = item.getImage();
if (oldImage != null) oldImage.dispose();
@@ -660,11 +660,11 @@ class TableTab extends ScrollableTab {
void setHeaderForeground () {
if (!instance.startup) {
-// table1.setHeaderForeground (headerForegroundColor);
+ table1.setHeaderForeground (headerForegroundColor);
}
/* Set the header foreground color item's image to match the header foreground color. */
Color color = headerForegroundColor;
-// if (color == null) color = table1.getHeaderForeground();
+ if (color == null) color = table1.getHeaderForeground();
TableItem item = colorAndFontTable.getItem(HEADER_FOREGROUND_COLOR);
Image oldImage = item.getImage();
if (oldImage != null) oldImage.dispose();

Back to the top