Your browser does not support JavaScript and this site utilizes JavaScript to build content and provide links to additional information. You should either enable JavaScript in your browser settings or use a browser that supports JavaScript in order to take full advantage of this site.

1 /*******************************************************************************2 * Copyright (c) 2004, 2007 IBM Corporation and others.3 * All rights reserved. This program and the accompanying materials4 * are made available under the terms of the Eclipse Public License v1.05 * which accompanies this distribution, and is available at6 * http://www.eclipse.org/legal/epl-v10.html7 *8 * Contributors:9 * IBM Corporation - initial API and implementation10 *******************************************************************************/11 package org.eclipse.jface.viewers;12 13 /**14 * A delayed label decorator is a label decorator that may not have a15 * decoration available immediately. This interface defines the methods for16 * requesting the preparation of a decorator for an object and for querying17 * if the decorator is ready. Interested parties should register an18 * ILabelProviderListener with a delayed label decorator in order to be informed19 * when the decoration is ready.20 * @since 3.021 */22 publicinterface IDelayedLabelDecorator extendsILabelDecorator {23 24 /**25 * Prepare the element for decoration. If it is already decorated and ready for update26 * return true. If decoration is pending return false.27 * @param element The element to be decorated28 * @param originalText The starting text. 29 * @return boolean <code>true</code> if the decoration is ready for this element30 */31 32 publicboolean prepareDecoration(Object element, String originalText);33 34 }35