indexing description: " A class that gives all the paths needed in the% % tutorial." status: "See notice at end of class." date: "$Date$" revision: "$Revision$" class FILE_PATHS feature -- Access class_name: STRING -- Current name of the class example_name: STRING -- Current name of the example file feature -- Basic operation documentation_file: STRING is -- Return the full name of the documentation file. do Result := clone (library_path) Result.append_character (Operating_environment.directory_separator) Result.append ("documentation") Result.append_character (Operating_environment.directory_separator) Result.append (class_name) Result.append (".txt") end class_file: STRING is -- Return the full name of the new class file. do Result := clone (library_path) Result.append_character (Operating_environment.directory_separator) Result.append ("short_forms") Result.append_character (Operating_environment.directory_separator) Result.append (class_name) Result.append (".rtf") end example_file: STRING is -- sets example path string do Result := clone (example_path) Result.append_character (Operating_environment.directory_separator) Result.append ("demo_windows") Result.append_character (Operating_environment.directory_separator) Result.append (example_name) Result.append (".e") end feature {NONE} -- Implementation library_path : STRING is -- directory of all vision2 library short-form interfaces local env: EXECUTION_ENVIRONMENT once create env Result := env.get ("ISE_EIFFEL") Result.append_character (Operating_environment.directory_separator) Result.append ("library") Result.append_character (Operating_environment.directory_separator) Result.append ("vision2") end example_path: STRING is -- path of example class text. local env: EXECUTION_ENVIRONMENT once create env Result := env.get ("ISE_EIFFEL") Result.append_character (Operating_environment.directory_separator) Result.append ("examples") Result.append_character (Operating_environment.directory_separator) Result.append ("vision2") Result.append_character (Operating_environment.directory_separator) Result.append ("tutorial") end end -- class FILE_PATHS --|---------------------------------------------------------------- --| EiffelVision2: library of reusable components for ISE Eiffel. --| Copyright (C) 1986-2001 Interactive Software Engineering Inc. --| All rights reserved. Duplication and distribution prohibited. --| May be used only with ISE Eiffel, under terms of user license. --| Contact ISE for any other use. --| --| Interactive Software Engineering Inc. --| ISE Building --| 360 Storke Road, Goleta, CA 93117 USA --| Telephone 805-685-1006, Fax 805-685-6869 --| Electronic mail --| Customer support: http://support.eiffel.com> --| For latest info see award-winning pages: http://www.eiffel.com --|----------------------------------------------------------------