note description: "Generation Options page" legal: "See notice at end of class." status: "See notice at end of class." author: "pascalf" date: "$Date$" revision: "$Revision$" class DB_GENERATION inherit WIZARD_STATE_WINDOW redefine update_state_information, proceed_with_current_info end WIZARD_SHARED undefine default_create end create make feature -- basic Operations display -- Display user entries do build end build -- Build Page entries. do Create generate_all_tables.make_with_text("Generate All tables/views") Create generate_specific_tables.make_with_text("Generate Specific tables/views") if wizard_information.generate_every_table then generate_all_tables.enable_select else generate_specific_tables.enable_select end main_box.extend(Create {EV_HORIZONTAL_BOX}) main_box.extend(generate_all_tables) main_box.extend(Create {EV_HORIZONTAL_BOX}) main_box.extend(generate_specific_tables) set_updatable_entries(<>) end proceed_with_current_info -- Process user entries do precursor if generate_all_tables.is_selected then proceed_with_new_state(Create {DB_GENERATION_TYPE}.make(wizard_information)) else proceed_with_new_state(Create {DB_TABLE_SELECTION}.make(wizard_information)) end end update_state_information -- Check user entries local cl_name: CLASS_NAME do Create cl_name.make if is_oracle then table_list := db_manager.load_list_from_select("select TABLE_NAME from USER_TABLES",cl_name) elseif is_odbc then table_list := db_manager.load_list_from_select("Sqltables()",cl_name) else Create table_list.make end wizard_information.set_generate_all_table(generate_all_tables.is_selected) wizard_information.set_table_list(table_list) precursor end feature -- Implementation generate_all_tables,generate_specific_tables: EV_RADIO_BUTTON -- Button which are provided in order to allow -- the user to choose which type of generation he -- wish to do. table_list: LINKED_LIST[CLASS_NAME] -- List of all the system tables. pixmap_location: STRING = "essai2.bmp"; -- Pixmap location 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 DB_GENERATION