KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > ide > IContributorResourceAdapter2


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 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 package org.eclipse.ui.ide;
12
13 import org.eclipse.core.resources.mapping.ResourceMapping;
14 import org.eclipse.core.runtime.IAdaptable;
15 import org.eclipse.ui.IContributorResourceAdapter;
16
17 /**
18  * An extension to the <code>IContributorResourceAdapter</code> that adapts
19  * a model object to a <code>ResourceMapping</code>.
20  *
21  * @since 3.2
22  */

23 public interface IContributorResourceAdapter2 extends IContributorResourceAdapter {
24
25     /**
26      * Return the resource mapping that the supplied adaptable
27      * adapts to. An <code>IContributorResourceAdapter2</code> assumes
28      * that any object passed to it adapts to one equivalent
29      * resource mapping.
30      *
31      * @param adaptable the adaptable being queried
32      * @return a resource mapping, or <code>null</code> if there
33      * is no adapted resource mapping for this type
34      */

35     public ResourceMapping getAdaptedResourceMapping(IAdaptable adaptable);
36 }
37
Popular Tags