1 /*******************************************************************************
2 * Copyright (c) 2000, 2005 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
9 * IBM Corporation - initial API and implementation
10 *******************************************************************************/
11 package org.eclipse.jdt.ui.text;
13 import org.eclipse.swt.graphics.RGB;
17 * Extends {@link org.eclipse.jdt.ui.text.IColorManager} with
18 * the ability to bind and un-bind colors.
22 public interface IColorManagerExtension {
25 * Remembers the given color specification under the given key.
27 * @param key the color key
28 * @param rgb the color specification
29 * @throws java.lang.UnsupportedOperationException if there is already a
30 * color specification remembered under the given key
32 void bindColor(String key, RGB rgb);
36 * Forgets the color specification remembered under the given key.
38 * @param key the color key
40 void unbindColor(String key);