Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Swanson2004-03-11 21:58:35 +0000
committerDarin Swanson2004-03-11 21:58:35 +0000
commita250de96156ac352ea9aa816deafbf29dd00b54f (patch)
tree538107dba789544a51ac126e17b44f8a83e3a490 /org.eclipse.debug.ui/ui/org/eclipse/debug/ui/console
parent540d964a02b50cc2ada5c38f9fe695c8bd6f86db (diff)
downloadeclipse.platform.debug-a250de96156ac352ea9aa816deafbf29dd00b54f.tar.gz
eclipse.platform.debug-a250de96156ac352ea9aa816deafbf29dd00b54f.tar.xz
eclipse.platform.debug-a250de96156ac352ea9aa816deafbf29dd00b54f.zip
Bug 48933 - Move to use the Platform UI color support
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/ui/console')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/ui/console/ConsoleColorProvider.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/console/ConsoleColorProvider.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/console/ConsoleColorProvider.java
index 557e5699d..d771073b2 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/console/ConsoleColorProvider.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/console/ConsoleColorProvider.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
+ * Copyright (c) 2000, 2004 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
@@ -13,9 +13,9 @@ package org.eclipse.debug.ui.console;
import org.eclipse.debug.core.model.IProcess;
import org.eclipse.debug.core.model.IStreamsProxy;
-import org.eclipse.debug.internal.ui.DebugUIPlugin;
import org.eclipse.debug.internal.ui.preferences.IDebugPreferenceConstants;
import org.eclipse.debug.ui.IDebugUIConstants;
+import org.eclipse.jface.resource.JFaceResources;
import org.eclipse.swt.graphics.Color;
/**
@@ -63,13 +63,13 @@ public class ConsoleColorProvider implements IConsoleColorProvider {
*/
public Color getColor(String streamIdentifer) {
if (IDebugUIConstants.ID_STANDARD_OUTPUT_STREAM.equals(streamIdentifer)) {
- return DebugUIPlugin.getPreferenceColor(IDebugPreferenceConstants.CONSOLE_SYS_OUT_RGB);
+ return JFaceResources.getColorRegistry().get(IDebugPreferenceConstants.CONSOLE_SYS_OUT_COLOR);
}
if (IDebugUIConstants.ID_STANDARD_ERROR_STREAM.equals(streamIdentifer)) {
- return DebugUIPlugin.getPreferenceColor(IDebugPreferenceConstants.CONSOLE_SYS_ERR_RGB);
+ return JFaceResources.getColorRegistry().get(IDebugPreferenceConstants.CONSOLE_SYS_ERR_COLOR);
}
if (IDebugUIConstants.ID_STANDARD_INPUT_STREAM.equals(streamIdentifer)) {
- return DebugUIPlugin.getPreferenceColor(IDebugPreferenceConstants.CONSOLE_SYS_IN_RGB);
+ return JFaceResources.getColorRegistry().get(IDebugPreferenceConstants.CONSOLE_SYS_IN_COLOR);
}
return null;
}

Back to the top