KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > views > markers > internal > IMarkerResourceAdapter


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11
12 package org.eclipse.ui.views.markers.internal;
13
14 import org.eclipse.core.resources.IResource;
15 import org.eclipse.core.runtime.IAdaptable;
16
17 /**
18  * <code>IMarkerResourceAdapter</code> is an adapter interface that
19  * supplies the resource to query for markers to display in the marker view
20  * or any of its subclasses.
21  *
22  * Implementors of this interface are typically registered with an
23  * IAdapterFactory for lookup via the getAdapter() mechanism.
24  */

25 public interface IMarkerResourceAdapter {
26
27     /**
28      * Returns the resource to query for the markers to display
29      * for the given adaptable.
30      *
31      * @param adaptable the adaptable being queried.
32      * @return the resource or <code>null</code> if there
33      * is no adapted resource for this object.
34      */

35     public IResource getAffectedResource(IAdaptable adaptable);
36
37 }
38
Popular Tags