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 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
|
""" The developer UI plugin. """
# Enthought library imports.
from enthought.envisage.api import Plugin
from enthought.traits.api import List
class DeveloperUIPlugin(Plugin):
""" The developer UI plugin.
This plugin contains the UI part of the tools that (hopefully) help
developers to inspect and debug a running Envisage workbench application.
"""
# The plugin Id.
ID = 'enthought.envisage.developer.ui'
# Extension points Ids.
PERSPECTIVES = 'enthought.envisage.ui.workbench.perspectives'
VIEWS = 'enthought.envisage.ui.workbench.views'
#### 'IPlugin' interface ##################################################
# The plugin's unique identifier.
id = ID
# The plugin's name (suitable for displaying to the user).
name = 'Developer UI'
#### 'DeveloperUIPlugin' interface ########################################
#### Extension points offered by this plugin ##############################
# None.
#### Contributions to extension points made by this plugin ################
perspectives = List(contributes_to=PERSPECTIVES)
def _perspectives_default(self):
""" Trait initializer. """
from enthought.envisage.developer.ui.perspective.api import (
DeveloperPerspective
)
return [DeveloperPerspective]
views = List(contributes_to=VIEWS)
def _views_default(self):
""" Trait initializer. """
from view.api import (
ApplicationBrowserView,
ExtensionRegistryBrowserView,
ServiceRegistryBrowserView
)
views = [
ApplicationBrowserView,
ExtensionRegistryBrowserView,
ServiceRegistryBrowserView
]
return views
#### EOF ######################################################################
|