Class AdapterStore

java.lang.Object
org.eclipse.gef.common.adapt.AdapterStore
All Implemented Interfaces:
IAdaptable

public class AdapterStore extends Object implements IAdaptable
An AdapterStore is a basic IAdaptable implementation that can be used standalone.
  • Property Details

  • Constructor Details

    • AdapterStore

      public AdapterStore()
      Creates a new AdapterStore with no initial adapters.
    • AdapterStore

      public AdapterStore(T adapter)
      Creates a new AdapterStore with the single given initial adapter, using the 'default' role.
      Type Parameters:
      T - The adapter type.
      Parameters:
      adapter - The adapter to be registered.
    • AdapterStore

      public AdapterStore(TypeToken<T> adapterType, T adapter)
      Creates a new AdapterStore with the single given initial adapter, using the 'default' role.
      Type Parameters:
      T - The adapter type.
      Parameters:
      adapterType - The runtime type of the adapter to be registered.
      adapter - The adapter to be registered.
    • AdapterStore

      public AdapterStore(TypeToken<T> adapterType, T adapter, String role)
      Creates a new AdapterStore with the single given initial adapter.
      Type Parameters:
      T - The adapter type.
      Parameters:
      adapterType - The runtime type of the adapter to be registered.
      adapter - The adapter to be registered.
      role - The role under which the adapter is to be registered.
  • Method Details