home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
chapm20.zip
/
ChapReg.cha
< prev
next >
Wrap
Text File
|
1995-06-22
|
3KB
|
119 lines
CHAPMAN
Version: 2.0
Name: 'Registration ChapMan'
Time: '22.06.95 21.19.26'
OrganizationOnly: false
SubapplicationNames...: Registration .
SubapplicationFilenames...: Registr? .
ExtraSymbols...: .
FileName: ChapReg
Comments:
'This application contains the registration system for ChapMan.
It will be packaged into an SLL for distribution.'
'Init Code:' ''
'Finalize Code:' ''
'Class Template:' <default>
'Method Template:' <default>
'Method Comment Template:' <default>
Copyright: <default>
LibraryBuilderScripts...: 'ChapMan Registration System' .
'LibraryBuilderScript ChapMan Registration System:'
'| sll app apps unresolved libName libDir |
"Set some variables and open an object library with feedback window."
app := ChApplication atName: ''Registration ChapMan''.
libName := ''ChapR?20''.
libName := libName collect: [:c | c = $?
ifTrue: [SmalltalkLibrary platformLetter]
ifFalse: [c]].
libDir := Directory pathName: ''d:\st\chapman''.
File
remove: libDir fullDirName, libName, ''.sll'' ifAbsent: [];
remove: libDir fullDirName, libName, ''.sml'' ifAbsent: [].
sll := SmalltalkLibraryBuilder new: libName.
sll directory: libDir.
sll description: ''ChapMan Registration System''.
sll windowFeedback.
(apps := OrderedCollection with: app) addAll: app allSubApplications.
"Set various options."
sll includeSource: false.
sll sourceSeparate.
"Add classes, methods and remap class variables."
apps do: [:eachApp |
eachApp ownedClasses do: [:eachClass |
sll addClass: eachClass.
true ifTrue: [
eachClass classPool associationsDo: [:assoc |
sll remap: assoc to: (Association key: assoc key value: nil)]
]
]
].
apps do: [:eachApp |
eachApp requiredClasses do: [:eachClass |
(eachApp methodsForClass: eachClass) do: [:method |
sll addMethod: (eachClass compiledMethodAt: method)].
(eachApp methodsForClass: eachClass class) do: [:method |
sll addMethod: (eachClass class compiledMethodAt: method)].
]
].
"Add other objects."
"E.g.: sll addGlobalNamed: #TestGlobal."
"Define Imports."
"E.g.: sll addImport: ClassReader fromLibray: nil."
"Set bind action."
"E.g.: sll bindAction: [ChApplication initialize]."
"Set unbind action."
"E.g.: sll unbindAction: [ChApplication deinitialize]."
"Do remappings."
"E.g.: sll remap: Test1 to: Test2."
"Write the library file."
sll writeFile.
"Optionally inspect the library."
false ifTrue: [
DictionaryInspector new
openOn: sll interestingImports;
label: ''Library Imports''.
[
DictionaryInspector new
openOn: (SmalltalkLibraryBinder contentsOf: libDir fullDirName, libName);
label: ''Library Contents''
] on: FileError do: [
MessageBox message: ''Couldn''''t open the library file to retrieve information. '',
''If you want to see it, make sure that the target directory is on the PATH and try again.''
]
]
'
OwnedClasses...: ChChapManAboutDialog .
RequiredClasses...: .
'ChChapManAboutDialog ClassComments:'
'03.05.95 ch Creation. Copyright (c) 1995.
@
Variable description: '
'ChChapManAboutDialog ExtraSymbols...:' ChLibraryBuilder
ChSourceBrowser ChIPFBrowser .