envisage.ui.workbench.workbench_action_set module¶
An action set in a workbench window.
- class envisage.ui.workbench.workbench_action_set.WorkbenchActionSet[source]¶
Bases:
ActionSet
An action set in a workbench window.
This class adds a ‘window’ trait which is the workbench window that the action set is in. The trait is set by the framework when the action set is added to the window.
It also adds a simple way for the action set to be enabled and/or visible in specific perspectives.
- initialize()[source]¶
Called when the action set has been added to a window.
Use this method to hook up any listeners that you need to control the enabled and/or visible state of the action set.
By default, we listen to the window being opened and the active perspective and active view being changed.