indexing description: "User specific options for a given target." legal: "See notice at end of class." status: "See notice at end of class." date: "$Date$" revision: "$Revision$" class TARGET_USER_OPTIONS create make feature {NONE} -- Initialization make (a_name: STRING) is -- Initialize user specific option for target `a_name'. require a_name_not_void: a_name /= Void do name := a_name ensure name_set: name = a_name end feature -- Access name: STRING -- Name for current target. last_location: STRING is -- EIFGENs location for `a_target'. local l_list: like locations do l_list := locations if l_list /= Void then Result := l_list.first end end locations: ARRAYED_LIST [STRING] -- Set of EIFGENs location for `a_target'. use_arguments: BOOLEAN -- Use arguments? last_argument: STRING -- Last used argument. arguments: ARRAYED_LIST [STRING] -- List of arguments used by current project. working_directory: STRING -- Working directory. feature -- Update set_last_location (a_location: like last_location) is -- Set `last_location' to `a_location'. require a_location_not_void: a_location /= Void local l_list: like locations do l_list := locations if l_list = Void then create l_list.make (5) l_list.compare_objects locations := l_list end -- Always put `a_location' first in the list. l_list.start l_list.search (a_location) if not l_list.exhausted then l_list.remove end l_list.put_front (a_location) ensure last_location_set: last_location /= Void and then last_location.is_equal (a_location) end set_arguments (an_arguments: like arguments) is -- Set `arguments' to `an_arguments'. do arguments := an_arguments ensure arguments_set: arguments = an_arguments end set_last_argument (an_argument: like last_argument) is -- Set `last_argument' to `an_argument'. do last_argument := an_argument ensure last_argument_set: last_argument = an_argument end enable_arguments is -- Enable use of arguments. do use_arguments := True ensure use_arguments: use_arguments end disable_arguments is -- Disable use of arguments. do use_arguments := False ensure not_use_arguments: not use_arguments end set_working_directory (a_directory: like working_directory) is -- Set `working_directory' to `a_directory'. do working_directory := a_directory ensure working_directory_set: working_directory = a_directory end invariant name_not_void: name /= Void indexing copyright: "Copyright (c) 1984-2006, 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 356 Storke Road, Goleta, CA 93117 USA Telephone 805-685-1006, Fax 805-685-6869 Website http://www.eiffel.com Customer support http://support.eiffel.com ]" end