a
    ©ˆc:  ã                   @   s$   d Z ddlmZ G dd„ deƒZdS )ú) The interface for extension registries. é    )Ú	Interfacec                   @   sT   e Zd ZdZddd„Zdd„ Zdd„ Zd	d
„ Zdd„ Zddd„Z	dd„ Z
dd„ ZdS )ÚIExtensionRegistryr   Nc                 C   s   dS )aQ   Add a listener for extensions being added or removed.

        A listener is any Python callable with the following signature::

          def listener(extension_registry, extension_point_changed_event):

                ...

        If an extension point is specified then the listener will only be
        called when extensions are added to or removed from that extension
        point (the extension point may or may not have been added to the
        registry at the time of this call).

        If *no* extension point is specified then the listener will be called
        when extensions are added to or removed from *any* extension point.

        When extensions are added or removed all specific listeners are called
        first (in arbitrary order), followed by all non-specific listeners
        (again, in arbitrary order).

        N© ©ÚselfZlistenerÚextension_point_idr   r   ú`/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/envisage/i_extension_registry.pyÚadd_extension_point_listener   s    z/IExtensionRegistry.add_extension_point_listenerc                 C   s   dS )z� Add an extension point.

        If an extension point already exists with this Id then it is simply
        replaced.

        Nr   )r   Zextension_pointr   r   r	   Úadd_extension_point+   s    z&IExtensionRegistry.add_extension_pointc                 C   s   dS )zˆ Return the extensions contributed to an extension point.

        Return an empty list if the extension point does not exist.

        Nr   ©r   r   r   r   r	   Úget_extensions3   s    z!IExtensionRegistry.get_extensionsc                 C   s   dS )zt Return the extension point with the specified Id.

        Return None if no such extension point exists.

        Nr   r   r   r   r	   Úget_extension_point:   s    z&IExtensionRegistry.get_extension_pointc                 C   s   dS )zL Return all extension points that have been added to the registry.

        Nr   )r   r   r   r	   Úget_extension_pointsA   s    z'IExtensionRegistry.get_extension_pointsc                 C   s   dS )z� Remove a listener for extensions being added or removed.

        Raise a 'ValueError' if the listener does not exist.

        Nr   r   r   r   r	   Úremove_extension_point_listenerF   s    z2IExtensionRegistry.remove_extension_point_listenerc                 C   s   dS )z• Remove an extension point.

        Raise an 'UnknownExtensionPoint' exception if no extension point exists
        with the specified Id.

        Nr   r   r   r   r	   Úremove_extension_pointO   s    z)IExtensionRegistry.remove_extension_pointc                 C   s   dS )z@ Set the extensions contributed to an extension point.

        Nr   )r   r   Ú
extensionsr   r   r	   Úset_extensionsW   s    z!IExtensionRegistry.set_extensions)N)N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r
   r   r   r   r   r   r   r   r   r   r   r	   r      s   
 ÿ
	r   N)r   Z
traits.apir   r   r   r   r   r	   Ú<module>
   s   