/
oracle_plugin.py
39 lines (28 loc) · 1008 Bytes
/
oracle_plugin.py
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
33
34
35
36
37
38
39
""" The Oracle Plugin
"""
# Copyright (C) 2009-2010, Ecole Polytechnique Federale de Lausanne (EPFL) and
# University Hospital Center and University of Lausanne (UNIL-CHUV)
#
# Modified BSD License
# Enthought library imports
from envisage.api import Plugin
from envisage.api import Service
from traits.api import List
# This module's package.
PKG = '.'.join(__name__.split('.')[:-1])
# Logging imports
import logging
logger = logging.getLogger('root.'+__name__)
class OraclePlugin(Plugin):
""" This plugin allows to create code """
ACTION_SETS = 'envisage.ui.workbench.action_sets'
# The plugin's unique identifier.
id = 'connectome.codeoracle'
# The plugin's name (suitable for displaying to the user).
name = 'Oracle Plugin'
# adding the action sets
action_sets = List(contributes_to=ACTION_SETS)
def _action_sets_default(self):
""" Trait initializer. """
from oracle_action_set import OracleActionSet
return [OracleActionSet]