API Reference for Enthought Tool Suite 2.7.1
The action plugin definition.
default_action_set = WorkbenchActionSet(id = (ID + '.default_action_set'), name = 'Default', groups = [ Group(id = 'FileMenuGroup', location = Location(path = 'MenuBar')), Group(id = 'HelpMenuGroup', location = Location(path = 'MenuBar')) ], menus = [ Menu(id = 'FileMenu', name = '&File', location = Location(path = 'MenuBar/FileMenuGroup'), groups = [ Group(id = 'ExitGroup') ]), Menu(id = 'HelpMenu', name = '&Help', location = Location(path = 'MenuBar/HelpMenuGroup'), groups = [ Group(id = 'AboutGroup') ]) ], actions = [ Action(id = 'Exit', name = 'E&xit', image = 'exit', image_path = [ IMAGE_PATH ], description = 'Exit the application', tooltip = 'Exit the application', object = WORKBENCH_UI_SERVICE, method_name = 'exit', locations = [ Location(path = 'MenuBar/FileMenu/ExitGroup') ]), Action(id = 'About', name = '&About', image = 'help_action', image_path = [ IMAGE_PATH ], description = 'Display information about the application', tooltip = 'Display information about the application', object = WORKBENCH_UI_SERVICE, method_name = 'about', locations = [ Location(path = 'MenuBar/HelpMenu/AboutGroup') ]) ])
The plugin's globally unique identifier (also used as the prefix for all identifiers defined in this module).
ID = 'enthought.envisage.workbench.action'
IMAGE_PATH = find_definition(ID)
view_action_set = WorkbenchActionSet(id = (ID + '.view_action_set'), name = 'View', groups = [ Group(id = 'ViewMenuGroup', location = Location(path = 'MenuBar', before = 'HelpMenuGroup')) ], menus = [ Menu(id = 'ViewMenu', name = '&View', location = Location(path = 'MenuBar/ViewMenuGroup')) ])
Service Ids used in actions.
WORKBENCH_UI_SERVICE = 'service://enthought.envisage.workbench.IWorkbenchUI'
Copyright © 2002-2008 Enthought, Inc.