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
|
#!/usr/bin/env python
#-----------------------------------------------------------------------------
#
# Copyright (c) 2007 by Enthought, Inc.
# All rights reserved.
#
#-----------------------------------------------------------------------------
"""
The entry point for an Envisage application.
"""
# Standard library imports.
import logging
# Enthought plugins.
from enthought.envisage.core_plugin import CorePlugin
from enthought.envisage.developer.developer_plugin import DeveloperPlugin
from enthought.envisage.developer.ui.developer_ui_plugin import DeveloperUIPlugin
from enthought.envisage.ui.workbench.workbench_plugin import WorkbenchPlugin
from enthought.envisage.ui.single_project.project_plugin import ProjectPlugin
from enthought.envisage.ui.workbench.api import WorkbenchApplication
from enthought.plugins.python_shell.python_shell_plugin import PythonShellPlugin
# Local imports.
from plugins.single_project.plugin_definition import EnvProjectPlugin
# FIXME: This is uncommented for now until we have the new TreeEditor
# implementation in place that can understand domain-objects that have
# been abstracted to an INode interface.
#from data.plugin.plugin_definition import DataPlugin
# Configure a logger for this application
logger = logging.getLogger()
logger.addHandler(logging.StreamHandler())
logger.setLevel(logging.DEBUG)
def main():
""" Runs the application. """
# Create the application.
application = WorkbenchApplication(
id = 'testProject_extended',
plugins=[
CorePlugin(),
WorkbenchPlugin(),
DeveloperPlugin(),
DeveloperUIPlugin(),
ProjectPlugin(),
EnvProjectPlugin(),
PythonShellPlugin(),
# FIXME: This is uncommented for now until we have the new TreeEditor
# implementation in place that can understand domain-objects that have
# been abstracted to an INode interface.
#DataPlugin(),
]
)
# Run the application.
application.run()
return
# Application entry point.
if __name__ == '__main__':
main()
|