Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Eclipse Platform Release 3.0
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.eclipse.ui
Interface IContributorResourceAdapter

public interface IContributorResourceAdapter

The IContributorResourceAdapter is an interface that defines the API required to get a resource that an object adapts to for use of object contributions, decorators and property pages that have adaptable = true. Implementors of this interface are typically registered with an IAdapterFactory for lookup via the getAdapter() mechanism.

Method Summary
`IResource` | `getAdaptedResource(IAdaptable adaptable)` Return the resource that the supplied adaptable adapts to.

Method Detail

### getAdaptedResource

    public IResource getAdaptedResource(IAdaptable adaptable)

  Return the resource that the supplied adaptable adapts to. An IContributorResourceAdapter assumes that any object passed to it adapts to one equivalent resource.

  Parameters:
    `adaptable` - the adaptable being queried
  Returns:
    a resource, or `null` if there is no adapted resource for this type

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Eclipse Platform Release 3.0
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp. and others 2000, 2004. All rights reserved.