01: /*******************************************************************************
02: * Copyright (c) 2000, 2005 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.jdt.ui.dialogs;
11:
12: import org.eclipse.jface.resource.ImageDescriptor;
13:
14: /**
15: * A special image descriptor provider for {@link ITypeInfoRequestor}.
16: * <p>
17: * The interface should be implemented by clients wishing to provide special
18: * images inside the type selection dialog.
19: * </p>
20: *
21: * @since 3.2
22: */
23: public interface ITypeInfoImageProvider {
24:
25: /**
26: * Returns the image descriptor for the type represented by the
27: * given {@link ITypeInfoRequestor}.
28: * <p>
29: * Note, that this method may be called from non UI threads.
30: * </p>
31: *
32: * @param typeInfoRequestor the {@link ITypeInfoRequestor} to access
33: * information for the type under inspection
34: *
35: * @return the image descriptor or <code>null</code> to use the default
36: * image
37: */
38: public ImageDescriptor getImageDescriptor(
39: ITypeInfoRequestor typeInfoRequestor);
40:
41: }
|