Author: koen.aers(a)jboss.com
Date: 2011-07-06 04:50:03 -0400 (Wed, 06 Jul 2011)
New Revision: 32632
Removed:
trunk/forge/plugins/org.jboss.tools.forge.ui/src/org/jboss/tools/forge/console/ColorManager.java
Log:
remove unused ColorManager class
Deleted:
trunk/forge/plugins/org.jboss.tools.forge.ui/src/org/jboss/tools/forge/console/ColorManager.java
===================================================================
---
trunk/forge/plugins/org.jboss.tools.forge.ui/src/org/jboss/tools/forge/console/ColorManager.java 2011-07-06
08:01:27 UTC (rev 32631)
+++
trunk/forge/plugins/org.jboss.tools.forge.ui/src/org/jboss/tools/forge/console/ColorManager.java 2011-07-06
08:50:03 UTC (rev 32632)
@@ -1,43 +0,0 @@
-package org.jboss.tools.forge.console;
-
-
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.Map;
-
-import org.eclipse.swt.graphics.Color;
-import org.eclipse.swt.graphics.RGB;
-import org.eclipse.swt.widgets.Display;
-
-class ColorManager {
-
- private static ColorManager INSTANCE;
-
- private ColorManager() {}
-
- public static ColorManager getInstance() {
- if (INSTANCE == null) {
- INSTANCE= new ColorManager();
- }
- return INSTANCE;
- }
-
- protected Map<RGB, Color> fColorTable= new HashMap<RGB, Color>(10);
-
- public Color getColor(RGB rgb) {
- Color color= (Color) fColorTable.get(rgb);
- if (color == null) {
- color= new Color(Display.getCurrent(), rgb);
- fColorTable.put(rgb, color);
- }
- return color;
- }
-
- public void dispose() {
- Iterator<Color> e= fColorTable.values().iterator();
- while (e.hasNext())
- ((Color) e.next()).dispose();
- }
-}
-
-
Show replies by date