home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
vismalta.zip
/
FIXES
/
FIXP3053.ST
Wrap
Text File
|
1994-02-28
|
2KB
|
55 lines
"fixp3053.st 2.28.94"
| app saveUser oldDefault emUser appMgr cls clsVer appVer |
clsVer := 'V1.0.0-P3053'.
appVer := 'V1.0.0-P3053'.
cls := Application.
app := AbtEditPackagesApp.
emUser := Smalltalk classAt: #EmUser.
emUser notNil ifTrue:[
appMgr := app manager.
emUser current uniqueName = appMgr uniqueName ifFalse:[
saveUser := emUser current.
(emUser classPool declareVariable: 'CurrentUser') value: appMgr.].
app newEdition.
].
oldDefault := Application default.
app becomeDefault.
EmFileOutInterface fileInSourceFrom: (ReadStream on:
'!!Application class privateMethods !!
abePackageFileName
"Public - Answer our package filename"
"The default implementation tries to use the application name
if the file system will accept it. Otherwise it will use a timestamp.
By convention the file extension is always ''.cch'', which is an
abbreviation for ''cache''. "
| fname seconds |
(AbtFileSpec deviceRequiresDOSFATNames: '''')
ifFalse:[ ^self name, ''.cch'' ].
seconds := Time now asSeconds.
fname := ''pk'', seconds printString, ''.cch''.
[fname asFileSpec exists] whileTrue:[
seconds := seconds + 1.
fname := ''pk'', seconds printString, ''.cch''.
].
^fname
!! !!').
oldDefault becomeDefault.
emUser notNil ifTrue:[
EtTools managerInterface versionClass: cls
in: app withName: clsVer.
app releaseEachClassIn: (Array with: cls).
EtTools managerInterface versionApplication: app
withName: appVer.
saveUser notNil ifTrue:[
(emUser classPool declareVariable: 'CurrentUser') value: saveUser.].
].
!