Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/ColorManager.java')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/ColorManager.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/ColorManager.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/ColorManager.java
index c1255ac30..c0ab0687c 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/ColorManager.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/ColorManager.java
@@ -4,7 +4,7 @@
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
- *
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
@@ -21,22 +21,22 @@ import org.eclipse.swt.widgets.Display;
/**
* Generic color manager.
*/
-public class ColorManager {
-
+public class ColorManager {
+
private static ColorManager fgColorManager;
-
+
private ColorManager() {
}
-
+
public static ColorManager getDefault() {
if (fgColorManager == null) {
fgColorManager= new ColorManager();
}
return fgColorManager;
}
-
+
protected Map<RGB, Color> fColorTable = new HashMap<RGB, Color>(10);
-
+
public Color getColor(RGB rgb) {
Color color= fColorTable.get(rgb);
if (color == null) {
@@ -45,7 +45,7 @@ public class ColorManager {
}
return color;
}
-
+
public void dispose() {
for (Color color : fColorTable.values()) {
color.dispose();

Back to the top