diff options
author | Darin Wright | 2005-09-13 21:20:54 +0000 |
---|---|---|
committer | Darin Wright | 2005-09-13 21:20:54 +0000 |
commit | 1af372a89d7b96b4e4cf2001d34193a699196427 (patch) | |
tree | 576176a059f46e4977bc2a8e2465a138458c2352 /org.eclipse.debug.ui | |
parent | f94abd1cb0e0e5b8c2ffad836e15afb27ca9b1c5 (diff) | |
download | eclipse.platform.debug-1af372a89d7b96b4e4cf2001d34193a699196427.tar.gz eclipse.platform.debug-1af372a89d7b96b4e4cf2001d34193a699196427.tar.xz eclipse.platform.debug-1af372a89d7b96b4e4cf2001d34193a699196427.zip |
have to set font/colors to null to ensure defaults are re-set.
Diffstat (limited to 'org.eclipse.debug.ui')
-rw-r--r-- | org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/treeviewer/LabelUpdate.java | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/treeviewer/LabelUpdate.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/treeviewer/LabelUpdate.java index f9ed9b506..0265d7633 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/treeviewer/LabelUpdate.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/treeviewer/LabelUpdate.java @@ -11,8 +11,6 @@ package org.eclipse.debug.internal.ui.treeviewer; import org.eclipse.jface.resource.ImageDescriptor; -import org.eclipse.swt.graphics.Color; -import org.eclipse.swt.graphics.Font; import org.eclipse.swt.graphics.FontData; import org.eclipse.swt.graphics.Image; import org.eclipse.swt.graphics.RGB; @@ -73,17 +71,23 @@ class LabelUpdate extends AbstractUpdate implements ILabelUpdate { Image image = getViewer().getImage(fImageDescriptor); item.setImage(image); } - if (fFontData != null) { - Font font = getViewer().getFont(fFontData); - item.setFont(font); + if (fFontData == null) { + // default + item.setFont(null); + } else { + item.setFont(getViewer().getFont(fFontData)); } - if (fForeground != null) { - Color color = getViewer().getColor(fForeground); - item.setForeground(color); + if (fForeground == null) { + // default + item.setForeground(null); + } else { + item.setForeground(getViewer().getColor(fForeground)); } - if (fBackground != null) { - Color color = getViewer().getColor(fBackground); - item.setBackground(color); + if (fBackground == null) { + // default + item.setBackground(null); + } else { + item.setBackground(getViewer().getColor(fBackground)); } } |