indexing description: "Shared generation environment" status: "See notice at end of class" date: "$Date$" revision: "$Revision$" class WIZARD_SHARED_GENERATION_ENVIRONMENT inherit WIZARD_WRITER_DICTIONARY export {NONE} all end WIZARD_EXECUTION_ENVIRONMENT WIZARD_SHARED_DATA export {NONE} all end feature -- Access Shared_file_name_factory: WIZARD_FILE_NAME_FACTORY is -- Shared file name factory. once create Result end system_descriptor: WIZARD_SYSTEM_DESCRIPTOR is -- System descriptor. do Result := System_descriptor_cell.item end message_output: WIZARD_MESSAGE_OUTPUT is -- Shared message output. do Result := message_output_cell.item end progress_report: WIZARD_PROGRESS_REPORT is -- Shared wizard progress report. do Result := progress_report_cell.item end vartype_namer: WIZARD_VARTYPE_NAMER is -- Vartype to string mapper once create Result.make end Shared_process_launcher: WIZARD_PROCESS_LAUNCHER is -- Process launcher require non_void_message_output: message_output /= Void once create Result.make (message_output) end Formatter: STRING is "f" -- Message formatter. Generation_Successful: STRING is "Generation terminated successfully" -- Successful ending message Generation_Aborted: STRING is "Generation aborted" -- Successful ending message feature {WIZARD_MANAGER} -- Element Change set_system_descriptor (a_descriptor: like system_descriptor) is -- Set `system_descriptor' with `a_descriptor'. do System_descriptor_cell.replace (a_descriptor) ensure descriptor_set: system_descriptor = a_descriptor end set_message_output (a_window: like message_output) is -- Set `message_output' with `a_window'. require non_void_window: a_window /= Void do message_output_cell.replace (a_window) ensure message_output_set: message_output = a_window end set_progress_report (a_progress_report: like progress_report) is -- Set `progress_report' with `a_progress_report'. require non_void_progress_report: a_progress_report /= Void do progress_report_cell.replace (a_progress_report) ensure progress_report_set: progress_report = a_progress_report end feature {NONE} -- Implementation System_descriptor_cell: CELL [WIZARD_SYSTEM_DESCRIPTOR] is -- System descriptor shell once create Result.put (Void) end message_output_cell: CELL [WIZARD_MESSAGE_OUTPUT] is -- Output window shell once create Result.put (Void) end progress_report_cell: CELL [WIZARD_PROGRESS_REPORT] is -- Progress report shell once create Result.put (Void) end end -- class WIZARD_SHARED_GENERATION_ENVIRONMENT --|---------------------------------------------------------------- --| EiffelCOM: library of reusable components for ISE Eiffel. --| Copyright (C) 1988-1999 Interactive Software Engineering Inc. --| All rights reserved. Duplication and distribution prohibited. --| May be used only with ISE Eiffel, under terms of user license. --| Contact ISE for any other use. --| --| Interactive Software Engineering Inc. --| ISE Building, 2nd floor --| 270 Storke Road, Goleta, CA 93117 USA --| Telephone 805-685-1006, Fax 805-685-6869 --| Electronic mail --| Customer support http://support.eiffel.com --| For latest info see award-winning pages: http://www.eiffel.com --|----------------------------------------------------------------