Uses of Class
org.eclipse.gef.common.adapt.AdapterKey
Package
Description
This package provides abstractions and implementations related to an enhanced
adaptable-pattern.
This package provides support for Google Guice-based injection of adapters.
-
Uses of AdapterKey in org.eclipse.gef.common.adapt
Modifier and TypeMethodDescriptionstatic AdapterKey<?>
AdapterKey.defaultRole()
Returns anAdapterKey
with no type key and the 'default' role, which can only be used in adapter map bindings.static <T> AdapterKey<T>
Creates a newAdapterKey
for the given type key and theDEFAULT_ROLE
role, which can be used to retrieve an adapter from an IAdaptable.static <T> AdapterKey<T>
Creates a newAdapterKey
for the given key and role, which can be used to retrieve an adapter from an IAdaptable.static <T> AdapterKey<T>
Creates a newAdapterKey
for the given raw type key and theDEFAULT_ROLE
role, which can be used to retrieve an adapter from an IAdaptable.static <T> AdapterKey<T>
Creates a newAdapterKey
for the given key and role.<T> AdapterKey<T>
AdaptableSupport.getAdapterKey
(T adapter) Returns the key under which the given adapter is bound.<T> AdapterKey<T>
AdapterStore.getAdapterKey
(T adapter) <T> AdapterKey<T>
IAdaptable.getAdapterKey
(T adapter) Returns the key under which the given adapter is bound.static AdapterKey<?>
Returns anAdapterKey
with no type key and the given role, which can only be used in adapter map bindings.Modifier and TypeMethodDescriptionAdaptableSupport.adaptersProperty()
Returns a read-only map property, containing the adapters mapped to their keys.AdapterStore.adaptersProperty()
IAdaptable.adaptersProperty()
Returns an unmodifiable read-only map property that contains the registered adapters by their keys.AdaptableSupport.getAdapters()
Retrieves all registered adapters, mapped to the respectiveAdapterKey
s they are registered.<T> Map<AdapterKey<? extends T>,
T> AdaptableSupport.getAdapters
(TypeToken<? super T> key) Returns all adapters 'matching' the givenTypeToken
key, i.e. all adapters whoseAdapterKey
'sTypeToken
keygetKey()
) refers to the same or a sub-type or of the givenTypeToken
key.<T> Map<AdapterKey<? extends T>,
T> AdaptableSupport.getAdapters
(Class<? super T> key) Returns all adapters 'matching' the givenClass
key, i.e. all adapters whoseAdapterKey
'sTypeToken
keygetKey()
) refers to the same or a sub-type of the givenClass
key.AdapterStore.getAdapters()
Gets the value of the property adapters.<T> Map<AdapterKey<? extends T>,
T> AdapterStore.getAdapters
(TypeToken<? super T> key) <T> Map<AdapterKey<? extends T>,
T> AdapterStore.getAdapters
(Class<? super T> key) IAdaptable.getAdapters()
Returns an unmodifiableObservableMap
that contains the registered adapters by their keys.<T> Map<AdapterKey<? extends T>,
T> IAdaptable.getAdapters
(TypeToken<? super T> key) Returns all adapters 'matching' the givenTypeToken
key, i.e. all adapters whoseAdapterKey
'sTypeToken
keygetKey()
) refers to the same or a sub-type or of the givenTypeToken
key.<T> Map<AdapterKey<? extends T>,
T> IAdaptable.getAdapters
(Class<? super T> key) Returns all adapters 'matching' the givenClass
key, i.e. all adapters whoseAdapterKey
'sTypeToken
keygetKey()
) refers to the same or a sub-type of the givenClass
key.Modifier and TypeMethodDescriptionint
AdapterKey.compareTo
(AdapterKey<T> o) <T> T
AdaptableSupport.getAdapter
(AdapterKey<T> key) Returns an adapter for the givenAdapterKey
if one can unambiguously be retrieved, i.e. if there is only a single adapter registered under a key that 'matches' the givenAdapterKey
.<T> T
AdapterStore.getAdapter
(AdapterKey<T> key) <T> T
IAdaptable.getAdapter
(AdapterKey<T> key) Returns an adapter for the givenAdapterKey
if one can unambiguously be retrieved, i.e. if there is only a single adapter that 'matches' the givenAdapterKey
. -
Uses of AdapterKey in org.eclipse.gef.common.adapt.inject
Modifier and TypeMethodDescriptionstatic MapBinder<AdapterKey<?>,
Object> AdapterMaps.getAdapterMapBinder
(Binder binder, Class<? extends IAdaptable> adaptableType) Returns aMapBinder
, which can be used to define adapter bindings for anIAdaptable
s of the given type.static MapBinder<AdapterKey<?>,
Object> AdapterMaps.getAdapterMapBinder
(Binder binder, Class<? extends IAdaptable> adaptableType, AdapterKey<?>... adaptableContext) Returns aMapBinder
, which can be used to define adapter bindings for anIAdaptable
s of the given type, restricting it further to thoseIAdaptable
s that are themselvesadapted
to anotherIAdaptable
with the specified role.Modifier and TypeMethodDescriptionstatic MapBinder<AdapterKey<?>,
Object> AdapterMaps.getAdapterMapBinder
(Binder binder, Class<? extends IAdaptable> adaptableType, AdapterKey<?>... adaptableContext) Returns aMapBinder
, which can be used to define adapter bindings for anIAdaptable
s of the given type, restricting it further to thoseIAdaptable
s that are themselvesadapted
to anotherIAdaptable
with the specified role.