1 /******************************************************************************* 2 * Copyright (c) 2005, 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.debug.internal.ui.viewers.provisional; 12 13 import org.eclipse.debug.internal.ui.viewers.model.provisional.IPresentationContext; 14 15 /** 16 * Provides labels for elements. Note that implementations 17 * are must provide labels asynchronously. 18 * <p> 19 * Clients may implement this interface. 20 * </p> 21 * @since 3.2 22 */ 23 public interface IAsynchronousLabelAdapter { 24 25 /** 26 * Asynchronously retrieves the label of the given object reporting to 27 * the given monitor. If unable to retrieve label information, an exception should be 28 * reported to the monitor with an appropriate status. 29 * 30 * @param object the element for which a label is requested 31 * @param context the context in which the label has been requested 32 * @param monitor request monitor to report the result to 33 */ 34 public void retrieveLabel(Object object, IPresentationContext context, ILabelRequestMonitor result); 35 36 37 } 38