blob: 424ace116dccb640e38587afc19fee02b93b2727 [file] [log] [blame]
package org.eclipse.ui.views.tasklist;
/*
* Copyright (c) 2002 IBM Corp. All rights reserved.
* This file is 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
*/
import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.IAdaptable;
/**
* <code>ITaskListResourceAdapter</code> is an adapter interface that
* supplies the resource to query for markers to display in the task list.
*
* Implementors of this interface are typically registered with an
* IAdapterFactory for lookup via the getAdapter() mechanism.
*/
public interface ITaskListResourceAdapter {
/**
* Returns the resource to query for the markers to display
* for the given adaptable.
*
* @param adaptable the adaptable being queried.
* @return the resource or <code>null</code> if there
* is no adapted resource for this object.
*/
public IResource getAffectedResource(IAdaptable adaptable);
}