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
9 * IBM Corporation - initial API and implementation
10 ******************************************************************************/
11 package net.sourceforge.phpdt.ui.text;
13 import org.eclipse.swt.graphics.RGB;
16 * A color manager extension for extending <code>IColorManager</code>
17 * instances with new functionality.
21 public interface IColorManagerExtension {
24 * Remembers the given color specification under the given key.
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
31 void bindColor(String key, RGB rgb);
35 * Forgets the color specification remembered under the given key.
36 * @param key the color key
38 void unbindColor(String key);