Inherits from
- ExtensionProvider: enthought.envisage.extension_provider.ExtensionProvider
Attributes
- activator
The activator used to start and stop the plugin.
By default the same activator instance is used for all plugins of this type.
activator = Instance(IPluginActivator, PluginActivator())
- application
The application that the plugin is part of.
application = Instance(IApplication)
- extension_registry
The extension registry that the object's extension points are stored in.
extension_registry = Property(Instance(IExtensionRegistry))
- id
The plugin's unique identifier.
If no identifier is specified then the module and class name of the plugin are used to create an Id with the form 'module_name.class_name'.
id = Str
- name
The plugin's name (suitable for displaying to the user).
If no name is specified then the plugin's class name is used with an attempt made to turn camel-case class names into words separated by spaces (e.g. if the class name is 'MyPlugin' then the name would be 'My Plugin'). Of course, if you really care about the actual name, then just set it!
name = Str
- service_registry
The service registry that the object's services are stored in.
service_registry = Property(Instance(IServiceRegistry))
Inherited from base classes
Method summary
- connect_extension_point_traits(self)
- disconnect_extension_point_traits(self)
- get_extension_points(self)
- get_extensions(self, extension_point_id)
- register_services(self)
- start(self)
- stop(self)
- unregister_services(self)
Inherited from base classes
- __deepcopy__(self, memo)
- __getstate__(self)
- __prefix_trait__(self, name, is_set)
- __reduce_ex__(self, protocol)
- __setstate__(self, state, trait_change_notify = True)
- add_class_trait(cls, name, *trait)
- add_trait(self, name, *trait)
- add_trait_category(cls, category)
- add_trait_listener(self, object, prefix = '')
- all_trait_names(self)
- base_trait(self, name)
- class_default_traits_view(cls)
- class_editable_traits(cls)
- class_trait_names(cls, **metadata)
- class_trait_view(cls, name = None, view_element = None)
- class_trait_view_elements(cls)
- class_traits(cls, **metadata)
- clone_traits(self, traits = None, memo = None, copy = None, **metadata)
- configure_traits(self, filename = None, view = None, kind = None, edit = True, context = None, handler = None, id = '', scrollable = None, **args)
- copy_traits(self, other, traits = None, memo = None, copy = None, **metadata)
- copyable_trait_names(self, **metadata)
- default_traits_view(self)
- edit_traits(self, view = None, parent = None, kind = None, context = None, handler = None, id = '', scrollable = None, **args)
- editable_traits(self)
- has_traits_interface(self, *interfaces)
- on_trait_change(self, handler, name = None, remove = False, dispatch = 'same', priority = False, deferred = False)
- print_traits(self, show_help = False, **metadata)
- remove_trait(self, name)
- remove_trait_listener(self, object, prefix = '')
- reset_traits(self, traits = None, **metadata)
- set_trait_dispatch_handler(cls, name, klass, override = False)
- sync_trait(self, trait_name, object, alias = None, mutual = True, remove = False)
- trait(self, name, force = False, copy = False)
- trait_context(self)
- trait_get(self, *names, **metadata)
- trait_monitor(cls, handler, remove = False)
- trait_names(self, **metadata)
- trait_set(self, trait_change_notify = True, **traits)
- trait_setq(self, **traits)
- trait_subclasses(cls, all = False)
- trait_view(self, name = None, view_element = None)
- trait_view_elements(self)
- trait_views(self, klass = None)
- traits(self, **metadata)
- validate_trait(self, name, value)
Methods
- connect_extension_point_traits(self)
Connect all of the plugin's extension points.
This means that the plugin will be notified if and when contributions are add or removed.
- disconnect_extension_point_traits(self)
Disconnect all of the plugin's extension points.
- get_extension_points(self)
Return the extension points offered by the provider.
- get_extensions(self, extension_point_id)
Return the provider's extensions to an extension point.
- register_services(self)
Register the services offered by the plugin.
- start(self)
Start the plugin.
This method will always be empty so that you never have to call 'super(xxx, self).start()' if you provide an implementation in a derived class.
The framework does what it needs to do when it starts a plugin by means of the plugin's activator.
- stop(self)
Stop the plugin.
This method will always be empty so that you never have to call 'super(xxx, self).stop()' if you provide an implementation in a derived class.
The framework does what it needs to do when it stops a plugin by means of the plugin's activator.
- unregister_services(self)
Unregister any service offered by the plugin.