Class StructuredTextTypesCollector

java.lang.Object
org.eclipse.equinox.bidi.internal.StructuredTextTypesCollector
All Implemented Interfaces:
EventListener, IRegistryEventListener

public class StructuredTextTypesCollector extends Object implements IRegistryEventListener
Provides services related to registered structured text handlers.
  • Method Details

    • getInstance

      public static StructuredTextTypesCollector getInstance()
      Returns:
      a static instance.
    • getTypes

      public String[] getTypes()
      Returns:
      a list of all the registered structured text handler types.
    • getHandler

      public StructuredTextTypeHandler getHandler(String type)
      Parameters:
      type - the identifier for a structured text handler.
      Returns:
      the structured text handler instance.
    • added

      public void added(IExtension[] extensions)
      Description copied from interface: IRegistryEventListener
      Notifies this listener that extensions were added to the registry.

      The extensions supplied as the argument are valid only for the duration of the invocation of this method.

      Specified by:
      added in interface IRegistryEventListener
      Parameters:
      extensions - extensions added to the registry
    • removed

      public void removed(IExtension[] extensions)
      Description copied from interface: IRegistryEventListener
      Notifies this listener that extensions were removed from the registry.

      The extensions supplied as the argument are valid only for the duration of the invocation of this method.

      Specified by:
      removed in interface IRegistryEventListener
      Parameters:
      extensions - extensions removed from the registry
    • added

      public void added(IExtensionPoint[] extensionPoints)
      Description copied from interface: IRegistryEventListener
      Notifies this listener that extension points were added to the registry.

      The extension points supplied as the argument are valid only for the duration of the invocation of this method.

      Specified by:
      added in interface IRegistryEventListener
      Parameters:
      extensionPoints - extension points added to the registry
    • removed

      public void removed(IExtensionPoint[] extensionPoints)
      Description copied from interface: IRegistryEventListener
      Notifies this listener that extension points were removed from the registry.

      The extension points supplied as the argument are valid only for the duration of the invocation of this method.

      Specified by:
      removed in interface IRegistryEventListener
      Parameters:
      extensionPoints - extension points removed from the registry
    • getDefaultTypeHandlers

      public static Map<String,StructuredTextTypeHandler> getDefaultTypeHandlers()
      Returns the default structured text type handlers. These handlers are also supported without OSGi running.
      Returns:
      a map from structured text type handler identifier (key type: String) to structured text type handler (value type: StructuredTextTypeHandler).