envisage.i_extension_provider module

The interface for extension providers.

class envisage.i_extension_provider.IExtensionProvider(adaptee, default=<class 'traits.adaptation.adaptation_error.AdaptationError'>)[source]

Bases: Interface

The interface for extension providers.

get_extension_points()[source]

Return the extension points offered by the provider.

Return an empty list if the provider does not offer any extension points.

get_extensions(extension_point_id)[source]

Return the provider’s extensions to an extension point.

The return value must be a list. Return an empty list if the provider does not contribute any extensions to the extension point.