indexing description : "This class is inherited by all the application" author : "Arnaud PICHERY [aranud@mail.dotcom.fr]" date : "$Date$" revision : "$Revision$" class BENCH_WIZARD_SHARED inherit ARGUMENTS feature -- Shared variables callback_content: STRING is -- Content of the filename used as callback. local file: PLAIN_TEXT_FILE once if callback_filename /= Void then create file.make_open_read (callback_filename) -- Read the file. create Result.make (0) from until file.end_of_file loop file.read_line Result.append (file.last_string+"%N") end file.close end end callback_filename: STRING is -- Filename used as callback. once Result := separate_word_option_value ("callback") if Result /= Void and then Result.is_empty then Result := Void end ensure Result_void_or_not_empty: Result = Void or else not Result.is_empty end write_bench_notification_cancel is -- Write onto the file given as argument that the wizard has been aborded. local file: PLAIN_TEXT_FILE rescued: BOOLEAN do if not rescued then if callback_content /= Void then -- Modify the fields callback_content.replace_substring_all ("", "no") if callback_filename /= Void then create file.make_open_write (callback_filename) file.put_string (callback_content) file.close end end end rescue rescued := True retry end write_bench_notification_ok (wizard_information: BENCH_WIZARD_INFORMATION) is -- Write onto the file given as argument the project ace file, directory, ... -- found in `information'. local file: PLAIN_TEXT_FILE rescued: BOOLEAN do if not rescued then if callback_content /= Void then -- Modify the fields callback_content.replace_substring_all ("", "yes") callback_content.replace_substring_all ("", wizard_information.ace_location) callback_content.replace_substring_all ("", wizard_information.project_location) if wizard_information.compile_project then callback_content.replace_substring_all ("", "yes") else callback_content.replace_substring_all ("", "no") end if callback_filename /= Void then create file.make_open_write (callback_filename) file.put_string (callback_content) file.close end end end rescue rescued := True retry end Eiffel_projects_directory: STRING is -- Directory where projects are created once Result := (create {EXECUTION_ENVIRONMENT}).get ("ISE_PROJECTS") end end -- class BENCH_WIZARD_SHARED