Added PHPUnitEditor and corresponding PHPPreferencePage
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / ui / text / IColorManagerExtension.java
1 /*******************************************************************************
2  * Copyright (c) 2002 International Business Machines Corp. and others.
3  * All rights reserved. This program and the accompanying materials 
4  * are made available under the terms of the Common Public License v1.0 
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/cpl-v10.html
7  * 
8  * Contributors:
9  *     IBM Corporation - initial API and implementation
10  ******************************************************************************/
11 package net.sourceforge.phpdt.ui.text;
12
13 import org.eclipse.swt.graphics.RGB;
14
15 /**
16  * A color manager extension for extending <code>IColorManager</code> 
17  * instances with new functionality.
18  * 
19  * @since 2.0
20  */
21 public interface IColorManagerExtension {
22         
23         /**
24          * Remembers the given color specification under the given key.
25          *
26          * @param key the color key
27          * @param rgb the color specification
28          * @exception UnsupportedOperationException if there is already a
29          *      color specification remembered under the given key
30          */
31         void bindColor(String key, RGB rgb);
32         
33         
34         /**
35          * Forgets the color specification remembered under the given key.
36          * @param key the color key
37          */
38         void unbindColor(String key);
39 }