From 9160f1d9aed3055aa756a8305f483e6886f1d2f1 Mon Sep 17 00:00:00 2001 From: Niraj Modi Date: Fri, 24 Feb 2017 16:14:23 +0530 Subject: Bug 384906 - [CSS] Allow styling of table headers in SWT - Fixed JavaDoc for setHeaderBackground() method for GTK3 support. - Commented the TableTab changes as it causing Gerrit build failures. Change-Id: I404af87ca2283140dad8526abbf384123817ae2b Signed-off-by: Niraj Modi --- .../org/eclipse/swt/examples/controlexample/TableTab.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'examples') 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 e962a13db5..04771a5f59 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(); -- cgit v1.2.3