Package org.eclipse.ui.ide
Interface IContributorResourceAdapter2
-
- All Superinterfaces:
IContributorResourceAdapter
public interface IContributorResourceAdapter2 extends IContributorResourceAdapter
An extension to theIContributorResourceAdapter
that adapts a model object to aResourceMapping
.- Since:
- 3.2
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ResourceMapping
getAdaptedResourceMapping(IAdaptable adaptable)
Return the resource mapping that the supplied adaptable adapts to.-
Methods inherited from interface org.eclipse.ui.IContributorResourceAdapter
getAdaptedResource
-
-
-
-
Method Detail
-
getAdaptedResourceMapping
ResourceMapping getAdaptedResourceMapping(IAdaptable adaptable)
Return the resource mapping that the supplied adaptable adapts to. AnIContributorResourceAdapter2
assumes that any object passed to it adapts to one equivalent resource mapping.- Parameters:
adaptable
- the adaptable being queried- Returns:
- a resource mapping, or
null
if there is no adapted resource mapping for this type
-
-