# # This file is encoded in (so called) SHIFT-JIS, # line delimitor is CR. # Source Code Saver Goodies for Squeak 1.31, Squeak 2.0 Broken English description This goodies is a modification for Squeak from Mr. AOKI's Source Code Saver Goodies for VisualWorks 2.5 and VisualWave 1.0 Copyright (c) 1995-1998 AOKI Atsushi 1998/01/05 http://www.sra.co.jp/people/aoki/SmalltalkGoodies/VisualWorks/SrcSaver.st Summary: The more making many classes, the harder are the problems of saving them or etc. And what is the order to read in your system. Also there is a case of the limitation of the length of filename (8+3, 31 chars etc), that doesn''t allow a class name to filename. This SourceCodeSaver goodies solves these problems at simple way. Installing: FileIn this goodies and makes a class "SourceCodeSaver" in a category "Goodies-Tools". This source adds no change to existing classes or methods. It completes within self. When you want to restore your image, please remove this class "SourceCodeSaver" from your system, simply. how to use: The instance of the class SourceCodeSaver decides the classes to be saved by gathering on a given pattern (category) and passing through a given filter. If you send a message "save", you can get these classes to be saved and a file to be used installing and a catalog file which decides the order to fileIn. For example, | aSourceCodeSaver | aSourceCodeSaver := SourceCodeSaver name: ''Name001'' categories: #(''Goodies*'') filter: [:aClass | aClass name = SourceCodeSaver name]. aSourceCodeSaver save. Above, it point the category pattern matching "Goodies*". Each of these classes is evaluated by aBlockContext filter, picking up each value is true. In this example, the one only class "SourceCodeSaver" will be selected. After above, he instance of the class SourceCodeSaver receives a message "save", saves the files to be saved below in the directory "Name001". Name001: Install.st Src00000.st Src00001.st The first "Install.st" is for installing. For fileIn, you fileIn this file only. The second "Src00000.st" is a catalog file for fileIn. The third "Src00001.st" is a source code of SourceCodeSaver. If there are more classes, produced Src?????.st incrementally. Src00000.st gives the information of class-to-Src?????.st, one-to-one. For fileIn, you fileIn this file only, again. FileIn this file only from fileList etc, all of the rest will be installed. FileIn follows the superclass order. ########################################################## 青木さんの http://www.sra.co.jp/people/aoki/SmalltalkGoodies/VisualWorks/SrcSaver.st を Squeak 用にいじったものです。 ドキュメントは http://www.sra.co.jp/people/aoki/SmalltalkGoodies/VisualWorks/SrcSaver.txt を参照してください。 ---------------------------------------------------------- 西原聡士 (NISHIHARA Satoshi) e-mail: mailto:nishis@zephyr.dti.ne.jp URL: http://www.zephyr.dti.ne.jp/~nishis/ ----------------------------------------------------------