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 7 * 8 * Contributors: 9 * IBM Corporation - initial API and implementation 10 *******************************************************************************/ 11 package org.eclipse.jdt.ui.text; 12 13 import org.eclipse.swt.graphics.RGB; 14 15 16 /** 17 * Extends {@link org.eclipse.jdt.ui.text.IColorManager} with 18 * the ability to bind and un-bind colors. 19 * 20 * @since 2.0 21 */ 22 public interface IColorManagerExtension { 23 24 /** 25 * Remembers the given color specification under the given key. 26 * 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 31 */ 32 void bindColor(String key, RGB rgb); 33 34 35 /** 36 * Forgets the color specification remembered under the given key. 37 * 38 * @param key the color key 39 */ 40 void unbindColor(String key); 41 } 42