API Reference for Enthought Tool Suite 3.0.1
The resource type plugin.
BASE = 'enthought.envisage.resource'
cookies = CookieImplementations(implementations = [ CookieImplementation(resource_type = QUANTITY_RESOURCE_TYPE, cookie_interface = ('enthought.envisage.project.action' + '.open_cookie.OpenCookie'), cookie_implementation = (ID + '.quantity_resource_open_cookie.QuantityResourceOpenCookie')) ])
The plugin's globally unique identifier (also used as the prefix for all identifiers defined in this module).
ID = 'enthought.resource_type'
fixme: put these 'built-in' resource types into a separate resource plugin?
INSTANCE_RESOURCE_TYPE = (BASE + '.instance_resource_type.InstanceResourceType')
QUANTITY_RESOURCE_TYPE = (ID + '.quantity_resource_type.QuantityResourceType')
resource_manager = ResourceManager(resource_types = [ ResourceType(class_name = QUANTITY_RESOURCE_TYPE, precedes = [ INSTANCE_RESOURCE_TYPE ]) ])
## Resource Wizards ##########################################################
resource_wizards = ResourceWizards(resource_wizards = [ ResourceWizard(category = 'Data Resources', name = 'Quantity', class_name = (ID + '.new_quantity_wizard.NewQuantityWizard')), ResourceWizard(category = 'Data Resources', name = 'Scalar', class_name = (ID + '.new_scalar_wizard.NewScalarWizard')) ])
| Local name | Refers to |
|---|---|
| CookieImplementation | enthought.envisage.resource.resource_ui_plugin_definition.CookieImplementation |
| CookieImplementations | enthought.envisage.resource.resource_ui_plugin_definition.CookieImplementations |
| PluginDefinition | enthought.envisage.core.core_plugin_definition.PluginDefinition |
| ResourceManager | enthought.envisage.resource.resource_plugin_definition.ResourceManager |
| ResourceType | enthought.envisage.resource.resource_plugin_definition.ResourceType |
| ResourceWizard | enthought.envisage.resource.resource_ui_plugin_definition.ResourceWizard |
| ResourceWizards | enthought.envisage.resource.resource_ui_plugin_definition.ResourceWizards |
© Copyright 2002-2008 Enthought, Inc.