note description: "Misc extension for Estudio debug menu ..." legal: "See notice at end of class." status: "See notice at end of class." date: "$Date$" revision: "$Revision$" class ESTUDIO_DEBUG_EXTENSION_MISC inherit ESTUDIO_DEBUG_EXTENSION redefine new_menu_item end create make feature -- Execution execute do end build_debug_sub_menu (a_menu: EV_MENU) -- Builds the debug submenu require not_a_menu_is_destroyed: not a_menu.is_destroyed local l_menu_item: EV_MENU_ITEM do -- a_menu.extend (create {EV_MENU_SEPARATOR}) --| Force Call on Void create l_menu_item.make_with_text_and_action ("Raise Exception (debug)", agent local e: DEVELOPER_EXCEPTION do create e e.set_description ("Exception raised by user interaction / EiffelStudio") e.raise end) a_menu.extend (l_menu_item) end feature -- Actions feature -- Access menu_path: ARRAY [STRING] do Result := <<"Misc">> end feature {NONE} -- Implementation new_menu_item (a_title: STRING): EV_MENU do Result := imp_new_menu_item (a_title) build_debug_sub_menu (Result) end note copyright: "Copyright (c) 1984-2020, Eiffel Software" license: "GPL version 2 (see http://www.eiffel.com/licensing/gpl.txt)" licensing_options: "http://www.eiffel.com/licensing" copying: "[ This file is part of Eiffel Software's Eiffel Development Environment. Eiffel Software's Eiffel Development Environment is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2 of the License (available at the URL listed under "license" above). Eiffel Software's Eiffel Development Environment is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Eiffel Software's Eiffel Development Environment; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ]" source: "[ Eiffel Software 5949 Hollister Ave., Goleta, CA 93117 USA Telephone 805-685-1006, Fax 805-685-6869 Website http://www.eiffel.com Customer support http://support.eiffel.com ]" end