indexing description: "Error object sent by the compiler to the workbench."; date: "$Date$"; revision: "$Revision $" class ERROR_STONE inherit EIFFEL_ENV; FILED_STONE redefine help_text end create make feature {NONE} -- Initialization make (an_errori: ERROR) is do error_i := an_errori end; feature -- Properties error_i: ERROR; feature -- Access code: STRING is -- Code error do Result := error_i.code end; header: STRING is do Result := code; if Result = Void then create Result.make (0) end; end; stone_type: INTEGER is do Result := Explain_type end; stone_name: STRING is do Result := Interface_names.s_Explain_stone end; help_text: LINKED_LIST [STRING] is -- Content of the file where the help is local a_file: RAW_FILE; a_line: STRING do create Result.make; if is_valid then create a_file.make (file_name); if a_file.exists and then a_file.is_readable then from a_file.open_read; a_file.readline; until a_file.end_of_file loop a_line := clone (a_file.laststring); Result.extend (a_line); a_file.readline; end end end if Result.is_empty then Result.put_front (Interface_names.h_No_help_available) end; end; file_name: STRING is -- File where the help is local fn: FILE_NAME do create fn.make_from_string (help_path); fn.set_file_name (error_i.help_file_name); Result := fn end; set_file_name (s: STRING) is do end; -- Do nothing click_list: ARRAY [CLICK_STONE] is do end; stone_signature: STRING is do Result := code end; icon_name: STRING is do Result := code; if Result = Void then create Result.make (0) end; end; clickable: BOOLEAN is -- Is Current an element with recorded structures information? -- No do -- Do nothing end stone_cursor: SCREEN_CURSOR is -- Cursor associated with Current stone during transport -- when widget at cursor position is compatible with Current stone do Result := Cursors.cur_Explain end; x_stone_cursor: SCREEN_CURSOR is -- Cursor associated with Current stone during transport -- when widget at cursor position is not compatible with Current stone do Result := Cursors.cur_X_explain end; feature -- Update process (hole: HOLE) is -- Process Current stone dropped in hole `hole'. do hole.process_error (Current) end; end -- class ERROR_STONE