note description: "Formatter that displays information about a feature." legal: "See notice at end of class." status: "See notice at end of class." author: "Xavier Rousselot" date: "$Date$" revision: "$Revision$" deferred class EB_FEATURE_INFO_FORMATTER inherit EB_FORMATTER redefine veto_pebble_function end feature -- Access mode: NATURAL_8 -- Formatter mode, see {ES_FEATURE_RELATION_TOOL_VIEW_MODES} for applicable values. deferred ensure result_is_valid_mode: (create {ES_FEATURE_RELATION_TOOL_VIEW_MODES}).is_valid_mode (Result) end feature -- Properties associated_feature: E_FEATURE -- Feature about which information is displayed. feature {NONE} -- Implementation veto_pebble_function (a_any: ANY): BOOLEAN -- Veto pebble function do if attached {FEATURE_STONE} a_any as l_feature_stone then Result := Precursor {EB_FORMATTER}(a_any) end end element_name: STRING_32 -- name of associated element in current formatter. -- For exmaple, if a class stone is associated to current, `element_name' would be the class name. do if associated_feature /= Void then Result := associated_feature.name_32 end end temp_header: STRING_GENERAL -- Temporary header displayed during the format processing. do Result := Interface_names.l_working_formatter (command_name, associated_feature.name_32, False) end header: STRING_GENERAL -- Header displayed when current formatter is selected. do if associated_feature /= Void and then associated_feature.is_valid and then associated_feature.associated_class /= Void then Result := Interface_names.l_Header_feature (capital_command_name, associated_feature.name_32, associated_feature.associated_class.name_in_upper) else Result := Interface_names.l_No_feature end end line_numbers_allowed: BOOLEAN = False; -- Does it make sense to show line numbers in Current? note copyright: "Copyright (c) 1984-2018, 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 -- class EB_FEATURE_INFO_FORMATTER