File: refresh_code_plugin.py

package info (click to toggle)
python-envisageplugins 3.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,616 kB
  • ctags: 1,970
  • sloc: python: 7,047; makefile: 11; sh: 11; lisp: 1
file content (32 lines) | stat: -rw-r--r-- 920 bytes parent folder | download | duplicates (2)
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 ######################################################################