1 /******************************************************************************* 2 * Copyright (c) 2000, 2006 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.jface.viewers; 12 13 /** 14 * The <code>ILightweightLabelDecorator</code> is a decorator that decorates 15 * using a prefix, suffix and overlay image rather than doing all 16 * of the image and text management itself like an <code>ILabelDecorator</code>. 17 */ 18 public interface ILightweightLabelDecorator extends IBaseLabelProvider { 19 20 /** 21 * Calculates decorations based on element. 22 * 23 * @param element the element to decorate 24 * @param decoration the decoration to set 25 */ 26 public void decorate(Object element, IDecoration decoration); 27 28 } 29