1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
""" A plugin that offers the 'refresh code' functionality. """
# Enthought library imports.
from enthought.envisage.api import Plugin
from enthought.traits.api import List
class RefreshCodePlugin(Plugin):
""" A plugin that offers the 'refresh code' functionality. """
# Extension point Ids.
ACTION_SETS = 'enthought.envisage.ui.workbench.action_sets'
#### Extension points offered by this plugin ##############################
# None.
#### Contributions to extension points made by this plugin ################
action_sets = List(contributes_to=ACTION_SETS)
def _action_sets_default(self):
""" Trait initializer. """
from enthought.plugins.refresh_code.refresh_code_action_set import (
RefreshCodeActionSet
)
return [RefreshCodeActionSet]
#### EOF ######################################################################
|