873
|
1 |
Object subclass:#SourceCodeManagerUtilities
|
|
2 |
instanceVariableNames:''
|
|
3 |
classVariableNames:'LastSourceLogMessage'
|
|
4 |
poolDictionaries:''
|
|
5 |
category:'System-SourceCodeManagement'
|
|
6 |
!
|
|
7 |
|
|
8 |
!SourceCodeManagerUtilities class methodsFor:'documentation'!
|
|
9 |
|
|
10 |
documentation
|
|
11 |
"
|
|
12 |
utility code which is useful at more than one place
|
|
13 |
(extracted from the browser)
|
|
14 |
|
|
15 |
[author:]
|
|
16 |
Claus Gittinger (cg@exept)
|
|
17 |
|
|
18 |
[see also:]
|
|
19 |
|
|
20 |
[instance variables:]
|
|
21 |
|
|
22 |
[class variables:]
|
|
23 |
"
|
|
24 |
! !
|
|
25 |
|
|
26 |
!SourceCodeManagerUtilities class methodsFor:'utilities'!
|
|
27 |
|
|
28 |
getLogMessageFor:aString
|
|
29 |
"get a log message for checking in a class.
|
|
30 |
Return the message or nil if aborted."
|
|
31 |
|
875
|
32 |
|resources logMsg|
|
873
|
33 |
|
|
34 |
resources := ResourcePack for:self.
|
875
|
35 |
logMsg := Dialog
|
873
|
36 |
requestText:(resources string:'enter log message for: %1' with:aString)
|
|
37 |
lines:10
|
|
38 |
columns:70
|
875
|
39 |
initialAnswer:LastSourceLogMessage.
|
|
40 |
logMsg notNil ifTrue:[
|
|
41 |
LastSourceLogMessage := logMsg
|
|
42 |
].
|
|
43 |
^ logMsg
|
873
|
44 |
|
|
45 |
"
|
875
|
46 |
SourceCodeManagerUtilities getLogMessageFor:'hello'
|
873
|
47 |
"
|
|
48 |
|
|
49 |
|
|
50 |
! !
|
|
51 |
|
|
52 |
!SourceCodeManagerUtilities class methodsFor:'documentation'!
|
|
53 |
|
|
54 |
version
|
875
|
55 |
^ '$Header: /cvs/stx/stx/libbasic3/SourceCodeManagerUtilities.st,v 1.2 2000-01-10 14:45:21 cg Exp $'
|
873
|
56 |
! !
|