Debian Codegraph @

envisage/ui/workbench/workbench_preferences.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 """ The workbench preferences. """
11
12
13 # Enthought library imports.
14 from apptools.preferences.api import PreferencesHelper
15 from traits.api import Bool
16
17
18 class WorkbenchPreferences(PreferencesHelper):
19 """Helper for the workbench preferences."""
20
21 #### 'PreferencesHelper' interface ########################################
22
23 # The path to the preferences node that contains the preferences.
24 preferences_path = "envisage.ui.workbench"
25
26 #### Preferences ##########################################################
27
28 # Should the user be prompted before exiting the workbench?
29 prompt_on_exit = Bool(True)