Debian Codegraph @

envisage/plugins/text_editor/text_editor_plugin.py

raw
1 # (C) Copyright 2007-2025 Enthought, Inc., Austin, TX
2 # All rights reserved.
3 #
4 # This software is provided without warranty under the terms of the BSD
5 # license included in LICENSE.txt and may be redistributed only under
6 # the conditions described in the aforementioned license. The license
7 # is also available online at http://www.enthought.com/licenses/BSD.txt
8 #
9 # Thanks for using Enthought open source!
10 """ Text Editor plugin for the Workbench UI.
11 """
12
13
14 # Enthought library imports.
15 from traits.api import List
16
17 from envisage.api import Plugin
18
19 # The plugin's globally unique identifier (also used as the prefix for all
20 # identifiers defined in this module).
21 ID = "envisage.plugins.text_editor"
22
23
24 class TextEditorPlugin(Plugin):
25 """Text Editor plugin for the Workbench UI."""
26
27 name = "Text Editor plugin"
28
29 #### Contributions made by this plugin ####################################
30
31 ACTION_SETS = "envisage.ui.workbench.action_sets"
32 action_sets = List(contributes_to=ACTION_SETS)
33
34 def _action_sets_default(self):
35 from envisage.plugins.text_editor.text_editor_action_set import (
36 TextEditorActionSet,
37 )
38
39 return [TextEditorActionSet]