envisage.extension_registry module

A base class for extension registry implementation.

class envisage.extension_registry.ExtensionRegistry[source]

Bases: traits.has_traits.HasTraits

A base class for extension registry implementation.

add_extension_point(extension_point)[source]

Add an extension point.

add_extension_point_listener(listener, extension_point_id=None)[source]

Add a listener for extensions being added or removed.

get_extension_point(extension_point_id)[source]

Return the extension point with the specified Id.

get_extension_points()[source]

Return all extension points.

get_extensions(extension_point_id)[source]

Return the extensions contributed to an extension point.

remove_extension_point(extension_point_id)[source]

Remove an extension point.

remove_extension_point_listener(listener, extension_point_id=None)[source]

Remove a listener for extensions being added or removed.

set_extensions(extension_point_id, extensions)[source]

Set the extensions contributed to an extension point.