note description: "Add new reference dialog." legal: "See notice at end of class." status: "See notice at end of class." date: "$Date$" revision: "$Revision$" class NM_NEW_REFERENCE_DIALOG inherit NM_NEW_REFERENCE_DIALOG_IMP feature {NONE} -- Initialization user_initialization -- called by `initialize'. -- Any custom user initialization that -- could not be performed in `initialize', -- (due to regeneration of implementation class) -- can be added here. do end feature -- Access assembly: STRING -- Added assembly assembly_prefix: STRING -- Added assembly prefix feature {NONE} -- Implementation on_location_change -- Called by `change_actions' of `reference_location_combo'. -- Check if `Add' button should be enabled do if reference_location_combo.text.is_empty then add_button.disable_sensitive else add_button.enable_sensitive end end on_browse -- Called by `select_actions' of `browse_button'. -- Open file browse dialog and add selected assembly. local l_dialog: EV_FILE_OPEN_DIALOG do create l_dialog.make_with_title ("Browse for assembly...") l_dialog.filters.extend (["*.dll", "Assembly File"]) l_dialog.filters.extend (["*.exe", "Assembly File"]) l_dialog.filters.extend (["*.*", "Any File"]) l_dialog.show_modal_to_window (Current) if not l_dialog.file_name.is_empty then reference_location_combo.set_text (l_dialog.file_name) end end on_add -- Called by `select_actions' of `add_button'. do assembly := reference_location_combo.text assembly_prefix := prefix_combo.text destroy end on_cancel -- Called by `select_actions' of `cancel_button'. do destroy end note 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 -- class NM_NEW_REFERENCE_DIALOG