01: /*******************************************************************************
02: * Copyright (c) 2000, 2006 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.ui.views.markers.internal;
11:
12: import org.eclipse.core.resources.IResource;
13: import org.eclipse.core.runtime.IAdaptable;
14:
15: /**
16: * <code>IMarkerResourceAdapter</code> is an adapter interface that
17: * supplies the resource to query for markers to display in the marker view
18: * or any of its subclasses.
19: *
20: * Implementors of this interface are typically registered with an
21: * IAdapterFactory for lookup via the getAdapter() mechanism.
22: */
23: public interface IMarkerResourceAdapter {
24:
25: /**
26: * Returns the resource to query for the markers to display
27: * for the given adaptable.
28: *
29: * @param adaptable the adaptable being queried.
30: * @return the resource or <code>null</code> if there
31: * is no adapted resource for this object.
32: */
33: public IResource getAffectedResource(IAdaptable adaptable);
34:
35: }
|