Package org.eclipse.handly.model.adapter
Class DefaultContentAdapter
java.lang.Object
org.eclipse.handly.model.adapter.DefaultContentAdapter
- All Implemented Interfaces:
IContentAdapter
A content adapter that is based on
IAdaptable mechanism.
For a given IElement the corresponding element is obtained from the
ICorrespondingElementProvider the IElement adapts to.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IContentAdapterThe sole instance of the default content adapter. -
Method Summary
-
Field Details
-
INSTANCE
The sole instance of the default content adapter.
-
-
Method Details
-
adapt
Description copied from interface:IContentAdapterReturns theIElementthat corresponds to the given element.- Specified by:
adaptin interfaceIContentAdapter- Parameters:
element- may benull- Returns:
- the corresponding
IElement, ornullif none
-
getCorrespondingElement
Description copied from interface:IContentAdapterReturns the element that corresponds to the givenIElement.- Specified by:
getCorrespondingElementin interfaceIContentAdapter- Parameters:
element- anIElement(may benull)- Returns:
- the corresponding element, or
nullif none
-