Debian Codegraph @

envisage/plugins/text_editor/text_editor_action_set.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
11 from envisage.ui.action.api import Action, ActionSet, Group
12
13
14 class TextEditorActionSet(ActionSet):
15 """The default action set for the Text Editor plugin."""
16
17 groups = [
18 Group(id="TextFileGroup", path="MenuBar/File", before="ExitGroup")
19 ]
20
21 actions = [
22 Action(
23 id="NewFileAction",
24 name="New Text File",
25 class_name="envisage.plugins.text_editor.actions.NewFileAction",
26 group="TextFileGroup",
27 path="MenuBar/File",
28 ),
29 Action(
30 id="OpenFile",
31 name="Open Text File...",
32 class_name="envisage.plugins.text_editor.actions.OpenFileAction",
33 group="TextFileGroup",
34 path="MenuBar/File",
35 ),
36 ]