blob: 776ff3563346d1c47cb50870b502f44b0df071f5 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2003 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.search.ui;
import org.eclipse.core.resources.IMarker;
/**
* Computes the key by which the markers in the search result view
* are grouped.
*/
public interface IGroupByKeyComputer {
/**
* Computes and returns key by which the given marker is grouped.
*
* @param marker the marker for which the key must be computed
* @return an object that will be used as the key for that marker,
* <code>null</code> if the marker seems to be invalid
*/
public Object computeGroupByKey(IMarker marker);
}