diff options
-rw-r--r-- | org.eclipse.jface.text/src/org/eclipse/jface/text/AbstractInformationControl.java | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/text/AbstractInformationControl.java b/org.eclipse.jface.text/src/org/eclipse/jface/text/AbstractInformationControl.java index 320932d273e..2a9a5b05714 100644 --- a/org.eclipse.jface.text/src/org/eclipse/jface/text/AbstractInformationControl.java +++ b/org.eclipse.jface.text/src/org/eclipse/jface/text/AbstractInformationControl.java @@ -45,7 +45,7 @@ import org.eclipse.core.runtime.ListenerList; import org.eclipse.jface.action.ToolBarManager; import org.eclipse.jface.internal.text.revisions.Colors; -import org.eclipse.jface.resource.ColorRegistry; +import org.eclipse.jface.resource.JFaceColors; import org.eclipse.jface.resource.JFaceResources; import org.eclipse.jface.util.Geometry; @@ -183,15 +183,8 @@ public abstract class AbstractInformationControl implements IInformationControl, fShell= new Shell(parentShell, shellStyle); Display display= fShell.getDisplay(); - ColorRegistry colorRegistry = JFaceResources.getColorRegistry(); - Color foreground= colorRegistry.get("org.eclipse.ui.workbench.HOVER_FOREGROUND"); //$NON-NLS-1$ - if (foreground == null) { - foreground = display.getSystemColor(SWT.COLOR_INFO_FOREGROUND); - } - Color background= colorRegistry.get("org.eclipse.ui.workbench.HOVER_BACKGROUND"); //$NON-NLS-1$ - if (background == null) { - background = display.getSystemColor(SWT.COLOR_INFO_BACKGROUND); - } + Color foreground= JFaceColors.getInformationViewerForegroundColor(display); + Color background= JFaceColors.getInformationViewerBackgroundColor(display); setColor(fShell, foreground, background); GridLayout layout= new GridLayout(1, false); |