/**
 * Created on Jul 24, 2005
 */
package org.jvnet.lookout.ui.core.tree.label;

import org.eclipse.swt.graphics.Image;
import org.jvnet.lookout.ui.core.tree.SearchResultDetail;
import org.jvnet.lookout.ui.core.tree.SearchResultItem;

public interface SearchResultsLabelProvider {

    /**
     * Returns and Image that should represent the provided SearchResultDetail. It 
     * can return null is not addressed by this SearchResultsLabelProvider   
     * @param detail
     * @return
     */
    public Image getImage(SearchResultDetail detail);
    
    /**
     * Returns and Image that should represent the provided SearchResultItem. It 
     * can return null is not addressed by this SearchResultsLabelProvider   
     * @param item
     * @return
     */
    public Image getImage(SearchResultItem item);    
}
