note description: "Wizard to create features and insert them in a specific%N% %feature clause." legal: "See notice at end of class." status: "See notice at end of class." date: "$Date$" revision: "$Revision$" class EB_PROCEDURE_EDITOR inherit EB_ROUTINE_EDITOR redefine initialize, is_procedure end feature {NONE} -- Initialization initialize do Precursor feature_clause_selector.set_clause_name (fc_Element_change) end routine_is_part: EV_HORIZONTAL_BOX -- Box with `add_argument_button' and "):". local c: EV_CELL l_vbox: EV_VERTICAL_BOX do create Result create l_vbox l_vbox.extend (add_argument_button) l_vbox.disable_item_expand (l_vbox.last) l_vbox.extend (create {EV_CELL}) Result.extend (l_vbox) Result.disable_item_expand (Result.last) create l_vbox l_vbox.extend (new_label (")")) l_vbox.disable_item_expand (l_vbox.last) l_vbox.extend (create {EV_CELL}) Result.extend (l_vbox) Result.disable_item_expand (Result.last) create c extend (c) disable_item_expand (c) end feature -- Access code: STRING_32 -- Current text of the feature in the wizard. local l_arguments_code: STRING_32 do create Result.make (100) Result.append ({STRING_32} "%T" + feature_name_field.text) l_arguments_code := arguments_code if l_arguments_code /= Void and then not l_arguments_code.is_empty then Result.append ({STRING_32} " (" + l_arguments_code + ")") end Result.append ("%N") Result.append (comments_code) Result.append (routine_code) end type: STRING_32 -- Full type as string. feature -- Status report is_procedure: BOOLEAN = True; -- Is `Current' a procedure editor? feature -- Element change set_type (a_type: STRING_32) -- Set content of `type_field' to `a_type'. do type := a_type.string end note copyright: "Copyright (c) 1984-2013, 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_PROCEDURE_EDITOR