note description: "Command to display modified classes since last compilation." legal: "See notice at end of class." status: "See notice at end of class."; date: "$Date$"; revision: "$Revision $" class E_SHOW_MODIFIED_CLASSES inherit E_OUTPUT_CMD SHARED_EIFFEL_PROJECT create make, do_nothing feature -- Execution work -- Show universe: clusters in class lists. local groups: ARRAYED_LIST [CONF_GROUP]; cursor: CURSOR; do text_formatter.add ("Classes modified since last compilation"); text_formatter.add_new_line; text_formatter.add_new_line; groups := Eiffel_universe.groups if not groups.is_empty then from --| Print user defined clusters groups.start until groups.after loop cursor := groups.cursor display_a_cluster (groups.item) groups.go_to (cursor) groups.forth end end end; feature {NONE} -- Implementation display_a_cluster (a_group: CONF_GROUP) local sorted_class_names: SORTED_TWO_WAY_LIST [READABLE_STRING_GENERAL] classes: STRING_TABLE [CONF_CLASS] do create sorted_class_names.make classes := a_group.classes across classes as ic loop if ic.item.has_modification_date_changed then sorted_class_names.put_front (ic.key) end end if not sorted_class_names.is_empty then sorted_class_names.sort; text_formatter.add ("Cluster: "); text_formatter.add (a_group.name); if attached {CONF_PRECOMPILE} a_group then text_formatter.add (" (Precompiled)") end; text_formatter.add_new_line; across sorted_class_names as ic loop if attached {CLASS_I} classes.item (ic.item) as a_classi then text_formatter.add_indent; if attached a_classi.compiled_class as l_classe then l_classe.append_signature (text_formatter, True) else a_classi.append_name (text_formatter); text_formatter.add (" (not in system)") end; text_formatter.add_new_line; end end end; end; 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 E_SHOW_MODIFIED_CLASSES