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
|
""" The Developer perspective. """
# Enthought library imports.
from enthought.pyface.workbench.api import Perspective, PerspectiveItem
class DeveloperPerspective(Perspective):
""" The Developer perspective.
This perspective is intented to contain views and editors useful for
inspecting and debugging a running Envisage application.
"""
# The root of all view Ids in this package.
ROOT = 'enthought.envisage.developer.ui.view'
# View Ids.
APPLICATION_BROWSER_VIEW = ROOT + '.application_browser_view'
EXTENSION_REGISTRY_BROWSER_VIEW = ROOT + '.extension_registry_browser_view'
SERVICE_REGISTRY_BROWSER_VIEW = ROOT + '.service_registry_browser_view'
# The perspective's name.
name = 'Developer'
# Should the editor area be shown in this perspective?
show_editor_area = True
# The contents of the perspective.
contents = [
PerspectiveItem(
id = APPLICATION_BROWSER_VIEW,
position = 'left'
),
PerspectiveItem(
id = EXTENSION_REGISTRY_BROWSER_VIEW,
position = 'bottom',
relative_to = APPLICATION_BROWSER_VIEW
),
PerspectiveItem(
id = 'Python',
position = 'bottom',
),
PerspectiveItem(
id = SERVICE_REGISTRY_BROWSER_VIEW,
position = 'right',
),
]
#### EOF ######################################################################
|