Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiraj Modi2017-02-24 10:44:23 +0000
committerNiraj Modi2017-02-24 10:46:35 +0000
commit9160f1d9aed3055aa756a8305f483e6886f1d2f1 (patch)
treebe55cc234cbb6aaa5fd70dc10514ca5175a527b3 /examples
parent6e53acfb7acba5945fe9b4ba78d510c000647a8b (diff)
downloadeclipse.platform.swt-9160f1d9aed3055aa756a8305f483e6886f1d2f1.tar.gz
eclipse.platform.swt-9160f1d9aed3055aa756a8305f483e6886f1d2f1.tar.xz
eclipse.platform.swt-9160f1d9aed3055aa756a8305f483e6886f1d2f1.zip
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 <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 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();

Back to the top