2 * $RCSfile: JSColorManager.java,v $
5 * CH-1700 Fribourg, Switzerland
8 *========================================================================
9 * Modifications history
10 *========================================================================
11 * $Log: not supported by cvs2svn $
12 * Revision 1.1 2004/02/05 03:13:28 agfitzp
13 * Initial submission, outline view is broken due to refactoring
15 * Revision 1.1 2003/05/28 15:17:12 agfitzp
16 * net.sourceforge.phpeclipse.js.ui 0.0.1 code base
18 *========================================================================
21 package net.sourceforge.phpeclipse.js.ui.editors;
23 import java.util.HashMap;
24 import java.util.Iterator;
27 import org.eclipse.swt.graphics.Color;
28 import org.eclipse.swt.graphics.RGB;
29 import org.eclipse.swt.widgets.Display;
35 * @author $Author: jsurfer $, $Date: 2004-09-02 18:23:49 $
37 * @version $Revision: 1.1 $
39 public class JSColorManager
41 protected Map fColorTable = new HashMap(10);
48 Iterator e = fColorTable.values().iterator();
52 ((Color)e.next()).dispose();
63 public Color getColor(RGB rgb)
65 Color color = (Color)fColorTable.get(rgb);
69 color = new Color(Display.getCurrent(), rgb);
70 fColorTable.put(rgb, color);