home *** CD-ROM | disk | FTP | other *** search
- EstdTools becomeDefault!
-
- !EstdTools class publicMethods !
-
- preferencesText
-
- "Return the contents of the preferences workspace."
- | fileName file ans |
- fileName := 'abtpref.txt'.
-
- file := CfsReadFileStream open: fileName.
- file isCfsError ifFalse: [
- | line workStream |
- workStream := WriteStream on: (Locale current preferredStringClass new: 1028).
- [file atEnd] whileFalse: [
- line := file nextLine.
- "Strip any trailing CTRL-Z."
- (file atEnd and: [line notEmpty and: [line last value = 26]])
- ifTrue: [line := line copyFrom: 1 to: line size - 1].
- workStream nextPutAll: line; cr].
- file close.
- ans := workStream contents].
-
- ^EmImageSupport sourceFilter filterAndBreakLines: (ans size = 0
- ifTrue:[NlsCatESTD indexedMsg: 7] "$NLS$ the contents of the preferences workspace"
- ifFalse:[ ans ]).! !
-
- EstdTools class categoriesFor: #preferencesText are:((OrderedCollection new)
- add: 'ESTD-Internal';
- yourself)!
-