A massive organize imports and formatting of the sources using default Eclipse code...
[phpeclipse.git] / net.sourceforge.phpeclipse.ui / src / net / sourceforge / phpeclipse / ui / ColorManager.java
index 469b9c6..c72c31b 100644 (file)
@@ -8,7 +8,7 @@
  * Contributors:
  *        Igor Malinin - initial contribution
  * 
- * $Id: ColorManager.java,v 1.1 2004-09-02 18:26:49 jsurfer Exp $
+ * $Id: ColorManager.java,v 1.2 2006-10-21 23:13:54 pombredanne Exp $
  */
 
 package net.sourceforge.phpeclipse.ui;
@@ -27,33 +27,33 @@ import org.eclipse.swt.widgets.Display;
  * @author Igor Malinin
  */
 public class ColorManager {
-       protected Map colors = new HashMap( 10 );
+       protected Map colors = new HashMap(10);
 
-       public void bindColor( String key, RGB rgb ) {
-               Object value = colors.get( key );
-               if ( value != null ) {
+       public void bindColor(String key, RGB rgb) {
+               Object value = colors.get(key);
+               if (value != null) {
                        throw new UnsupportedOperationException();
                }
 
-               Color color = new Color( Display.getCurrent(), rgb );
+               Color color = new Color(Display.getCurrent(), rgb);
 
-               colors.put( key, color );
+               colors.put(key, color);
        }
 
-       public void unbindColor( String key ) {
-               Color color = (Color) colors.remove( key );
-               if ( color != null ) {
+       public void unbindColor(String key) {
+               Color color = (Color) colors.remove(key);
+               if (color != null) {
                        color.dispose();
                }
        }
 
-       public Color getColor( String key ) {
-               return (Color) colors.get( key );
+       public Color getColor(String key) {
+               return (Color) colors.get(key);
        }
 
        public void dispose() {
                Iterator i = colors.values().iterator();
-               while ( i.hasNext() ) {
+               while (i.hasNext()) {
                        ((Color) i.next()).dispose();
                }
        }