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.dialogs; 12 13 import org.eclipse.jface.resource.ImageDescriptor; 14 15 /** 16 * A special image descriptor provider for {@link ITypeInfoRequestor}. 17 * <p> 18 * The interface should be implemented by clients wishing to provide special 19 * images inside the type selection dialog. 20 * </p> 21 * 22 * @since 3.2 23 */ 24 public interface ITypeInfoImageProvider { 25 26 /** 27 * Returns the image descriptor for the type represented by the 28 * given {@link ITypeInfoRequestor}. 29 * <p> 30 * Note, that this method may be called from non UI threads. 31 * </p> 32 * 33 * @param typeInfoRequestor the {@link ITypeInfoRequestor} to access 34 * information for the type under inspection 35 * 36 * @return the image descriptor or <code>null</code> to use the default 37 * image 38 */ 39 public ImageDescriptor getImageDescriptor(ITypeInfoRequestor typeInfoRequestor); 40 41 } 42