indexing description: "Command to generate the internal representation of % %the profile information." legal: "See notice at end of class." status: "See notice at end of class."; date: "$Date$"; revision: "$Revision$" class GENERATE_PROFILE_INFO_CMD inherit ISE_COMMAND; EB_CONSTANTS; WINDOWS feature -- Command execution work (arg: ANY) is local profinfo, compile, profiler: STRING prof_converter: CONVERTER_CALLER conf_load: CONFIGURATION_LOADER prof_invoker: PROFILER_INVOKER error_dlg: WARNER_W ok_dlg: MESSAGE_WINDOW do if arg = Void and then dlg = Void then --| Create the dialog create dlg.make (Profile_tool) dlg.call (Current); elseif arg = dlg then --| Get info from the dialog --| And do real execution --| Grep the information. profinfo := dlg.profinfo_file; compile := dlg.compile_mode; profiler := dlg.profiler_type; --| Destroy the dialog's interface dlg.destroy; create conf_load.make_and_load (profiler); if conf_load.error_occurred then raise_config_error; else create prof_invoker.make (profiler, current_cmd_line_argument, profinfo, compile); if prof_invoker.must_invoke_profiler then prof_invoker.invoke_profiler; end; create prof_converter.make (<>, conf_load.shared_prof_config); if prof_converter.conf_load_error then profinfo.append (": file does not exist") create error_dlg.make (profile_tool) error_dlg.gotcha_call (profinfo) elseif prof_converter.is_last_conversion_ok then create ok_dlg.make ("Ready for queries", profile_tool) ok_dlg.hide_cancel_button ok_dlg.hide_help_button ok_dlg.set_message ("Ready for queries") ok_dlg.popup end; end; --| Get rid of the object... dlg := Void elseif arg = Void then --| Cancel generation dlg.destroy; dlg := Void end end feature -- Access name: STRING is do Result := Interface_names.f_Generate end; menu_name: STRING is -- Name used in menu entry do Result := Interface_names.m_Generate end; accelerator: STRING is -- Accelerator action for menu entry do end feature {NONE} -- Implementation dlg: GENERATION_OPTIONS_DLG raise_config_error is -- Explains that an error occurred while loading the -- profiler specific configuration file. local error_dlg: ERROR_WINDOW do create error_dlg.make (Interface_names.t_Configuration_error, profile_tool) error_dlg.set_message (Warning_messages.w_Load_configuration) error_dlg.popup end indexing copyright: "Copyright (c) 1984-2006, 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 356 Storke Road, Goleta, CA 93117 USA Telephone 805-685-1006, Fax 805-685-6869 Website http://www.eiffel.com Customer support http://support.eiffel.com ]" end -- class GENERATE_PROFILE_INFO_CMD