author | Stefan Vogel <sv@exept.de> |
Fri, 19 Jan 2018 12:26:40 +0100 | |
changeset 17949 | f4ada786326b |
parent 17922 | e187b08e080c |
permissions | -rw-r--r-- |
17921 | 1 |
"{ Encoding: utf8 }" |
2 |
||
13846 | 3 |
" |
4 |
COPYRIGHT (c) 2006 by eXept Software AG |
|
5 |
All Rights Reserved |
|
6 |
||
7 |
This software is furnished under a license and may be used |
|
8 |
only in accordance with the terms of that license and with the |
|
9 |
inclusion of the above copyright notice. This software may not |
|
10 |
be provided or otherwise made available to, or used by, any |
|
11 |
other person. No title to or ownership of the software is |
|
12 |
hereby transferred. |
|
13 |
" |
|
2740
6b8666356abb
oops - dont try to redraw components which are not there
Claus Gittinger <cg@exept.de>
parents:
2250
diff
changeset
|
14 |
"{ Package: 'stx:libtool' }" |
6b8666356abb
oops - dont try to redraw components which are not there
Claus Gittinger <cg@exept.de>
parents:
2250
diff
changeset
|
15 |
|
16087 | 16 |
"{ NameSpace: Smalltalk }" |
17 |
||
1545 | 18 |
ToolApplicationModel subclass:#NewChangesBrowser |
1546 | 19 |
instanceVariableNames:'changes changeFileName skipSignal changeFileTimestamp |
20 |
autoUpdateBlock filterCompletionBlock editingClassSource modified' |
|
1545 | 21 |
classVariableNames:'AutoUpdate CompressSnapshotInfo CategoryColumn DeltaInfoColumn |
7957 | 22 |
TypeColumn TimeStampColumn PositionsColumn PrivateAsSeparate |
23 |
ClassNameColumn ClassAndSelectorColumn SelectorColumn' |
|
1545 | 24 |
poolDictionaries:'' |
25 |
category:'Interface-Browsers' |
|
26 |
! |
|
27 |
||
28 |
Object subclass:#Change |
|
1568 | 29 |
instanceVariableNames:'delta string type timeStamp category chunk lastPosition position |
7957 | 30 |
className selector followUp' |
1545 | 31 |
classVariableNames:'' |
32 |
poolDictionaries:'' |
|
33 |
privateIn:NewChangesBrowser |
|
34 |
! |
|
35 |
||
36 |
!NewChangesBrowser class methodsFor:'documentation'! |
|
37 |
||
13846 | 38 |
copyright |
39 |
" |
|
40 |
COPYRIGHT (c) 2006 by eXept Software AG |
|
41 |
All Rights Reserved |
|
42 |
||
43 |
This software is furnished under a license and may be used |
|
44 |
only in accordance with the terms of that license and with the |
|
45 |
inclusion of the above copyright notice. This software may not |
|
46 |
be provided or otherwise made available to, or used by, any |
|
47 |
other person. No title to or ownership of the software is |
|
48 |
hereby transferred. |
|
49 |
" |
|
50 |
! |
|
51 |
||
1545 | 52 |
documentation |
53 |
" |
|
54 |
The future Changes Browser. |
|
55 |
||
56 |
[start with:] |
|
7957 | 57 |
NewChangesBrowser open |
58 |
NewChangesBrowser openOnFile:aFileName |
|
1545 | 59 |
|
60 |
[author:] |
|
7957 | 61 |
Thomas Zwick, eXept Software AG |
62 |
enhanced by Felix Madrid, eXept Software AG |
|
1545 | 63 |
" |
64 |
! ! |
|
65 |
||
66 |
!NewChangesBrowser class methodsFor:'instance creation'! |
|
67 |
||
1938 | 68 |
openOn:aFileName |
69 |
"opens a Changes Browser with the changes of the aFileName" |
|
70 |
||
71 |
^self openOnFile:aFileName |
|
72 |
||
73 |
"Created: / 17.10.1998 / 14:41:28 / cg" |
|
74 |
! |
|
75 |
||
1545 | 76 |
openOnFile:aFileName |
1546 | 77 |
"opens a Changes Browser with the changes of the aFileName" |
78 |
||
6288 | 79 |
^self new |
2250 | 80 |
changeFileName:aFileName; |
81 |
open |
|
1545 | 82 |
|
83 |
! ! |
|
84 |
||
85 |
!NewChangesBrowser class methodsFor:'accessing'! |
|
86 |
||
87 |
autoSelectNext |
|
1546 | 88 |
"returns true here, makes a Delete operation automatically |
1545 | 89 |
select the next change" |
90 |
||
91 |
^ true |
|
92 |
||
93 |
||
94 |
! |
|
95 |
||
96 |
label |
|
1546 | 97 |
"returns my label" |
1545 | 98 |
|
99 |
^'Changes Browser' |
|
100 |
! ! |
|
101 |
||
102 |
!NewChangesBrowser class methodsFor:'help specs'! |
|
103 |
||
17922 | 104 |
helpSpec |
1545 | 105 |
"This resource specification was automatically generated |
106 |
by the UIHelpTool of ST/X." |
|
107 |
||
108 |
"Do not manually edit this!! If it is corrupted, |
|
109 |
the UIHelpTool may not be able to read the specification." |
|
110 |
||
111 |
" |
|
6288 | 112 |
UIHelpTool openOnClass:NewChangesBrowser |
1545 | 113 |
" |
114 |
||
115 |
<resource: #help> |
|
116 |
||
17922 | 117 |
^super helpSpec addPairsFrom:#( |
1545 | 118 |
|
17921 | 119 |
#settingsColumnsClassName |
120 |
'Toggle display of the className in the list.' |
|
121 |
||
1545 | 122 |
#applyAll |
1650 | 123 |
'Apply all changes.' |
1545 | 124 |
|
125 |
#applyForClassToEnd |
|
7957 | 126 |
'Apply changes which affect this class to the end.' |
1545 | 127 |
|
128 |
#applyFromLastSnapshot |
|
1650 | 129 |
'Apply changes from the last snapshot to the end.' |
1545 | 130 |
|
131 |
#applyLine |
|
132 |
'Apply the selected change.' |
|
133 |
||
134 |
#applyToEnd |
|
1650 | 135 |
'Apply all changes from the selected one to the end.' |
1545 | 136 |
|
1546 | 137 |
#deleteAll |
1650 | 138 |
'Deletes all changes.' |
1546 | 139 |
|
1545 | 140 |
#deleteCompress |
1650 | 141 |
'Deletes all obsolete changes.' |
1545 | 142 |
|
143 |
#deleteCompressForClass |
|
1650 | 144 |
'Deletes obsolete changes for this class, leaving the last one.' |
1545 | 145 |
|
146 |
#deleteForClassToEnd |
|
1650 | 147 |
'Deletes changes for this class from the selection to the end.' |
1545 | 148 |
|
149 |
#deleteLine |
|
1650 | 150 |
'Deletes the selected change.' |
1545 | 151 |
|
152 |
#deleteToEnd |
|
1650 | 153 |
'Deletes changes from the selected one to the end.' |
1545 | 154 |
|
1556 | 155 |
#fileLoad |
1650 | 156 |
'Opens a dialog for selecting and loading another changes file.' |
1545 | 157 |
|
158 |
#fileReload |
|
159 |
'Reloads the changes file (undo your modifications).' |
|
160 |
||
161 |
#fileSave |
|
1650 | 162 |
'Saves the list of changes into the current changes file.' |
1545 | 163 |
|
1556 | 164 |
#filterField |
1650 | 165 |
'Matching patterns filtering the changes (separate patterns by blanks).' |
1556 | 166 |
|
1545 | 167 |
#settingsAutoUpdate |
1650 | 168 |
'Toggle automatic update.' |
1545 | 169 |
|
170 |
#settingsColumns |
|
1650 | 171 |
'Configure which columns are shown in the list.' |
1545 | 172 |
|
173 |
#settingsColumnsCategory |
|
1650 | 174 |
'Toggle display of the changes category in the list.' |
1545 | 175 |
|
176 |
#settingsColumnsDeltaInfo |
|
1650 | 177 |
'Toggle display of the delta-info in the list.' |
1545 | 178 |
|
179 |
#settingsColumnsPosition |
|
1650 | 180 |
'Togle display of the changes file-position in the list.' |
1545 | 181 |
|
182 |
#settingsColumnsTimeStamp |
|
1650 | 183 |
'Toggle display of the changes time stamp in the list.' |
1545 | 184 |
|
185 |
#settingsColumnsType |
|
1650 | 186 |
'Toggle display of the change-type in the list.' |
1545 | 187 |
|
1546 | 188 |
#settingsPrivateAsSeparate |
1650 | 189 |
'Toggle if changes for private private are included when applying, deleting, or compressing for a class.' |
1546 | 190 |
|
1545 | 191 |
#testCompareWithCurrentVersion |
1650 | 192 |
'Opens a info dialog showing the difference between the changes code and the method current code.' |
1545 | 193 |
|
194 |
#testFindLastSnapshot |
|
7957 | 195 |
'Searches backward for the previous snapshot entry.' |
1545 | 196 |
|
197 |
#testFindNextSnapshot |
|
1650 | 198 |
'Searches forward for the next snapshot entry.' |
1545 | 199 |
|
200 |
) |
|
1650 | 201 |
|
202 |
"Modified: / 19.5.1998 / 17:59:39 / cg" |
|
1545 | 203 |
! ! |
204 |
||
205 |
!NewChangesBrowser class methodsFor:'image specs'! |
|
206 |
||
207 |
applyFromLastSnapshotIcon |
|
7957 | 208 |
^ self applyFromLastSnapshotIcon2 |
209 |
! |
|
210 |
||
211 |
applyFromLastSnapshotIcon1 |
|
1545 | 212 |
"This resource specification was automatically generated |
213 |
by the ImageEditor of ST/X." |
|
214 |
||
215 |
"Do not manually edit this!! If it is corrupted, |
|
216 |
the ImageEditor may not be able to read the specification." |
|
217 |
||
218 |
" |
|
7957 | 219 |
self applyFromLastSnapshotIcon inspect |
1545 | 220 |
ImageEditor openOnClass:self andSelector:#applyFromLastSnapshotIcon |
7957 | 221 |
Icon flushCachedIcons |
1545 | 222 |
" |
223 |
||
224 |
<resource: #image> |
|
225 |
||
226 |
^Icon |
|
7957 | 227 |
constantNamed:#'NewChangesBrowser class applyFromLastSnapshotIcon' |
228 |
ifAbsentPut:[(Depth4Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(4)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
229 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@BH"H"H@@@@@@@@@H"H"H @@@@@@@@@@@@@B@@@@@@ |
|
230 |
@@;.;.; H@@@@@@@C.;.;.@@@@@@@@@@@@@@8@@N@@@@C?????C @@@N@@@O????<@@@8@@@@@@@@@C0@@@@8@@O????<O@@C @@@@?????0@@@@C @@@@@@ |
|
231 |
@O@@@N@@@@DQDQDP<@C @@@@@_??DQ@@@@@@@@@A????D@@@@@@@@@DQDQDP@@@@C @@@@@@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 255 255 255 0 0 0 255 0 0 0 255 0 255 255 255 255 0 255 0 255 127 0 0 0 127 0 0 0 127 0 127 127 127 127 0 127 0 127 127 127 127 170 170 170]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@C?0@B@P@B@P@O?P@O?P@O?0@??@@??@@??LC?<\C?<\C?<8O?08O?10O?10??C ??[@??_@?<^@?<_@?<_@') ; yourself); yourself] |
|
3220 | 232 |
! |
1545 | 233 |
|
7957 | 234 |
applyFromLastSnapshotIcon2 |
1545 | 235 |
"This resource specification was automatically generated |
236 |
by the ImageEditor of ST/X." |
|
237 |
||
238 |
"Do not manually edit this!! If it is corrupted, |
|
239 |
the ImageEditor may not be able to read the specification." |
|
240 |
||
241 |
" |
|
7957 | 242 |
self applyFromLastSnapshotIcon1 inspect |
243 |
ImageEditor openOnClass:self andSelector:#applyFromLastSnapshotIcon1 |
|
244 |
Icon flushCachedIcons |
|
245 |
" |
|
246 |
||
247 |
<resource: #image> |
|
248 |
||
249 |
^Icon |
|
250 |
constantNamed:#'NewChangesBrowser class applyFromLastSnapshotIcon1' |
|
251 |
ifAbsentPut:[(Depth4Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(4)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
252 |
@@@BH@@@@@@QDQ<@@BH @@@@@AH"H@@@H"@@@@@@D"H H H"@@@@@@@RH"@"H"@@@@@@@AH"H@H"H@@@@@@@<@@@@BH@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
|
253 |
@@;.;.; @@@@@@@@C.;.;.@@@@@@@@@@@@@@8@@N@@@@C?????C @@@N@@@O????<@@@8@@@@@@@@@C0@@@@8@@O????<O@@C @@@@?????0@@@@C @@@@@@ |
|
254 |
@O@@@N@@@@DQDQDP<@C @@@@@_??DQ@@@@@@@@@A????D@@@@@@@@@DQDQDP@@@@C @@@@@@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 255 255 255 0 0 0 255 0 0 0 255 0 255 255 255 255 0 255 0 255 127 0 0 0 127 0 0 0 127 0 127 127 127 127 0 127 0 127 127 127 127 170 170 170]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'A@C<C@C<C@C<&@C<<@C<\@C<H@@@@?<@@?<@@?<LC?<\C?<\C?<8O?08O?10O?10??C ??[@??_@?<^@?<_@?<_@') ; yourself); yourself] |
|
255 |
! |
|
256 |
||
257 |
applyIcon |
|
258 |
^ self applyIcon2 |
|
259 |
! |
|
260 |
||
261 |
applyIcon1 |
|
262 |
"This resource specification was automatically generated |
|
263 |
by the ImageEditor of ST/X." |
|
264 |
||
265 |
"Do not manually edit this!! If it is corrupted, |
|
266 |
the ImageEditor may not be able to read the specification." |
|
267 |
||
268 |
" |
|
269 |
self applyIcon inspect |
|
1545 | 270 |
ImageEditor openOnClass:self andSelector:#applyIcon |
7957 | 271 |
Icon flushCachedIcons |
1545 | 272 |
" |
273 |
||
274 |
<resource: #image> |
|
275 |
||
276 |
^Icon |
|
7957 | 277 |
constantNamed:#'NewChangesBrowser class applyIcon' |
278 |
ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
279 |
UUUUUUUPUUUUUU?PUUUUUU?[UUUUUW=PP@@@@C<QQUUU=_4PQUUU?_4VQ**U_?TPQUUUW?TPQUUUW=TXQ***U=TPQ**UUUTPQ*****TPQ***%UTPQ****)TP |
|
280 |
QUUUUUTPQUUUUUTUP@@@@@@PUUUUUUUPUUUUUUUPUUUUUUUPUUUUUUUP') ; colorMapFromArray:#[0 0 0 255 255 255 170 170 170 255 0 0]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
281 |
@@@@@@@8@@@8@@A0_??8_??8_??8_??8_??8_??8_??8_??8_??8_??8_??8_??8_??8_??8@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
|
282 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
|
283 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
|
284 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
|
285 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
|
286 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; yourself); yourself] |
|
287 |
! |
|
288 |
||
289 |
applyIcon2 |
|
290 |
"This resource specification was automatically generated |
|
291 |
by the ImageEditor of ST/X." |
|
292 |
||
293 |
"Do not manually edit this!! If it is corrupted, |
|
294 |
the ImageEditor may not be able to read the specification." |
|
295 |
||
296 |
" |
|
297 |
self applyIcon2 inspect |
|
298 |
ImageEditor openOnClass:self andSelector:#applyIcon2 |
|
299 |
Icon flushCachedIcons |
|
300 |
" |
|
301 |
||
302 |
<resource: #image> |
|
303 |
||
304 |
^Icon |
|
305 |
constantNamed:#'NewChangesBrowser class applyIcon2' |
|
306 |
ifAbsentPut:[(Depth4Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#[4]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
307 |
DQDQDQDQDQDQP3PQDQDQDQDQDQECMADQDQDQDQDQECMADQDQDQEDPQDTL4DP@@@@@DL4@DL4@Q@QDQDQP3MAP3PADADQDQDTL3P3PPDPD"H"HQECL3MA@Q@Q |
|
308 |
DQDQDQP3MADADADQDQDQDTL4DPDPD"H"H"HQEDDQ@Q@RH"H!!DQDQDQDADAH"H"H"H"H"DPDPD"H"H"H!!DQDQ@Q@RH"H"H"H"HQDADADQDQDQDQDQDPDPDQDQ |
|
309 |
DQDQDQDQ@Q@@@@@@@@@@@@@ADQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDb') ; colorMapFromArray:#[0 0 0 255 255 255 170 170 170 255 0 0 85 85 85]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
310 |
@@@<@@@<@@A8@C!!8_??8_??8_??8_??8_??8_??8_??8_??8_??8_??8_??8_??8_??8_??8@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
|
311 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
|
312 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
|
313 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
|
314 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
|
315 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; yourself); yourself] |
|
3220 | 316 |
! |
1545 | 317 |
|
318 |
applyToEndIcon |
|
319 |
"This resource specification was automatically generated |
|
320 |
by the ImageEditor of ST/X." |
|
321 |
||
322 |
"Do not manually edit this!! If it is corrupted, |
|
323 |
the ImageEditor may not be able to read the specification." |
|
324 |
||
325 |
" |
|
7957 | 326 |
self applyToEndIcon inspect |
1545 | 327 |
ImageEditor openOnClass:self andSelector:#applyToEndIcon |
7957 | 328 |
Icon flushCachedIcons |
1545 | 329 |
" |
330 |
||
331 |
<resource: #image> |
|
332 |
||
333 |
^Icon |
|
7957 | 334 |
constantNamed:#'NewChangesBrowser class applyToEndIcon' |
335 |
ifAbsentPut:[(Depth4Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#[4]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
336 |
@@@DP@@@@@@@@@@@@DQ@@@@@@@@@@@@@QD@@@"H"H"@@Q@QD@@@BH"H"H@ADQD@@@@@@@@@ @@QDP@@BH"H"HB@@@DP@@@H"H"H @@@@@@@@@@@@@B@@@@@@ |
|
337 |
@@L3L3L0H@@@@@@@@3L3L3@@@@@@@@@@@@@@L@@B@@@@@3L3L3@0@@@B@@@CL3L3L@@@H@@@@@@@@@@0@@@@H@@ADQDQDC@@@ @@@@DQDQDP@@@@@ @@@@@@ |
|
338 |
@A@@@B@@@@DQDQDPD@@ @@@@@SL3DQ@@@@@@@@@AL3L3D@@@@@@@@@DQDQDP@@@@@ @@@@@@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 255 255 127 127 127 170 170 170 255 0 0]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'A@@@CC?0CC?0&C?0<O?0\O?0HO?0@??@@??@@??LC?<\C?<\C?<8O?08O?10O?10??C ??[@??_@?<^@?<_@?<_@') ; yourself); yourself] |
|
3220 | 339 |
! |
1545 | 340 |
|
341 |
compressIcon |
|
342 |
"This resource specification was automatically generated |
|
343 |
by the ImageEditor of ST/X." |
|
344 |
||
345 |
"Do not manually edit this!! If it is corrupted, |
|
346 |
the ImageEditor may not be able to read the specification." |
|
347 |
||
348 |
" |
|
349 |
ImageEditor openOnClass:self andSelector:#compressIcon |
|
350 |
" |
|
351 |
||
352 |
<resource: #image> |
|
353 |
||
354 |
^Icon |
|
2250 | 355 |
constantNamed:#'NewChangesBrowser compressIcon' |
3220 | 356 |
ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@????<@@@:***(@@@8@@@8@@@8@@@8@@@@@@@8@@@@@@@8A@@@@@@8@@:**0@8HC**+@@8@@@@@@@8H@@@@@@8@@@@@@@8@@@@@@@8@@@@@@@8@@C????8@@C****(@@@@@@@@H@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@') ; colorMapFromArray:#[0 0 0 124 124 124 170 170 170 255 255 255]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@??0A??8A??8A??8A8A8G>A8@@A8G?98O?18_?!!8??A8@@A8G>A8@0A8C??8C??8C??8C??0@0@@D2@@G>@@D2@@') ; yourself); yourself] |
357 |
! |
|
1545 | 358 |
|
359 |
deleteIcon |
|
360 |
"This resource specification was automatically generated |
|
361 |
by the ImageEditor of ST/X." |
|
362 |
||
363 |
"Do not manually edit this!! If it is corrupted, |
|
364 |
the ImageEditor may not be able to read the specification." |
|
365 |
||
366 |
" |
|
367 |
ImageEditor openOnClass:self andSelector:#deleteIcon |
|
368 |
" |
|
369 |
||
370 |
<resource: #image> |
|
371 |
||
372 |
^Icon |
|
2250 | 373 |
constantNamed:#'NewChangesBrowser deleteIcon' |
3220 | 374 |
ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@AUUUU@@OA??UU@@@AUUUU@@@AUUUU@B@A???U@H@A??5U@@@A???0@@@AUUUB@B@@@@@@@@@@@@@A@BK@@@@A_:@@@@@AO2G@@@@AL2@@@@@AL2C@@@@AL2@@@@@AL2@@@@@AL2H@@@@AL2@@@@@A\:@@@@@H_8 @@@@@@@H') ; colorMapFromArray:#[0 0 0 255 255 255 127 127 127 170 170 170]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'_?<@_?<@_?<P_?<P_?<X_?<X_?<H_? H_?O<_?XL@@_<@@_<@@_<@@_<@@_<@@_<@@_<@@_<@@_<@@_<@@_<@@G0') ; yourself); yourself] |
375 |
! |
|
1545 | 376 |
|
377 |
deleteToEndIcon |
|
378 |
"This resource specification was automatically generated |
|
379 |
by the ImageEditor of ST/X." |
|
380 |
||
381 |
"Do not manually edit this!! If it is corrupted, |
|
382 |
the ImageEditor may not be able to read the specification." |
|
383 |
||
384 |
" |
|
385 |
ImageEditor openOnClass:self andSelector:#deleteToEndIcon |
|
386 |
" |
|
387 |
||
388 |
<resource: #image> |
|
389 |
||
390 |
^Icon |
|
2250 | 391 |
constantNamed:#'NewChangesBrowser deleteToEndIcon' |
3220 | 392 |
ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@B** @@O@B** @@@@@@@ @@@@??< @B@@??<@@H@@@@L@@@@EUUL@@@@G?U@B@B@G?=@@@@@EUU@A@BK@@@@A_:@@@@@AO2G@@@@AL2@@@@@AL2C@@@@AL2@@@@@AL2@@@@@AL2H@@@@AL2@@@@@A\:@@@@@H_8 @@@@@@@H') ; colorMapFromArray:#[0 0 0 255 255 255 127 127 127 170 170 170]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'C?0@C?0@C?0PO?0PO?0XO?0X??@H??@H??O<?<XL?<_<?<_<@@_<@@_<@@_<@@_<@@_<@@_<@@_<@@_<@@_<@@G0') ; yourself); yourself] |
393 |
! |
|
1545 | 394 |
|
395 |
findLastSnapshotIcon |
|
396 |
"This resource specification was automatically generated |
|
397 |
by the ImageEditor of ST/X." |
|
398 |
||
399 |
"Do not manually edit this!! If it is corrupted, |
|
400 |
the ImageEditor may not be able to read the specification." |
|
401 |
||
402 |
" |
|
403 |
ImageEditor openOnClass:self andSelector:#findLastSnapshotIcon |
|
404 |
" |
|
405 |
||
406 |
<resource: #image> |
|
407 |
||
408 |
^Icon |
|
2250 | 409 |
constantNamed:#'NewChangesBrowser findLastSnapshotIcon' |
3220 | 410 |
ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@EUUUW@A@F***(@@@F***(@@@F***(@@@F***(@@@F***(@@@F***(@@@F***(@A@F***(@M@F***(@H@F***(@@@F***(@@@F***(@I@L@@@@@@@@@@@@@A@P@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@') ; colorMapFromArray:#[0 0 0 255 255 255 255 0 0 170 170 170]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'C??@C??@C??@C??@C??@C??@C??@C??@C??@C??@C??@C??@C??@C??B@@@B@C@B@G B@O0@@_8@@G @@G @@G @') ; yourself); yourself] |
411 |
! |
|
1545 | 412 |
|
413 |
findNextSnapshotIcon |
|
414 |
"This resource specification was automatically generated |
|
415 |
by the ImageEditor of ST/X." |
|
416 |
||
417 |
"Do not manually edit this!! If it is corrupted, |
|
418 |
the ImageEditor may not be able to read the specification." |
|
419 |
||
420 |
" |
|
421 |
ImageEditor openOnClass:self andSelector:#findNextSnapshotIcon |
|
422 |
" |
|
423 |
||
424 |
<resource: #image> |
|
425 |
||
426 |
^Icon |
|
2250 | 427 |
constantNamed:#'NewChangesBrowser findNextSnapshotIcon' |
3220 | 428 |
ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@DA@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@D@B@@@@@@@@@@@@@@@E@@@@@@@@@EUUUW@N@F***(@@@F***(@@@F***(@@@F***(@@@F***(@@@F***(@@@V***(@H@F***(@@@F***(@@@F***(@@@F***(@@@F***(@@@L@@@@@@') ; colorMapFromArray:#[0 0 0 255 255 255 255 0 0 170 170 170]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@G @@G @@G @@_8@@O0@@G @@C@@@@@@C??@C??@C??@C??@C??@C??BC??BC??BC??BC??@C??@C??@C??@C??@') ; yourself); yourself] |
7957 | 429 |
! |
430 |
||
431 |
findPreviousForClassIcon |
|
432 |
"This resource specification was automatically generated |
|
433 |
by the ImageEditor of ST/X." |
|
434 |
||
435 |
"Do not manually edit this!! If it is corrupted, |
|
436 |
the ImageEditor may not be able to read the specification." |
|
437 |
||
438 |
" |
|
439 |
self findPreviousForClassIcon inspect |
|
440 |
ImageEditor openOnClass:self andSelector:#findPreviousForClassIcon |
|
441 |
Icon flushCachedIcons |
|
442 |
" |
|
443 |
||
444 |
<resource: #image> |
|
445 |
||
446 |
^Icon |
|
447 |
constantNamed:#'NewChangesBrowser class findPreviousForClassIcon' |
|
448 |
ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
449 |
@EUUUW@A@G???<@@@G???<@@@G???<@@@G???<@@@G???<@@@G???<@@@G???<@A@G???<@M@G???<@H@G???<@@@G???<@@@G???<@I@L@@@@@@@@@@@@@A |
|
450 |
@P@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@') ; colorMapFromArray:#[0 0 0 255 255 255 255 0 0 170 170 170]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'C??@C??@C??@C??@C??@C??@C??@C??@C??@C??@C??@C??@C??@C??B@@@B@C@B@G B@O0@@_8@@G @@G @@G @') ; yourself); yourself] |
|
451 |
! |
|
452 |
||
453 |
findPreviousSnapshotIcon |
|
454 |
"This resource specification was automatically generated |
|
455 |
by the ImageEditor of ST/X." |
|
456 |
||
457 |
"Do not manually edit this!! If it is corrupted, |
|
458 |
the ImageEditor may not be able to read the specification." |
|
459 |
||
460 |
" |
|
461 |
self findPreviousSnapshotIcon inspect |
|
462 |
ImageEditor openOnClass:self andSelector:#findPreviousSnapshotIcon |
|
463 |
Icon flushCachedIcons |
|
464 |
" |
|
465 |
||
466 |
<resource: #image> |
|
467 |
||
468 |
^Icon |
|
469 |
constantNamed:#'NewChangesBrowser class findPreviousSnapshotIcon' |
|
470 |
ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
471 |
@EUUUW@A@F***(@@@F***(@@@F***(@@@F***(@@@F***(@@@F***(@@@F***(@A@F***(@M@F***(@H@F***(@@@F***(@@@F***(@I@L@@@@@@@@@@@@@A |
|
472 |
@P@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@') ; colorMapFromArray:#[0 0 0 255 255 255 255 0 0 170 170 170]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'C??@C??@C??@C??@C??@C??@C??@C??@C??@C??@C??@C??@C??@C??B@@@B@C@B@G B@O0@@_8@@G @@G @@G @') ; yourself); yourself] |
|
3220 | 473 |
! ! |
1545 | 474 |
|
475 |
!NewChangesBrowser class methodsFor:'interface specs'! |
|
476 |
||
477 |
windowSpec |
|
478 |
"This resource specification was automatically generated |
|
479 |
by the UIPainter of ST/X." |
|
480 |
||
481 |
"Do not manually edit this!! If it is corrupted, |
|
482 |
the UIPainter may not be able to read the specification." |
|
483 |
||
484 |
" |
|
485 |
UIPainter new openOnClass:NewChangesBrowser andSelector:#windowSpec |
|
486 |
NewChangesBrowser new openInterface:#windowSpec |
|
487 |
NewChangesBrowser open |
|
488 |
" |
|
489 |
||
490 |
<resource: #canvas> |
|
491 |
||
492 |
^ |
|
6288 | 493 |
|
1545 | 494 |
#(#FullSpec |
6288 | 495 |
#window: |
2250 | 496 |
#(#WindowSpec |
497 |
#name: 'Changes Browser' |
|
498 |
#layout: #(#LayoutFrame 53 0 92 0 687 0 583 0) |
|
499 |
#label: 'Changes Browser' |
|
500 |
#min: #(#Point 10 10) |
|
501 |
#max: #(#Point 1152 900) |
|
502 |
#bounds: #(#Rectangle 53 92 688 584) |
|
503 |
#menu: #menu |
|
504 |
#usePreferredExtent: false |
|
505 |
) |
|
6288 | 506 |
#component: |
2250 | 507 |
#(#SpecCollection |
6288 | 508 |
#collection: |
2250 | 509 |
#( |
510 |
#(#MenuPanelSpec |
|
511 |
#name: 'menuToolbarView' |
|
512 |
#layout: #(#LayoutFrame 0 0.0 0 0 0 1.0 32 0) |
|
513 |
#menu: #menuToolbar |
|
514 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
|
515 |
#showSeparatingLines: true |
|
516 |
) |
|
517 |
#(#VariableVerticalPanelSpec |
|
518 |
#name: 'variableVerticalPanel1' |
|
519 |
#layout: #(#LayoutFrame 0 0.0 34 0 0 1.0 -26 1.0) |
|
6288 | 520 |
#component: |
2250 | 521 |
#(#SpecCollection |
6288 | 522 |
#collection: |
2250 | 523 |
#( |
524 |
#(#ViewSpec |
|
525 |
#name: 'Box1' |
|
6288 | 526 |
#component: |
2250 | 527 |
#(#SpecCollection |
6288 | 528 |
#collection: |
2250 | 529 |
#( |
530 |
#(#DataSetSpec |
|
531 |
#name: 'changesDataSetView' |
|
532 |
#layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 -28 1.0) |
|
533 |
#model: #selectionOfChange |
|
534 |
#menu: #menuTable |
|
535 |
#hasHorizontalScrollBar: true |
|
536 |
#hasVerticalScrollBar: true |
|
537 |
#miniScrollerHorizontal: true |
|
538 |
#dataList: #listOfChanges |
|
539 |
#useIndex: false |
|
540 |
#has3Dsepartors: true |
|
541 |
#doubleClickSelector: #doBrowseClass |
|
542 |
#columnHolder: #listOfChangeColumns |
|
543 |
#valueChangeSelector: #changeSelected: |
|
544 |
) |
|
545 |
#(#ViewSpec |
|
546 |
#name: 'Box2' |
|
547 |
#layout: #(#LayoutFrame 0 0.0 -28 1 0 1.0 0 1.0) |
|
6288 | 548 |
#component: |
2250 | 549 |
#(#SpecCollection |
6288 | 550 |
#collection: |
2250 | 551 |
#( |
552 |
#(#LabelSpec |
|
553 |
#name: 'filterLabel' |
|
554 |
#layout: #(#AlignmentOrigin 37 0 13 0.0 1 0.5) |
|
555 |
#label: 'Filter:' |
|
556 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
|
557 |
#adjust: #left |
|
558 |
) |
|
559 |
#(#InputFieldSpec |
|
560 |
#name: 'filterField' |
|
561 |
#layout: #(#LayoutFrame 41 0.0 3 0 250 0 25 0) |
|
562 |
#activeHelpKey: #filterField |
|
563 |
#model: #valueOfFilter |
|
564 |
#immediateAccept: false |
|
565 |
) |
|
566 |
#(#ProgressIndicatorSpec |
|
567 |
#name: 'readProgressIndicator' |
|
568 |
#layout: #(#LayoutFrame 41 0 3 0 250 0 25 0) |
|
569 |
#model: #valueOfReadProgress |
|
570 |
#foregroundColor: #(#Color 0.0 60.0 60.0) |
|
571 |
) |
|
572 |
#(#ActionButtonSpec |
|
573 |
#name: 'allButton' |
|
574 |
#layout: #(#LayoutFrame 258 0.0 2 0.0 268 0 13 0) |
|
575 |
#label: ' ' |
|
576 |
#model: #doFilter: |
|
577 |
) |
|
578 |
#(#LabelSpec |
|
579 |
#name: 'allLabel' |
|
580 |
#layout: #(#LayoutFrame 273 0 0 0.0 310 0 14 0) |
|
581 |
#label: '= all' |
|
582 |
#translateLabel: true |
|
583 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
|
584 |
#adjust: #left |
|
585 |
) |
|
586 |
#(#ActionButtonSpec |
|
587 |
#name: 'methodChangesButton' |
|
588 |
#layout: #(#LayoutFrame 359 0.0 2 0.0 369 0 13 0) |
|
589 |
#label: ' ' |
|
590 |
#backgroundColor: #(#Color 100.0 100.0 100.0) |
|
591 |
#model: #doFilterType: |
|
592 |
#actionValue: 'method' |
|
593 |
) |
|
594 |
#(#LabelSpec |
|
595 |
#name: 'methodChangesLabel' |
|
596 |
#layout: #(#LayoutFrame 373 0 0 0.0 458 0 14 0) |
|
597 |
#label: '= method' |
|
598 |
#translateLabel: true |
|
599 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
|
600 |
#adjust: #left |
|
601 |
) |
|
602 |
#(#ActionButtonSpec |
|
603 |
#name: 'classChangesButton' |
|
604 |
#layout: #(#LayoutFrame 455 0.0 2 0.0 465 0 13 0) |
|
605 |
#label: ' ' |
|
606 |
#backgroundColor: #(#Color 50.0008 50.0008 50.0008) |
|
607 |
#model: #doFilterType: |
|
608 |
#actionValue: 'class' |
|
609 |
) |
|
610 |
#(#LabelSpec |
|
611 |
#name: 'classChangesLabel' |
|
612 |
#layout: #(#LayoutFrame 470 0 0 0.0 580 0 14 0) |
|
613 |
#label: '= class change' |
|
614 |
#translateLabel: true |
|
615 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
|
616 |
#adjust: #left |
|
617 |
) |
|
618 |
#(#ActionButtonSpec |
|
619 |
#name: 'snapshotButton' |
|
620 |
#layout: #(#LayoutFrame 258 0.0 16 0.0 268 0 27 0) |
|
621 |
#label: ' ' |
|
622 |
#backgroundColor: #(#Color 100.0 0.0 0.0) |
|
623 |
#model: #doFilterType: |
|
624 |
#actionValue: 'image' |
|
625 |
) |
|
626 |
#(#LabelSpec |
|
627 |
#name: 'snapshotLabel' |
|
628 |
#layout: #(#LayoutFrame 273 0 14 0.0 355 0 28 0) |
|
629 |
#label: '= snapshot' |
|
630 |
#translateLabel: true |
|
631 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
|
632 |
#adjust: #left |
|
633 |
) |
|
634 |
#(#ActionButtonSpec |
|
635 |
#name: 'fileInButton' |
|
636 |
#layout: #(#LayoutFrame 359 0.0 16 0.0 369 0 27 0) |
|
637 |
#label: ' ' |
|
638 |
#backgroundColor: #(#Color 0.0 80.0 80.0) |
|
639 |
#model: #doFilterSourceType: |
|
640 |
#actionValue: '* file*' |
|
641 |
) |
|
642 |
#(#LabelSpec |
|
643 |
#name: 'fileInLabel' |
|
644 |
#layout: #(#LayoutFrame 374 0 14 0.0 440 0 28 0) |
|
645 |
#label: '= fileIn' |
|
646 |
#translateLabel: true |
|
647 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
|
648 |
#adjust: #left |
|
649 |
) |
|
650 |
#(#ActionButtonSpec |
|
651 |
#name: 'checkInButton' |
|
652 |
#layout: #(#LayoutFrame 455 0.0 16 0.0 465 0 27 0) |
|
653 |
#label: ' ' |
|
654 |
#backgroundColor: #(#Color 0.0 0.0 100.0) |
|
655 |
#model: #doFilterSourceType: |
|
656 |
#actionValue: '* checkin*' |
|
657 |
) |
|
658 |
#(#LabelSpec |
|
659 |
#name: 'checkInLabel' |
|
660 |
#layout: #(#LayoutFrame 470 0 14 0.0 550 0 28 0) |
|
661 |
#label: '= checkIn' |
|
662 |
#translateLabel: true |
|
663 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
|
664 |
#adjust: #left |
|
665 |
) |
|
666 |
) |
|
667 |
) |
|
668 |
) |
|
669 |
) |
|
670 |
) |
|
671 |
) |
|
672 |
#(#WorkspaceSpec |
|
673 |
#name: 'changeTextEditor' |
|
674 |
#model: #valueOfChangeText |
|
675 |
#hasHorizontalScrollBar: true |
|
676 |
#hasVerticalScrollBar: true |
|
677 |
#miniScrollerHorizontal: true |
|
678 |
#isReadOnly: true |
|
679 |
) |
|
680 |
) |
|
681 |
) |
|
682 |
#handles: #(#Any 0.5 1.0) |
|
683 |
) |
|
684 |
#(#UISubSpecification |
|
685 |
#name: 'windowSpecForInfoBar' |
|
686 |
#layout: #(#LayoutFrame 0 0.0 -24 1 0 1.0 0 1.0) |
|
687 |
#majorKey: #ToolApplicationModel |
|
688 |
#minorKey: #windowSpecForInfoBar |
|
689 |
) |
|
690 |
) |
|
691 |
) |
|
1545 | 692 |
) |
1647 | 693 |
|
1653 | 694 |
"Modified: / 19.5.1998 / 18:58:47 / cg" |
1545 | 695 |
! ! |
696 |
||
697 |
!NewChangesBrowser class methodsFor:'list specs'! |
|
698 |
||
1641 | 699 |
tableColumnsForChangeAttributes |
700 |
"This resource specification was automatically generated |
|
701 |
by the DataSetBuilder of ST/X." |
|
702 |
||
703 |
"Do not manually edit this!! If it is corrupted, |
|
704 |
the DataSetBuilder may not be able to read the specification." |
|
705 |
||
706 |
" |
|
707 |
DataSetBuilder new openOnClass:NewChangesBrowser andSelector:#tableColumnsForChangeAttributes |
|
708 |
" |
|
709 |
||
710 |
<resource: #tableColumns> |
|
711 |
||
7957 | 712 |
^#( |
713 |
(DataSetColumnSpec |
|
714 |
labelButtonType: Button |
|
715 |
rendererType: rowSelector |
|
716 |
backgroundSelector: listColor |
|
717 |
showSelectionHighLighted: false |
|
718 |
) |
|
719 |
(DataSetColumnSpec |
|
720 |
label: 'Change' |
|
721 |
id: change |
|
722 |
labelAlignment: left |
|
723 |
labelButtonType: Button |
|
724 |
model: string |
|
725 |
canSelect: false |
|
1641 | 726 |
) |
7957 | 727 |
(DataSetColumnSpec |
728 |
label: 'Class' |
|
729 |
id: 'className' |
|
730 |
labelAlignment: left |
|
731 |
activeHelpKey: '' |
|
732 |
labelButtonType: Button |
|
733 |
model: className |
|
734 |
canSelect: false |
|
1641 | 735 |
) |
7957 | 736 |
(DataSetColumnSpec |
737 |
label: 'Selector' |
|
738 |
id: 'selector' |
|
739 |
labelAlignment: left |
|
740 |
activeHelpKey: '' |
|
741 |
labelButtonType: Button |
|
742 |
model: selector |
|
743 |
canSelect: false |
|
1641 | 744 |
) |
7957 | 745 |
(DataSetColumnSpec |
746 |
label: 'Category' |
|
747 |
id: category |
|
748 |
labelAlignment: left |
|
749 |
labelButtonType: Button |
|
750 |
model: category |
|
751 |
canSelect: false |
|
1641 | 752 |
) |
7957 | 753 |
(DataSetColumnSpec |
754 |
label: 'Delta Info' |
|
755 |
id: deltaInfo |
|
756 |
labelAlignment: left |
|
757 |
labelButtonType: Button |
|
758 |
model: delta |
|
759 |
canSelect: false |
|
1641 | 760 |
) |
7957 | 761 |
(DataSetColumnSpec |
762 |
label: 'Time Stamp' |
|
763 |
id: timeStamp |
|
764 |
labelAlignment: left |
|
765 |
labelButtonType: Button |
|
766 |
model: timeStamp |
|
767 |
canSelect: false |
|
1641 | 768 |
) |
7957 | 769 |
(DataSetColumnSpec |
770 |
label: 'Type' |
|
771 |
id: type |
|
772 |
labelAlignment: left |
|
773 |
labelButtonType: Button |
|
774 |
model: type |
|
775 |
canSelect: false |
|
1641 | 776 |
) |
7957 | 777 |
(DataSetColumnSpec |
778 |
label: 'Position' |
|
779 |
id: position |
|
780 |
labelAlignment: left |
|
781 |
labelButtonType: Button |
|
782 |
model: positions |
|
783 |
canSelect: false |
|
784 |
) |
|
785 |
) |
|
786 |
||
1545 | 787 |
! ! |
788 |
||
789 |
!NewChangesBrowser class methodsFor:'menu specs'! |
|
790 |
||
791 |
menu |
|
792 |
"This resource specification was automatically generated |
|
793 |
by the MenuEditor of ST/X." |
|
794 |
||
795 |
"Do not manually edit this!! If it is corrupted, |
|
796 |
the MenuEditor may not be able to read the specification." |
|
797 |
||
798 |
" |
|
799 |
MenuEditor new openOnClass:NewChangesBrowser andSelector:#menu |
|
800 |
(Menu new fromLiteralArrayEncoding:(NewChangesBrowser menu)) startUp |
|
801 |
" |
|
802 |
||
803 |
<resource: #menu> |
|
804 |
||
7957 | 805 |
^ |
806 |
#(Menu |
|
807 |
( |
|
808 |
(MenuItem |
|
809 |
label: 'File' |
|
810 |
translateLabel: true |
|
811 |
submenu: |
|
812 |
(Menu |
|
813 |
( |
|
814 |
(MenuItem |
|
815 |
activeHelpKey: fileReload |
|
816 |
enabled: valueOfNotReading |
|
817 |
label: 'Reload' |
|
818 |
itemValue: doReload |
|
819 |
translateLabel: true |
|
820 |
) |
|
821 |
(MenuItem |
|
822 |
label: '-' |
|
823 |
) |
|
824 |
(MenuItem |
|
825 |
activeHelpKey: fileLoad |
|
826 |
enabled: valueOfNotSaving |
|
827 |
label: 'Load...' |
|
828 |
itemValue: doLoad |
|
829 |
translateLabel: true |
|
830 |
) |
|
831 |
(MenuItem |
|
832 |
label: '-' |
|
833 |
) |
|
834 |
(MenuItem |
|
835 |
activeHelpKey: fileSave |
|
836 |
enabled: valueOfNotReading |
|
837 |
label: 'Save' |
|
838 |
itemValue: doSave |
|
839 |
translateLabel: true |
|
840 |
) |
|
841 |
(MenuItem |
|
842 |
label: '-' |
|
843 |
) |
|
844 |
(MenuItem |
|
845 |
activeHelpKey: fileBrowseClass |
|
846 |
enabled: valueOfHavingChangeSelection |
|
847 |
label: 'Browse Class' |
|
848 |
itemValue: doBrowseClass |
|
849 |
translateLabel: true |
|
850 |
) |
|
851 |
(MenuItem |
|
852 |
label: '-' |
|
853 |
) |
|
854 |
(MenuItem |
|
855 |
activeHelpKey: fileExit |
|
856 |
enabled: valueOfNotSaving |
|
857 |
label: 'Exit' |
|
858 |
itemValue: closeRequest |
|
859 |
translateLabel: true |
|
860 |
) |
|
861 |
) |
|
862 |
nil |
|
863 |
nil |
|
864 |
) |
|
865 |
) |
|
866 |
(MenuItem |
|
867 |
label: 'Apply' |
|
868 |
translateLabel: true |
|
869 |
submenu: |
|
870 |
(Menu |
|
871 |
( |
|
872 |
(MenuItem |
|
873 |
activeHelpKey: applyLine |
|
874 |
enabled: valueOfHavingChangeSelection |
|
875 |
label: 'Change' |
|
876 |
itemValue: doApply |
|
877 |
translateLabel: true |
|
878 |
) |
|
879 |
(MenuItem |
|
880 |
label: '-' |
|
881 |
) |
|
882 |
(MenuItem |
|
883 |
activeHelpKey: applyAll |
|
884 |
enabled: valueOfNotReading |
|
885 |
label: 'All' |
|
886 |
itemValue: doApplyAll |
|
887 |
translateLabel: true |
|
888 |
) |
|
889 |
(MenuItem |
|
890 |
activeHelpKey: applyToEnd |
|
891 |
enabled: valueOfHavingSelection |
|
892 |
label: 'To End' |
|
893 |
itemValue: doApplyToEnd |
|
894 |
translateLabel: true |
|
895 |
) |
|
896 |
(MenuItem |
|
897 |
activeHelpKey: applyForClassToEnd |
|
898 |
enabled: valueOfHavingChangeSelection |
|
899 |
label: 'All for Class' |
|
900 |
itemValue: doApplyAllForClass |
|
901 |
translateLabel: true |
|
902 |
) |
|
903 |
(MenuItem |
|
904 |
activeHelpKey: applyForClassToEnd |
|
905 |
enabled: valueOfHavingChangeSelection |
|
906 |
label: 'For Class to End' |
|
907 |
itemValue: doApplyForClassToEnd |
|
908 |
translateLabel: true |
|
909 |
) |
|
910 |
(MenuItem |
|
911 |
label: '-' |
|
912 |
) |
|
913 |
(MenuItem |
|
914 |
activeHelpKey: applyFromLastSnapshot |
|
915 |
enabled: valueOfNotReading |
|
916 |
label: 'From Last Snapshot' |
|
917 |
itemValue: doApplyFromLastSnapshot |
|
918 |
translateLabel: true |
|
919 |
) |
|
920 |
) |
|
921 |
nil |
|
922 |
nil |
|
923 |
) |
|
924 |
) |
|
925 |
(MenuItem |
|
926 |
label: 'Delete' |
|
927 |
translateLabel: true |
|
928 |
submenu: |
|
929 |
(Menu |
|
930 |
( |
|
931 |
(MenuItem |
|
932 |
activeHelpKey: deleteLine |
|
933 |
enabled: valueOfHavingSelection |
|
934 |
label: 'Change' |
|
935 |
itemValue: doDelete |
|
936 |
translateLabel: true |
|
937 |
) |
|
938 |
(MenuItem |
|
939 |
label: '-' |
|
940 |
) |
|
941 |
(MenuItem |
|
942 |
activeHelpKey: deleteAll |
|
943 |
enabled: valueOfNotReading |
|
944 |
label: 'All' |
|
945 |
itemValue: doDeleteAll |
|
946 |
translateLabel: true |
|
947 |
) |
|
948 |
(MenuItem |
|
949 |
activeHelpKey: deleteToEnd |
|
950 |
enabled: valueOfHavingSelection |
|
951 |
label: 'To End' |
|
952 |
itemValue: doDeleteToEnd |
|
953 |
translateLabel: true |
|
954 |
) |
|
955 |
(MenuItem |
|
956 |
activeHelpKey: applyForClassToEnd |
|
957 |
enabled: valueOfHavingChangeSelection |
|
958 |
label: 'All for Class' |
|
959 |
itemValue: doDeleteAllForClass |
|
960 |
translateLabel: true |
|
961 |
) |
|
962 |
(MenuItem |
|
963 |
activeHelpKey: deleteForClassToEnd |
|
964 |
enabled: valueOfHavingChangeSelection |
|
965 |
label: 'For Class to End' |
|
966 |
itemValue: doDeleteForClassToEnd |
|
967 |
translateLabel: true |
|
968 |
) |
|
969 |
(MenuItem |
|
970 |
label: '-' |
|
971 |
) |
|
972 |
(MenuItem |
|
973 |
activeHelpKey: deleteCompress |
|
974 |
enabled: valueOfNotReading |
|
975 |
label: 'Compress' |
|
976 |
itemValue: doCompress |
|
977 |
translateLabel: true |
|
978 |
) |
|
979 |
(MenuItem |
|
980 |
activeHelpKey: deleteCompressForClass |
|
981 |
enabled: valueOfHavingChangeSelection |
|
982 |
label: 'Compress for Class' |
|
983 |
itemValue: doCompressForClass |
|
984 |
translateLabel: true |
|
985 |
) |
|
986 |
) |
|
987 |
nil |
|
988 |
nil |
|
989 |
) |
|
990 |
) |
|
991 |
(MenuItem |
|
992 |
label: 'Search' |
|
993 |
translateLabel: true |
|
994 |
submenu: |
|
995 |
(Menu |
|
996 |
( |
|
997 |
(MenuItem |
|
998 |
activeHelpKey: testFindPreviousSnapshot |
|
999 |
enabled: valueOfHavingSelection |
|
1000 |
label: 'Find Previous Snapshot' |
|
1001 |
itemValue: doFindSnapshot: |
|
1002 |
translateLabel: true |
|
1003 |
argument: 'previous' |
|
1004 |
) |
|
1005 |
(MenuItem |
|
1006 |
activeHelpKey: testFindNextSnapshot |
|
1007 |
enabled: valueOfHavingSelection |
|
1008 |
label: 'Find Next Snapshot' |
|
1009 |
itemValue: doFindSnapshot: |
|
1010 |
translateLabel: true |
|
1011 |
argument: 'next' |
|
1012 |
) |
|
1013 |
(MenuItem |
|
1014 |
activeHelpKey: testFindLastSnapshot |
|
1015 |
enabled: valueOfHavingSelection |
|
1016 |
label: 'Find Last Snapshot' |
|
1017 |
itemValue: doFindSnapshot: |
|
1018 |
translateLabel: true |
|
1019 |
argument: 'last' |
|
1020 |
) |
|
1021 |
) |
|
1022 |
nil |
|
1023 |
nil |
|
1024 |
) |
|
1025 |
) |
|
1026 |
(MenuItem |
|
1027 |
label: 'Test' |
|
1028 |
translateLabel: true |
|
1029 |
submenu: |
|
1030 |
(Menu |
|
1031 |
( |
|
1032 |
(MenuItem |
|
1033 |
activeHelpKey: testCompareWithCurrentVersion |
|
1034 |
enabled: valueOfHavingChangeSelection |
|
1035 |
label: 'Compare with Current Version' |
|
1036 |
itemValue: doCompare |
|
1037 |
translateLabel: true |
|
1038 |
) |
|
1039 |
) |
|
1040 |
nil |
|
1041 |
nil |
|
1042 |
) |
|
1043 |
) |
|
1044 |
(MenuItem |
|
1045 |
label: 'Settings' |
|
1046 |
translateLabel: true |
|
1047 |
submenu: |
|
1048 |
(Menu |
|
1049 |
( |
|
1050 |
(MenuItem |
|
1051 |
activeHelpKey: settingsAutoUpdate |
|
1052 |
enabled: valueOfNotReading |
|
1053 |
label: 'Auto Update' |
|
1054 |
translateLabel: true |
|
1055 |
indication: autoUpdateMode: |
|
1056 |
) |
|
1057 |
(MenuItem |
|
1058 |
label: '-' |
|
1059 |
) |
|
1060 |
(MenuItem |
|
1061 |
activeHelpKey: settingsPrivateAsSeparate |
|
1062 |
enabled: valueOfNotReading |
|
1063 |
label: 'Private Classes as Separate' |
|
1064 |
translateLabel: true |
|
1065 |
indication: privateAsSeparate: |
|
1066 |
) |
|
1067 |
(MenuItem |
|
1068 |
label: '-' |
|
1069 |
) |
|
1070 |
(MenuItem |
|
1071 |
activeHelpKey: settingsColumns |
|
1072 |
label: 'Columns' |
|
1073 |
translateLabel: true |
|
1074 |
submenu: |
|
1075 |
(Menu |
|
1076 |
( |
|
1077 |
(MenuItem |
|
1078 |
activeHelpKey: settingsColumnsClassName |
|
1079 |
label: 'Class' |
|
1080 |
translateLabel: true |
|
1081 |
isVisible: false |
|
1082 |
hideMenuOnActivated: false |
|
1083 |
indication: classNameColumn: |
|
1084 |
) |
|
1085 |
(MenuItem |
|
1086 |
activeHelpKey: settingsColumnsCategory |
|
1087 |
label: 'Selector' |
|
1088 |
translateLabel: true |
|
1089 |
isVisible: false |
|
1090 |
hideMenuOnActivated: false |
|
1091 |
indication: selectorColumn: |
|
1092 |
) |
|
1093 |
(MenuItem |
|
1094 |
activeHelpKey: settingsColumnsCategory |
|
1095 |
label: 'Category' |
|
1096 |
translateLabel: true |
|
1097 |
hideMenuOnActivated: false |
|
1098 |
indication: categoryColumn: |
|
1099 |
) |
|
1100 |
(MenuItem |
|
1101 |
activeHelpKey: settingsColumnsDeltaInfo |
|
1102 |
label: 'Delta Info' |
|
1103 |
translateLabel: true |
|
1104 |
hideMenuOnActivated: false |
|
1105 |
indication: deltaInfoColumn: |
|
1106 |
) |
|
1107 |
(MenuItem |
|
1108 |
activeHelpKey: settingsColumnsType |
|
1109 |
label: 'Type' |
|
1110 |
translateLabel: true |
|
1111 |
hideMenuOnActivated: false |
|
1112 |
indication: typeColumn: |
|
1113 |
) |
|
1114 |
(MenuItem |
|
1115 |
activeHelpKey: settingsColumnsTimeStamp |
|
1116 |
label: 'Time Stamp' |
|
1117 |
translateLabel: true |
|
1118 |
hideMenuOnActivated: false |
|
1119 |
indication: timeStampColumn: |
|
1120 |
) |
|
1121 |
(MenuItem |
|
1122 |
activeHelpKey: settingsColumnsPosition |
|
1123 |
label: 'Positions' |
|
1124 |
translateLabel: true |
|
1125 |
hideMenuOnActivated: false |
|
1126 |
indication: positionsColumn: |
|
1127 |
) |
|
1128 |
) |
|
1129 |
nil |
|
1130 |
nil |
|
1131 |
) |
|
1132 |
) |
|
1133 |
(MenuItem |
|
1134 |
label: '-' |
|
1135 |
) |
|
1136 |
(MenuItem |
|
1137 |
enabled: valueOfNotReading |
|
1138 |
label: 'Fonts' |
|
1139 |
translateLabel: true |
|
1140 |
submenuChannel: menuFont |
|
1141 |
) |
|
1142 |
) |
|
1143 |
nil |
|
1144 |
nil |
|
1145 |
) |
|
1146 |
) |
|
1147 |
(MenuItem |
|
1148 |
label: 'MENU_Help' |
|
1149 |
translateLabel: true |
|
1150 |
startGroup: conditionalRight |
|
1151 |
submenuChannel: menuHelp |
|
1152 |
) |
|
1153 |
) |
|
1154 |
nil |
|
1155 |
nil |
|
1545 | 1156 |
) |
1157 |
! |
|
1158 |
||
1159 |
menuTable |
|
1160 |
"This resource specification was automatically generated |
|
1161 |
by the MenuEditor of ST/X." |
|
1162 |
||
1163 |
"Do not manually edit this!! If it is corrupted, |
|
1164 |
the MenuEditor may not be able to read the specification." |
|
1165 |
||
1166 |
" |
|
1167 |
MenuEditor new openOnClass:NewChangesBrowser andSelector:#menuTable |
|
1168 |
(Menu new fromLiteralArrayEncoding:(NewChangesBrowser menuTable)) startUp |
|
1169 |
" |
|
1170 |
||
1171 |
<resource: #menu> |
|
1172 |
||
1173 |
^ |
|
6288 | 1174 |
|
1545 | 1175 |
#(#Menu |
6288 | 1176 |
|
2250 | 1177 |
#( |
1178 |
#(#MenuItem |
|
1179 |
#label: 'Apply' |
|
1180 |
#translateLabel: true |
|
1181 |
#value: #doApply |
|
1182 |
#activeHelpKey: #applyLine |
|
1183 |
#enabled: #valueOfHavingChangeSelection |
|
1184 |
) |
|
1185 |
#(#MenuItem |
|
1186 |
#label: 'Apply To End' |
|
1187 |
#translateLabel: true |
|
1188 |
#value: #doApplyToEnd |
|
1189 |
#activeHelpKey: #applyToEnd |
|
1190 |
#enabled: #valueOfHavingSelection |
|
1191 |
) |
|
1192 |
#(#MenuItem |
|
1193 |
#label: 'Apply All For Class' |
|
1194 |
#translateLabel: true |
|
1195 |
#value: #doApplyAllForClass |
|
1196 |
#activeHelpKey: #applyForClassToEnd |
|
1197 |
#enabled: #valueOfHavingChangeSelection |
|
1198 |
) |
|
1199 |
#(#MenuItem |
|
1200 |
#label: 'Apply For Class To End' |
|
1201 |
#translateLabel: true |
|
1202 |
#value: #doApplyForClassToEnd |
|
1203 |
#activeHelpKey: #applyForClassToEnd |
|
1204 |
#enabled: #valueOfHavingChangeSelection |
|
1205 |
) |
|
1206 |
#(#MenuItem |
|
1207 |
#label: '-' |
|
1208 |
) |
|
1209 |
#(#MenuItem |
|
1210 |
#label: 'Delete' |
|
1211 |
#translateLabel: true |
|
1212 |
#value: #doDelete |
|
1213 |
#activeHelpKey: #deleteLine |
|
1214 |
#enabled: #valueOfHavingSelection |
|
1215 |
) |
|
1216 |
#(#MenuItem |
|
1217 |
#label: 'Delete To End' |
|
1218 |
#translateLabel: true |
|
1219 |
#value: #doDeleteToEnd |
|
1220 |
#activeHelpKey: #deleteToEnd |
|
1221 |
#enabled: #valueOfHavingSelection |
|
1222 |
) |
|
1223 |
#(#MenuItem |
|
1224 |
#label: 'Delete All For Class' |
|
1225 |
#translateLabel: true |
|
1226 |
#value: #doDeleteAllForClass |
|
1227 |
#activeHelpKey: #applyForClassToEnd |
|
1228 |
#enabled: #valueOfHavingChangeSelection |
|
1229 |
) |
|
1230 |
#(#MenuItem |
|
1231 |
#label: 'Delete For Class To End' |
|
1232 |
#translateLabel: true |
|
1233 |
#value: #doDeleteForClassToEnd |
|
1234 |
#activeHelpKey: #deleteForClassToEnd |
|
1235 |
#enabled: #valueOfHavingChangeSelection |
|
1236 |
) |
|
1237 |
#(#MenuItem |
|
1238 |
#label: '-' |
|
1239 |
) |
|
1240 |
#(#MenuItem |
|
1241 |
#label: 'Browse Class' |
|
1242 |
#translateLabel: true |
|
1243 |
#value: #doBrowseClass |
|
1244 |
#activeHelpKey: #fileBrowseClass |
|
1245 |
#enabled: #valueOfHavingChangeSelection |
|
1246 |
) |
|
1247 |
#(#MenuItem |
|
1248 |
#label: '-' |
|
1249 |
) |
|
1250 |
#(#MenuItem |
|
1251 |
#label: 'Compress For Class' |
|
1252 |
#translateLabel: true |
|
1253 |
#value: #doCompressForClass |
|
1254 |
#activeHelpKey: #deleteCompressForClass |
|
1255 |
#enabled: #valueOfHavingChangeSelection |
|
1256 |
) |
|
1257 |
) nil |
|
1258 |
nil |
|
1545 | 1259 |
) |
1650 | 1260 |
|
1261 |
"Modified: / 19.5.1998 / 18:03:59 / cg" |
|
1545 | 1262 |
! |
1263 |
||
1264 |
menuToolbar |
|
1265 |
"This resource specification was automatically generated |
|
1266 |
by the MenuEditor of ST/X." |
|
1267 |
||
1268 |
"Do not manually edit this!! If it is corrupted, |
|
1269 |
the MenuEditor may not be able to read the specification." |
|
1270 |
||
1271 |
" |
|
1272 |
MenuEditor new openOnClass:NewChangesBrowser andSelector:#menuToolbar |
|
1273 |
(Menu new fromLiteralArrayEncoding:(NewChangesBrowser menuToolbar)) startUp |
|
1274 |
" |
|
1275 |
||
1276 |
<resource: #menu> |
|
1277 |
||
7957 | 1278 |
^ |
1279 |
#(Menu |
|
1280 |
( |
|
1281 |
(MenuItem |
|
1282 |
activeHelpKey: fileLoad |
|
1283 |
enabled: valueOfNotReading |
|
1284 |
label: 'Load' |
|
1285 |
itemValue: doLoad |
|
1286 |
translateLabel: true |
|
1287 |
isButton: true |
|
1288 |
labelImage: (ResourceRetriever XPToolbarIconLibrary loadFromFileIcon) |
|
1289 |
) |
|
1290 |
(MenuItem |
|
1291 |
activeHelpKey: fileSave |
|
1292 |
enabled: valueOfNotSaving |
|
1293 |
label: 'Save' |
|
1294 |
itemValue: doSave |
|
1295 |
translateLabel: true |
|
1296 |
isButton: true |
|
1297 |
labelImage: (ResourceRetriever XPToolbarIconLibrary saveToFileIcon) |
|
1298 |
) |
|
1299 |
(MenuItem |
|
1300 |
label: '-' |
|
1301 |
) |
|
1302 |
(MenuItem |
|
1303 |
activeHelpKey: applyLine |
|
1304 |
enabled: valueOfHavingChangeSelection |
|
1305 |
label: 'Apply' |
|
1306 |
itemValue: doApply |
|
1307 |
translateLabel: true |
|
1308 |
isButton: true |
|
1309 |
labelImage: (ResourceRetriever nil applyIcon) |
|
1310 |
) |
|
1311 |
(MenuItem |
|
1312 |
activeHelpKey: applyToEnd |
|
1313 |
enabled: valueOfHavingSelection |
|
1314 |
label: 'Apply To End' |
|
1315 |
itemValue: doApplyToEnd |
|
1316 |
translateLabel: true |
|
1317 |
isButton: true |
|
1318 |
labelImage: (ResourceRetriever nil applyToEndIcon) |
|
1319 |
) |
|
1320 |
(MenuItem |
|
1321 |
activeHelpKey: applyFromLastSnapshot |
|
1322 |
enabled: valueOfNotReading |
|
1323 |
label: 'Apply From Last Snapshot' |
|
1324 |
itemValue: doApplyFromLastSnapshot |
|
1325 |
translateLabel: true |
|
1326 |
isButton: true |
|
1327 |
labelImage: (ResourceRetriever nil applyFromLastSnapshotIcon) |
|
1328 |
) |
|
1329 |
(MenuItem |
|
1330 |
label: '-' |
|
1331 |
) |
|
1332 |
(MenuItem |
|
1333 |
activeHelpKey: deleteLine |
|
1334 |
enabled: valueOfHavingSelection |
|
1335 |
label: 'Delete' |
|
1336 |
itemValue: doDelete |
|
1337 |
translateLabel: true |
|
1338 |
isButton: true |
|
1339 |
labelImage: (ResourceRetriever nil deleteIcon) |
|
1340 |
) |
|
1341 |
(MenuItem |
|
1342 |
activeHelpKey: deleteToEnd |
|
1343 |
enabled: valueOfHavingSelection |
|
1344 |
label: 'Delete To End' |
|
1345 |
itemValue: doDeleteToEnd |
|
1346 |
translateLabel: true |
|
1347 |
isButton: true |
|
1348 |
labelImage: (ResourceRetriever nil deleteToEndIcon) |
|
1349 |
) |
|
1350 |
(MenuItem |
|
1351 |
activeHelpKey: deleteCompress |
|
1352 |
enabled: valueOfNotReading |
|
1353 |
label: 'Compress' |
|
1354 |
itemValue: doCompress |
|
1355 |
translateLabel: true |
|
1356 |
isButton: true |
|
1357 |
labelImage: (ResourceRetriever nil compressIcon) |
|
1358 |
) |
|
1359 |
(MenuItem |
|
1360 |
label: '-' |
|
1361 |
) |
|
1362 |
(MenuItem |
|
1363 |
activeHelpKey: testFindPreviousSnapshot |
|
1364 |
enabled: valueOfHavingSelection |
|
1365 |
label: 'Find Previous Snapshot' |
|
1366 |
itemValue: doFindSnapshot: |
|
1367 |
translateLabel: true |
|
1368 |
isButton: true |
|
1369 |
labelImage: (ResourceRetriever nil findPreviousSnapshotIcon) |
|
1370 |
argument: 'previous' |
|
1371 |
) |
|
1372 |
(MenuItem |
|
1373 |
activeHelpKey: testFindNextSnapshot |
|
1374 |
enabled: valueOfHavingSelection |
|
1375 |
label: 'Find Next Snapshot' |
|
1376 |
itemValue: doFindSnapshot: |
|
1377 |
translateLabel: true |
|
1378 |
isButton: true |
|
1379 |
labelImage: (ResourceRetriever nil findNextSnapshotIcon) |
|
1380 |
argument: 'next' |
|
1381 |
) |
|
1382 |
) |
|
1383 |
nil |
|
1384 |
nil |
|
1545 | 1385 |
) |
1386 |
! ! |
|
1387 |
||
1388 |
!NewChangesBrowser methodsFor:'accesssing - columns'! |
|
1389 |
||
1390 |
categoryColumn |
|
1546 | 1391 |
"returns whether the column for the category attribute of the changes is shown" |
1545 | 1392 |
|
1553 | 1393 |
^CategoryColumn ? (CategoryColumn := false) |
1545 | 1394 |
! |
1395 |
||
1396 |
categoryColumn: aBoolean |
|
1546 | 1397 |
"sets whether the column for the category attribute of the changes is shown" |
1545 | 1398 |
|
1653 | 1399 |
self changeColumn: #category add: (CategoryColumn := aBoolean) |
1400 |
||
1401 |
"Modified: / 19.5.1998 / 20:30:13 / cg" |
|
1545 | 1402 |
! |
1403 |
||
7957 | 1404 |
classAndSelectorColumn |
1405 |
"returns whether the column for the category attribute of the changes is shown" |
|
1406 |
||
1407 |
^ClassAndSelectorColumn ? (ClassAndSelectorColumn := false) |
|
1408 |
! |
|
1409 |
||
1410 |
classAndSelectorColumn: aBoolean |
|
1411 |
"sets whether the column for the category attribute of the changes is shown" |
|
1412 |
||
1413 |
self changeColumn: #classAndSelector add: (ClassAndSelectorColumn := aBoolean) |
|
1414 |
||
1415 |
"Modified: / 19.5.1998 / 20:30:13 / cg" |
|
1416 |
! |
|
1417 |
||
1418 |
classNameColumn |
|
1419 |
"returns whether the column for the category attribute of the changes is shown" |
|
1420 |
||
1421 |
^ClassNameColumn ? (ClassNameColumn := false) |
|
1422 |
! |
|
1423 |
||
1424 |
classNameColumn: aBoolean |
|
1425 |
"sets whether the column for the className attribute of the changes is shown" |
|
1426 |
||
1427 |
self changeColumn: #className add: (ClassNameColumn := aBoolean) |
|
1428 |
||
1429 |
"Modified: / 19.5.1998 / 20:30:13 / cg" |
|
1430 |
! |
|
1431 |
||
1545 | 1432 |
deltaInfoColumn |
1546 | 1433 |
"returns whether the column for the delta info attribute of the changes is shown" |
1545 | 1434 |
|
1435 |
^DeltaInfoColumn ? (DeltaInfoColumn := false) |
|
1436 |
! |
|
1437 |
||
1438 |
deltaInfoColumn: aBoolean |
|
1546 | 1439 |
"sets whether the column for the delta info attribute of the changes is shown; and updates" |
1440 |
||
1653 | 1441 |
self changeColumn: #deltaInfo add: (DeltaInfoColumn := aBoolean). |
1546 | 1442 |
(self window notNil and: [DeltaInfoColumn]) ifTrue: [self doReload] |
1653 | 1443 |
|
1444 |
"Modified: / 19.5.1998 / 20:30:21 / cg" |
|
1545 | 1445 |
! |
1446 |
||
1568 | 1447 |
positionsColumn |
1546 | 1448 |
"returns whether the column for the position attribute of the changes is shown" |
1545 | 1449 |
|
1568 | 1450 |
^PositionsColumn ? (PositionsColumn := false) |
1545 | 1451 |
! |
1452 |
||
1568 | 1453 |
positionsColumn: aBoolean |
1454 |
"sets whether the column for the positions attribute of the changes is shown" |
|
1455 |
||
1653 | 1456 |
self changeColumn: #position add: (PositionsColumn := aBoolean) |
1457 |
||
1458 |
"Modified: / 19.5.1998 / 20:30:37 / cg" |
|
1545 | 1459 |
! |
1460 |
||
7957 | 1461 |
selectorColumn |
1462 |
"returns whether the column for the category attribute of the changes is shown" |
|
1463 |
||
1464 |
^SelectorColumn ? (SelectorColumn := false) |
|
1465 |
! |
|
1466 |
||
1467 |
selectorColumn: aBoolean |
|
1468 |
"sets whether the column for the category attribute of the changes is shown" |
|
1469 |
||
1470 |
self changeColumn: #selector add: (SelectorColumn := aBoolean) |
|
1471 |
||
1472 |
"Modified: / 19.5.1998 / 20:30:13 / cg" |
|
1473 |
! |
|
1474 |
||
1545 | 1475 |
timeStampColumn |
1546 | 1476 |
"returns whether the column for the time stamp attribute of the changes is shown" |
1545 | 1477 |
|
1478 |
^TimeStampColumn ? (TimeStampColumn := false) |
|
1479 |
! |
|
1480 |
||
1481 |
timeStampColumn: aBoolean |
|
1546 | 1482 |
"sets whether the column for the time stamp attribute of the changes is shown" |
1545 | 1483 |
|
1653 | 1484 |
self changeColumn: #timeStamp add: (TimeStampColumn := aBoolean) |
1485 |
||
1486 |
"Modified: / 19.5.1998 / 20:30:42 / cg" |
|
1545 | 1487 |
! |
1488 |
||
1489 |
typeColumn |
|
1546 | 1490 |
"returns whether the column for the type attribute of the changes is shown" |
1545 | 1491 |
|
1492 |
^TypeColumn ? (TypeColumn := false) |
|
1493 |
! |
|
1494 |
||
1495 |
typeColumn: aBoolean |
|
1546 | 1496 |
"sets whether the column for the type attribute of the changes is shown" |
1545 | 1497 |
|
1653 | 1498 |
self changeColumn: #type add: (TypeColumn := aBoolean) |
1499 |
||
1500 |
"Modified: / 19.5.1998 / 20:30:46 / cg" |
|
1545 | 1501 |
! ! |
1502 |
||
1503 |
!NewChangesBrowser methodsFor:'accesssing - views'! |
|
1504 |
||
1568 | 1505 |
changeTextEditor |
1506 |
"returns the view of the changeTextEditor" |
|
1507 |
||
1508 |
^builder componentAt: #changeTextEditor |
|
1509 |
||
1510 |
||
1511 |
||
1512 |
! |
|
1513 |
||
1545 | 1514 |
filterField |
1546 | 1515 |
"returns the view of the filterField" |
1545 | 1516 |
|
1517 |
^builder componentAt: #filterField |
|
1518 |
||
1519 |
||
1520 |
||
1521 |
! |
|
1522 |
||
1523 |
filterLabel |
|
1546 | 1524 |
"returns the view of the filterLabel" |
1545 | 1525 |
|
1526 |
^builder componentAt: #filterLabel |
|
1527 |
||
1528 |
||
1529 |
||
1530 |
! |
|
1531 |
||
1532 |
readProgressIndicator |
|
1546 | 1533 |
"returns the view of the readProgressIndicator" |
1545 | 1534 |
|
1535 |
^builder componentAt: #readProgressIndicator |
|
1536 |
||
1537 |
||
1538 |
||
1539 |
! ! |
|
1540 |
||
1541 |
!NewChangesBrowser methodsFor:'aspects'! |
|
1542 |
||
1543 |
listOfChangeColumns |
|
1546 | 1544 |
"initializes (during the startup) and returns the value holder for the columns" |
1545 | 1545 |
|
1546 |
|holder| |
|
1547 |
(holder := builder bindingAt:#listOfChangeColumns) isNil ifTrue:[ |
|
7957 | 1548 |
builder aspectAt:#listOfChangeColumns put:(holder := List new). |
1549 |
self changeColumn: nil add: true. |
|
1550 |
self changeColumn: #change add: true. |
|
1551 |
||
1552 |
self classNameColumn: self classNameColumn. |
|
1553 |
self classAndSelectorColumn: self classAndSelectorColumn. |
|
1554 |
self selectorColumn: self selectorColumn. |
|
1555 |
self categoryColumn: self categoryColumn. |
|
1556 |
self timeStampColumn: self timeStampColumn. |
|
1557 |
self typeColumn: self typeColumn. |
|
2740
6b8666356abb
oops - dont try to redraw components which are not there
Claus Gittinger <cg@exept.de>
parents:
2250
diff
changeset
|
1558 |
"/ self deltaInfoColumn: self deltaInfoColumn. |
7957 | 1559 |
self positionsColumn: self positionsColumn. |
1545 | 1560 |
]. |
1561 |
^ holder |
|
1562 |
||
1653 | 1563 |
"Modified: / 19.5.1998 / 20:30:31 / cg" |
1545 | 1564 |
! |
1565 |
||
1566 |
listOfChanges |
|
1546 | 1567 |
"returns the value holder for the changes" |
1545 | 1568 |
|
6288 | 1569 |
|holder| |
1545 | 1570 |
(holder := builder bindingAt:#listOfChanges) isNil ifTrue:[ |
2250 | 1571 |
builder aspectAt:#listOfChanges put:(holder := List new) |
6288 | 1572 |
]. |
1545 | 1573 |
^ holder |
1574 |
! |
|
1575 |
||
1576 |
selectionOfChange |
|
1546 | 1577 |
"returns the value holder for the selected change" |
1545 | 1578 |
|
1579 |
|holder| |
|
1580 |
(holder := builder bindingAt:#selectionOfChange) isNil ifTrue:[ |
|
2250 | 1581 |
builder aspectAt:#selectionOfChange put:(holder := ValueHolder new). |
6288 | 1582 |
]. |
1545 | 1583 |
^ holder |
1584 |
! |
|
1585 |
||
1586 |
valueOfChangeText |
|
1546 | 1587 |
"returns the value holder for the source code of the selected change" |
1545 | 1588 |
|
1589 |
|holder| |
|
1590 |
(holder := builder bindingAt:#valueOfChangeText) isNil ifTrue:[ |
|
2250 | 1591 |
builder aspectAt:#valueOfChangeText put:(holder := ValueHolder new). |
1545 | 1592 |
]. |
1593 |
^ holder |
|
1594 |
! |
|
1595 |
||
1596 |
valueOfFilter |
|
1546 | 1597 |
"returns the value holder for the string of the filter" |
1545 | 1598 |
|
1599 |
|holder| |
|
1600 |
(holder := builder bindingAt:#valueOfFilter) isNil ifTrue:[ |
|
2250 | 1601 |
builder aspectAt:#valueOfFilter put:(holder := ValueHolder new). |
1602 |
holder addDependent: self |
|
1545 | 1603 |
]. |
1604 |
^ holder |
|
1605 |
! |
|
1606 |
||
1607 |
valueOfHavingChangeSelection |
|
1546 | 1608 |
"returns whether the selected change can be applied as value holder" |
1545 | 1609 |
|
1610 |
|holder| |
|
1611 |
(holder := builder bindingAt:#valueOfHavingChangeSelection) isNil ifTrue:[ |
|
2250 | 1612 |
builder aspectAt:#valueOfHavingChangeSelection put:(holder := false asValue). |
1545 | 1613 |
]. |
1614 |
^ holder |
|
1615 |
! |
|
1616 |
||
1617 |
valueOfHavingSelection |
|
1546 | 1618 |
"returns whether a change is selected as value holder" |
1545 | 1619 |
|
1620 |
|holder| |
|
1621 |
(holder := builder bindingAt:#valueOfHavingSelection) isNil ifTrue:[ |
|
2250 | 1622 |
builder aspectAt:#valueOfHavingSelection put:(holder := false asValue). |
1545 | 1623 |
]. |
1624 |
^ holder |
|
1625 |
! |
|
1626 |
||
1627 |
valueOfNotReading |
|
1546 | 1628 |
"returns whether it is not reading or compressing as value holder" |
1545 | 1629 |
|
1630 |
|holder| |
|
1631 |
(holder := builder bindingAt:#valueOfReading) isNil ifTrue:[ |
|
2250 | 1632 |
builder aspectAt:#valueOfReading put:(holder := true asValue). |
1545 | 1633 |
]. |
1634 |
^ holder |
|
1635 |
! |
|
1636 |
||
1568 | 1637 |
valueOfNotSaving |
1638 |
"returns whether it is not saving as value holder" |
|
1639 |
||
1640 |
|holder| |
|
1641 |
(holder := builder bindingAt:#valueOfNotSaving) isNil ifTrue:[ |
|
2250 | 1642 |
builder aspectAt:#valueOfNotSaving put:(holder := true asValue). |
1568 | 1643 |
]. |
1644 |
^ holder |
|
1645 |
! |
|
1646 |
||
1545 | 1647 |
valueOfReadProgress |
1546 | 1648 |
"returns the stage of reading or compressing as value holder" |
1545 | 1649 |
|
1650 |
|holder| |
|
1651 |
(holder := builder bindingAt:#valueOfReadProgress) isNil ifTrue:[ |
|
2250 | 1652 |
builder aspectAt:#valueOfReadProgress put:(holder := ValueHolder with: 0). |
1545 | 1653 |
]. |
1654 |
^ holder |
|
1655 |
! ! |
|
1656 |
||
1657 |
!NewChangesBrowser methodsFor:'callbacks'! |
|
1658 |
||
1659 |
changeSelected: lineNr |
|
1546 | 1660 |
"fetches the source code of the change and shows it in the codeView" |
1545 | 1661 |
|
1662 |
|aStream sawExcla chunk selectedRow changeNr| |
|
1663 |
||
1664 |
lineNr == 0 ifTrue: [^nil]. |
|
1665 |
changeNr := changes indexOf: (self listOfChanges at: lineNr). |
|
1666 |
aStream := self streamForChange: (changes at: changeNr). |
|
1667 |
aStream isNil ifTrue:[^ self]. |
|
1668 |
sawExcla := aStream peekFor:(aStream class chunkSeparator). |
|
1669 |
chunk := aStream nextChunk. |
|
1670 |
sawExcla ifTrue:[ |
|
2250 | 1671 |
chunk := aStream nextChunk |
1545 | 1672 |
]. |
6288 | 1673 |
aStream close. |
1545 | 1674 |
self valueOfChangeText value:chunk. |
1675 |
||
1546 | 1676 |
self updateChannels |
1677 |
! ! |
|
1678 |
||
1679 |
!NewChangesBrowser methodsFor:'change & update'! |
|
1680 |
||
1681 |
update:something with:aParameter from:changedObject |
|
1682 |
"evaluates the filterCompletionBlock after returning the filter string" |
|
1683 |
||
1684 |
super update:something with:aParameter from:changedObject. |
|
1685 |
||
7957 | 1686 |
changedObject == self valueOfFilter ifTrue:[ |
1687 |
filterCompletionBlock value: changedObject value. |
|
1688 |
self listOfChanges size > 0 ifTrue: [self addToHistory: changedObject value -> #doFilter:] |
|
1568 | 1689 |
] |
1546 | 1690 |
! |
1691 |
||
1692 |
updateChannels |
|
1693 |
"updates my channels" |
|
1694 |
||
6288 | 1695 |
|change| |
1546 | 1696 |
(change := self selectionOfChange value) notNil |
1545 | 1697 |
ifTrue: |
1698 |
[ |
|
2250 | 1699 |
self valueOfHavingSelection value: true. |
6288 | 1700 |
self valueOfHavingChangeSelection value: |
2250 | 1701 |
((change type = 'method') or: [(change type = 'class')]) |
1546 | 1702 |
] |
1703 |
ifFalse: |
|
1704 |
[ |
|
2250 | 1705 |
self valueOfHavingSelection value: false. |
1706 |
self valueOfHavingChangeSelection value: false |
|
1545 | 1707 |
] |
1546 | 1708 |
|
1709 |
||
1710 |
||
1711 |
||
1712 |
||
1713 |
||
1545 | 1714 |
! ! |
1715 |
||
1716 |
!NewChangesBrowser methodsFor:'compiler interface'! |
|
1717 |
||
10247 | 1718 |
correctableSelectorWarning:aText position:smallInteger1 to:smallInteger2 from:aByteCodeCompiler |
1719 |
||
1720 |
^false |
|
1721 |
||
1722 |
"Created: / 16-11-2010 / 16:04:02 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
1723 |
! |
|
1724 |
||
1725 |
correctableWarning:aText position:smallInteger1 to:smallInteger2 from:aByteCodeCompiler |
|
1726 |
||
1727 |
^false |
|
1728 |
||
1729 |
"Created: / 16-11-2010 / 16:03:23 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
1730 |
! |
|
1731 |
||
1545 | 1732 |
wantChangeLog |
1733 |
"sent by the compiler to ask if a changeLog entry should |
|
1734 |
be written. Return false here." |
|
1735 |
||
1736 |
^ false |
|
1737 |
||
1738 |
||
1739 |
! ! |
|
1740 |
||
1568 | 1741 |
!NewChangesBrowser methodsFor:'error handling'! |
1742 |
||
1743 |
correctableError:aString position:relPos to:relEndPos from:aCompiler |
|
1744 |
"compiler notifys us of an error - this should really not happen since |
|
1745 |
changes ought to be correct (did someone edit the changes file ??). |
|
1746 |
Show the bad change in the codeView and let codeView hilight the error; |
|
1747 |
no corrections allowed here therefore return false" |
|
1748 |
||
1749 |
self error:aString position:relPos to:relEndPos from:aCompiler. |
|
1750 |
^ false |
|
1751 |
! |
|
1752 |
||
1753 |
error:aString position:relPos to:relEndPos from:aCompiler |
|
1754 |
"compiler notifys us of an error - this should really not happen since |
|
1755 |
changes ought to be correct (did someone edit the changes file ??). |
|
1756 |
Show the bad change in the codeView and let codeView hilight the error" |
|
1757 |
||
1758 |
|action| |
|
1759 |
||
1760 |
(skipSignal notNil) ifTrue:[ |
|
1761 |
||
7957 | 1762 |
self changeTextEditor highlightingErrorPosition:relPos to:relEndPos do:[ |
1763 |
|box| |
|
1764 |
||
1765 |
" |
|
1766 |
start dialog - make certain cleanup is done |
|
1767 |
" |
|
1768 |
action := OptionBox |
|
1769 |
request:aString |
|
1770 |
label:'Error' |
|
1771 |
image:(WarningBox iconBitmap) |
|
1772 |
buttonLabels:#('cancel' 'skip' 'continue') |
|
1773 |
values:#(#abort #skip #continue) |
|
1774 |
default:#continue. |
|
1775 |
]. |
|
1776 |
||
1777 |
action == #abort ifTrue:[ |
|
1778 |
Object abortSignal raise. |
|
1779 |
^ false |
|
1780 |
]. |
|
1781 |
action == #skip ifTrue:[ |
|
1782 |
skipSignal raise. |
|
1783 |
^ false |
|
1784 |
]. |
|
1785 |
^ false |
|
1568 | 1786 |
]. |
1787 |
^self changeTextEditor error:aString position:relPos to:relEndPos from:aCompiler |
|
1788 |
! |
|
1789 |
||
10247 | 1790 |
unusedVariableWarning:aText position:smallInteger1 to:smallInteger2 from:aByteCodeCompiler |
1791 |
||
1792 |
^false |
|
1793 |
||
1794 |
"Created: / 24-02-2011 / 22:00:31 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
1795 |
! |
|
1796 |
||
1568 | 1797 |
warning:aString position:relPos to:relEndPos from:aCompiler |
1798 |
"compiler notifys us of a warning - ignore it" |
|
1799 |
||
1800 |
^ self |
|
1801 |
||
1802 |
! ! |
|
1803 |
||
1545 | 1804 |
!NewChangesBrowser methodsFor:'help'! |
1805 |
||
1806 |
defaultInfoLabel |
|
1546 | 1807 |
"returns the default label for the info bar" |
1545 | 1808 |
|
1809 |
changeFileName asFilename exists ifTrue: [^changeFileName]. |
|
1810 |
^'No change file name defined.' |
|
1811 |
||
1812 |
||
1813 |
||
7957 | 1814 |
! |
1815 |
||
1816 |
openDocumentation |
|
1817 |
self openHTMLDocument:'tools/cbrowser/TOP.html'. |
|
1545 | 1818 |
! ! |
1819 |
||
1820 |
!NewChangesBrowser methodsFor:'initialization'! |
|
1821 |
||
1822 |
initialize |
|
1546 | 1823 |
"initializes the instance variables" |
1545 | 1824 |
|
1825 |
super initialize. |
|
1826 |
||
1546 | 1827 |
changes := List new. |
6288 | 1828 |
self changeFileName: ObjectMemory nameForChanges. |
1829 |
AutoUpdate := AutoUpdate ? false. |
|
1546 | 1830 |
PrivateAsSeparate := PrivateAsSeparate ? false. |
1545 | 1831 |
|
1832 |
ObjectMemory addDependent:self. |
|
1833 |
! ! |
|
1834 |
||
1835 |
!NewChangesBrowser methodsFor:'menu modes'! |
|
1836 |
||
1837 |
autoUpdateMode |
|
1838 |
"returns whether autoUpdate is on/off" |
|
1839 |
||
1840 |
^AutoUpdate |
|
1841 |
||
1842 |
! |
|
1843 |
||
1844 |
autoUpdateMode: aMode |
|
1845 |
"sets the autoUpdate to aMode" |
|
1846 |
||
1847 |
AutoUpdate := aMode |
|
1848 |
||
1546 | 1849 |
! |
1850 |
||
1851 |
privateAsSeparate |
|
1852 |
"returns whether private classes are handled as separate changes" |
|
1853 |
||
1854 |
^PrivateAsSeparate |
|
1855 |
||
1856 |
! |
|
1857 |
||
1858 |
privateAsSeparate: aMode |
|
1859 |
"sets the PrivateAsSeparate to aMode" |
|
1860 |
||
1861 |
PrivateAsSeparate := aMode |
|
1862 |
||
1545 | 1863 |
! ! |
1864 |
||
1865 |
!NewChangesBrowser methodsFor:'private'! |
|
1866 |
||
1546 | 1867 |
applyChange:aChange |
1868 |
"applies aChange" |
|
1545 | 1869 |
|
1870 |
|aStream nm applyAction changeNr| |
|
1871 |
||
1546 | 1872 |
aStream := self streamForChange:aChange. |
1545 | 1873 |
aStream isNil ifTrue:[^ self]. |
1874 |
||
1546 | 1875 |
nm := self classNameOfChange:aChange. |
1545 | 1876 |
nm notNil ifTrue:[ |
17034 | 1877 |
|cls| |
1878 |
||
1879 |
cls := Smalltalk at:(nm asSymbol) ifAbsent:[]. |
|
1880 |
cls notNil ifTrue:[ |
|
1881 |
cls isLoaded ifFalse:[ |
|
1882 |
cls autoload |
|
1883 |
] |
|
1884 |
] |
|
1545 | 1885 |
]. |
1886 |
||
1887 |
applyAction := [ |
|
17034 | 1888 |
|sig| |
1889 |
||
1890 |
(skipSignal notNil) ifTrue:[ |
|
1891 |
sig := skipSignal |
|
1892 |
] ifFalse:[ |
|
1893 |
sig := Object abortSignal |
|
1894 |
]. |
|
1895 |
sig catch:[ |
|
1896 |
|reader doItChunk methodsForChunk| |
|
1897 |
||
1898 |
"/ a followup methodsFor: chunk... |
|
1899 |
aChange followUp ifTrue:[ |
|
1900 |
methodsForChunk := aChange chunk. |
|
1901 |
] ifFalse:[ |
|
1902 |
doItChunk := aStream nextChunk. "/ an empty chunk sometimes... |
|
1903 |
doItChunk notEmpty ifTrue:[ |
|
1904 |
Compiler evaluate:doItChunk notifying:self. |
|
1905 |
] ifFalse:[ |
|
1906 |
methodsForChunk := aStream nextChunk. "/ the real one |
|
1907 |
] |
|
1908 |
]. |
|
1909 |
methodsForChunk notNil ifTrue:[ |
|
1910 |
Class methodRedefinitionSignal handle:[:ex | |
|
1911 |
ex proceedWith:#keep |
|
1912 |
] do:[ |
|
1913 |
reader := Compiler evaluate:methodsForChunk notifying:self. |
|
1914 |
reader fileInFrom:aStream notifying:self passChunk:false single:true. |
|
1915 |
] |
|
1916 |
] |
|
1917 |
]. |
|
1545 | 1918 |
]. |
1919 |
||
1920 |
"/ |
|
17034 | 1921 |
"/ if I am showing the changes file, don't update it |
1545 | 1922 |
"/ |
1877
f0dbf0801e4d
care for pathName being the same, where the change-fileName is not
Claus Gittinger <cg@exept.de>
parents:
1798
diff
changeset
|
1923 |
changeFileName asFilename pathName = ObjectMemory nameForChanges asFilename pathName ifTrue:[ |
17034 | 1924 |
Class withoutUpdatingChangesDo:applyAction |
1545 | 1925 |
] ifFalse:[ |
17034 | 1926 |
applyAction value |
1545 | 1927 |
]. |
1928 |
aStream close |
|
1877
f0dbf0801e4d
care for pathName being the same, where the change-fileName is not
Claus Gittinger <cg@exept.de>
parents:
1798
diff
changeset
|
1929 |
|
f0dbf0801e4d
care for pathName being the same, where the change-fileName is not
Claus Gittinger <cg@exept.de>
parents:
1798
diff
changeset
|
1930 |
"Modified: / 8.9.1998 / 12:48:01 / cg" |
1545 | 1931 |
! |
1932 |
||
1546 | 1933 |
autoSelectChange:aChange |
1934 |
"selects aChange" |
|
1545 | 1935 |
|
6288 | 1936 |
self class autoSelectNext ifTrue:[ |
2250 | 1937 |
((self listOfChanges indexOf: aChange) <= self listOfChanges size) ifTrue:[ |
6288 | 1938 |
self selectionOfChange value: aChange. |
2250 | 1939 |
self changeSelected:(self listOfChanges indexOf: aChange). |
1940 |
self updateChannels. |
|
1941 |
^ self |
|
1942 |
] |
|
6288 | 1943 |
]. |
1546 | 1944 |
self updateChannels. |
1945 |
self unselectChange |
|
1569 | 1946 |
|
1545 | 1947 |
! |
1948 |
||
1949 |
autoSelectLast |
|
1546 | 1950 |
"selects the last change" |
1951 |
||
1952 |
self autoSelectChange: (self listOfChanges at: self listOfChanges size ifAbsent: nil). |
|
1953 |
self updateChannels. |
|
1954 |
||
1545 | 1955 |
! |
1956 |
||
1546 | 1957 |
autoSelectOrEnd:aChange |
1958 |
"selects aChange or the last" |
|
1545 | 1959 |
|
1960 |
|last| |
|
1961 |
||
1962 |
last := self listOfChanges size. |
|
6288 | 1963 |
aChange notNil ifTrue:[ |
2250 | 1964 |
self autoSelectChange:aChange |
1545 | 1965 |
] ifFalse:[ |
2250 | 1966 |
self selectionOfChange value: (self listOfChanges at: last ifAbsent: nil). |
1967 |
self changeSelected: last |
|
1546 | 1968 |
]. |
1969 |
self updateChannels |
|
1545 | 1970 |
! |
1971 |
||
1653 | 1972 |
changeColumn: aColumnId add: addOrRemove |
1546 | 1973 |
"adds or removes a attribute column to the table" |
1545 | 1974 |
|
1569 | 1975 |
|newListOfChangeColumns| |
1976 |
||
1977 |
newListOfChangeColumns := self listOfChangeColumns asOrderedCollection. |
|
7957 | 1978 |
addOrRemove ifTrue:[ |
1979 |
newListOfChangeColumns add: |
|
1980 |
((self class tableColumnsForChangeAttributes |
|
1981 |
collect: [:i| i decodeAsLiteralArray]) |
|
1982 |
detect: [:column| column id = aColumnId]) |
|
1983 |
] ifFalse:[ |
|
1984 |
newListOfChangeColumns remove: |
|
1985 |
(self listOfChangeColumns detect: [:column| column id = aColumnId] ifNone: nil) ifAbsent: nil |
|
1553 | 1986 |
]. |
1569 | 1987 |
self listOfChangeColumns contents: newListOfChangeColumns. |
1553 | 1988 |
self autoSelectLast |
1545 | 1989 |
|
1653 | 1990 |
"Modified: / 19.5.1998 / 20:32:53 / cg" |
1545 | 1991 |
! |
1992 |
||
1546 | 1993 |
changeFileName:aFileName |
1994 |
"sets the name of the file with the changes" |
|
1995 |
||
1938 | 1996 |
changeFileName := aFileName asFilename name. |
1997 |
"/ (Filename currentDirectory asAbsoluteFilename construct: aFileName) name. |
|
1998 |
||
1999 |
"Modified: / 17.10.1998 / 14:43:01 / cg" |
|
1546 | 2000 |
! |
2001 |
||
1545 | 2002 |
checkClassIsLoaded:aClass |
1546 | 2003 |
"returns true if aClass is loaded" |
1545 | 2004 |
|
2005 |
|cls| |
|
10584
26c11c692527
changed: #checkClassIsLoaded:
Claus Gittinger <cg@exept.de>
parents:
10583
diff
changeset
|
2006 |
|
26c11c692527
changed: #checkClassIsLoaded:
Claus Gittinger <cg@exept.de>
parents:
10583
diff
changeset
|
2007 |
cls := aClass theNonMetaclass. |
1545 | 2008 |
cls isLoaded ifFalse:[ |
10584
26c11c692527
changed: #checkClassIsLoaded:
Claus Gittinger <cg@exept.de>
parents:
10583
diff
changeset
|
2009 |
(self confirm:(cls name , ' is an autoloaded class.\I can only compare the methods texts if its loaded first.\\Load the class first ?') withCRs) |
26c11c692527
changed: #checkClassIsLoaded:
Claus Gittinger <cg@exept.de>
parents:
10583
diff
changeset
|
2010 |
ifTrue:[ |
26c11c692527
changed: #checkClassIsLoaded:
Claus Gittinger <cg@exept.de>
parents:
10583
diff
changeset
|
2011 |
cls autoload |
26c11c692527
changed: #checkClassIsLoaded:
Claus Gittinger <cg@exept.de>
parents:
10583
diff
changeset
|
2012 |
] |
1545 | 2013 |
]. |
2014 |
^ cls isLoaded |
|
10584
26c11c692527
changed: #checkClassIsLoaded:
Claus Gittinger <cg@exept.de>
parents:
10583
diff
changeset
|
2015 |
|
26c11c692527
changed: #checkClassIsLoaded:
Claus Gittinger <cg@exept.de>
parents:
10583
diff
changeset
|
2016 |
"Modified: / 18-08-2011 / 09:51:39 / cg" |
1545 | 2017 |
! |
2018 |
||
2019 |
checkIfFileHasChanged |
|
1546 | 2020 |
"checks if changes file has changed" |
2021 |
||
2022 |
|f info| |
|
1545 | 2023 |
|
6288 | 2024 |
Processor removeTimedBlock:autoUpdateBlock. |
1545 | 2025 |
f := changeFileName asFilename. |
2026 |
(info := f info) isNil ifTrue:[ |
|
16087 | 2027 |
self newLabel:'unaccessible' |
1545 | 2028 |
] ifFalse:[ |
16087 | 2029 |
(info modificationTime) > changeFileTimestamp ifTrue:[ |
2030 |
self newLabel:'outdated'. |
|
2031 |
AutoUpdate ifTrue:[ |
|
2032 |
self doReload |
|
2033 |
] |
|
2034 |
] ifFalse:[ |
|
2035 |
self newLabel:'' |
|
2036 |
] |
|
1545 | 2037 |
]. |
2038 |
Processor addTimedBlock:autoUpdateBlock afterSeconds:5. |
|
2039 |
! |
|
2040 |
||
10583
e2411142dc0c
added: #classNameAndClassFromNode:
Claus Gittinger <cg@exept.de>
parents:
10247
diff
changeset
|
2041 |
classNameAndClassFromNode:aTreeNode |
e2411142dc0c
added: #classNameAndClassFromNode:
Claus Gittinger <cg@exept.de>
parents:
10247
diff
changeset
|
2042 |
|rcvr className changeClass| |
e2411142dc0c
added: #classNameAndClassFromNode:
Claus Gittinger <cg@exept.de>
parents:
10247
diff
changeset
|
2043 |
|
e2411142dc0c
added: #classNameAndClassFromNode:
Claus Gittinger <cg@exept.de>
parents:
10247
diff
changeset
|
2044 |
rcvr := aTreeNode receiver. |
e2411142dc0c
added: #classNameAndClassFromNode:
Claus Gittinger <cg@exept.de>
parents:
10247
diff
changeset
|
2045 |
rcvr isUnaryMessage ifTrue:[ |
e2411142dc0c
added: #classNameAndClassFromNode:
Claus Gittinger <cg@exept.de>
parents:
10247
diff
changeset
|
2046 |
self assert:(rcvr selector = 'class'). |
e2411142dc0c
added: #classNameAndClassFromNode:
Claus Gittinger <cg@exept.de>
parents:
10247
diff
changeset
|
2047 |
|
e2411142dc0c
added: #classNameAndClassFromNode:
Claus Gittinger <cg@exept.de>
parents:
10247
diff
changeset
|
2048 |
className := rcvr receiver name. |
e2411142dc0c
added: #classNameAndClassFromNode:
Claus Gittinger <cg@exept.de>
parents:
10247
diff
changeset
|
2049 |
SourceCodeManagerError |
e2411142dc0c
added: #classNameAndClassFromNode:
Claus Gittinger <cg@exept.de>
parents:
10247
diff
changeset
|
2050 |
handle:[:ex | ] |
e2411142dc0c
added: #classNameAndClassFromNode:
Claus Gittinger <cg@exept.de>
parents:
10247
diff
changeset
|
2051 |
do:[ changeClass := (Smalltalk classNamed:className) class ]. |
e2411142dc0c
added: #classNameAndClassFromNode:
Claus Gittinger <cg@exept.de>
parents:
10247
diff
changeset
|
2052 |
className := className , ' class'. |
e2411142dc0c
added: #classNameAndClassFromNode:
Claus Gittinger <cg@exept.de>
parents:
10247
diff
changeset
|
2053 |
^ className -> changeClass |
e2411142dc0c
added: #classNameAndClassFromNode:
Claus Gittinger <cg@exept.de>
parents:
10247
diff
changeset
|
2054 |
]. |
e2411142dc0c
added: #classNameAndClassFromNode:
Claus Gittinger <cg@exept.de>
parents:
10247
diff
changeset
|
2055 |
|
e2411142dc0c
added: #classNameAndClassFromNode:
Claus Gittinger <cg@exept.de>
parents:
10247
diff
changeset
|
2056 |
(rcvr type == #Nil) ifTrue:[ |
e2411142dc0c
added: #classNameAndClassFromNode:
Claus Gittinger <cg@exept.de>
parents:
10247
diff
changeset
|
2057 |
^ 'nil' -> nil |
e2411142dc0c
added: #classNameAndClassFromNode:
Claus Gittinger <cg@exept.de>
parents:
10247
diff
changeset
|
2058 |
]. |
e2411142dc0c
added: #classNameAndClassFromNode:
Claus Gittinger <cg@exept.de>
parents:
10247
diff
changeset
|
2059 |
|
e2411142dc0c
added: #classNameAndClassFromNode:
Claus Gittinger <cg@exept.de>
parents:
10247
diff
changeset
|
2060 |
className := rcvr name. |
e2411142dc0c
added: #classNameAndClassFromNode:
Claus Gittinger <cg@exept.de>
parents:
10247
diff
changeset
|
2061 |
SourceCodeManagerError |
e2411142dc0c
added: #classNameAndClassFromNode:
Claus Gittinger <cg@exept.de>
parents:
10247
diff
changeset
|
2062 |
handle:[:ex | ] |
e2411142dc0c
added: #classNameAndClassFromNode:
Claus Gittinger <cg@exept.de>
parents:
10247
diff
changeset
|
2063 |
do:[ changeClass := Smalltalk classNamed:className ]. |
e2411142dc0c
added: #classNameAndClassFromNode:
Claus Gittinger <cg@exept.de>
parents:
10247
diff
changeset
|
2064 |
^ className -> changeClass |
e2411142dc0c
added: #classNameAndClassFromNode:
Claus Gittinger <cg@exept.de>
parents:
10247
diff
changeset
|
2065 |
|
e2411142dc0c
added: #classNameAndClassFromNode:
Claus Gittinger <cg@exept.de>
parents:
10247
diff
changeset
|
2066 |
"Created: / 18-08-2011 / 09:38:37 / cg" |
e2411142dc0c
added: #classNameAndClassFromNode:
Claus Gittinger <cg@exept.de>
parents:
10247
diff
changeset
|
2067 |
! |
e2411142dc0c
added: #classNameAndClassFromNode:
Claus Gittinger <cg@exept.de>
parents:
10247
diff
changeset
|
2068 |
|
1546 | 2069 |
classNameOfChange:aChange |
6288 | 2070 |
"returns the classname of aChange |
1545 | 2071 |
(for classChanges (i.e. xxx class), the non-metaClassName (i.e. xxx) is returned)" |
2072 |
||
2073 |
|name| |
|
2074 |
||
1546 | 2075 |
name := self fullClassNameOfChange:aChange. |
1545 | 2076 |
name isNil ifTrue:[^ nil]. |
2077 |
(name endsWith:' class') ifTrue:[ |
|
13706
88e9ac79bb2f
class: NewChangesBrowser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10584
diff
changeset
|
2078 |
^ name copyButLast:6 |
1545 | 2079 |
]. |
2080 |
^ name |
|
2081 |
! |
|
2082 |
||
1546 | 2083 |
compareChange:aChange |
2084 |
"compares aChange with the current version" |
|
1545 | 2085 |
|
2086 |
|aStream chunk sawExcla parseTree thisClass cat oldSource newSource |
|
2087 |
parser sel oldMethod outcome showDiff d t1 t2 selector isLoaded |
|
2088 |
method beep| |
|
2089 |
||
1546 | 2090 |
aStream := self streamForChange:aChange. |
1545 | 2091 |
aStream isNil ifTrue:[^ self]. |
2092 |
||
2093 |
showDiff := false. |
|
2094 |
||
1546 | 2095 |
aChange followUp ifFalse:[ |
2250 | 2096 |
sawExcla := aStream peekFor:(aStream class chunkSeparator). |
2097 |
chunk := aStream nextChunk. |
|
1545 | 2098 |
] ifTrue:[ |
2250 | 2099 |
chunk := aChange chunk. |
2100 |
sawExcla := true. |
|
1545 | 2101 |
]. |
2102 |
||
2103 |
beep := false. |
|
2104 |
sawExcla ifFalse:[ |
|
2250 | 2105 |
outcome := 'Cannot compare this change\(i.e. this is not a method change)!!'. |
2106 |
||
2107 |
parseTree := Parser parseExpression:chunk. |
|
2108 |
(parseTree notNil and:[parseTree isMessage]) ifTrue:[ |
|
2109 |
((selector := parseTree selector) == #removeSelector:) ifTrue:[ |
|
2110 |
thisClass := (parseTree receiver evaluate). |
|
2111 |
thisClass isBehavior ifTrue:[ |
|
2112 |
(self checkClassIsLoaded:thisClass) ifTrue:[ |
|
2113 |
selector := (parseTree arg1 evaluate). |
|
2114 |
(thisClass includesSelector:selector) ifTrue:[ |
|
2115 |
outcome := 'Change removes the #' , selector , ' method from ' , thisClass name. |
|
2116 |
] ifFalse:[ |
|
2117 |
outcome := 'Change has no effect\(there is no method for #' , selector , ' in ' , thisClass name , ')' |
|
2118 |
] |
|
2119 |
] ifFalse:[ |
|
2120 |
beep := true. |
|
2121 |
outcome := 'Cannot compare this change (compare requires class to be loaded)!!'. |
|
2122 |
] |
|
2123 |
] |
|
2124 |
]. |
|
2125 |
selector == #category: ifTrue:[ |
|
2126 |
parseTree receiver isMessage ifTrue:[ |
|
2127 |
parseTree receiver selector == #compiledMethodAt: ifTrue:[ |
|
2128 |
(method := parseTree receiver evaluate) isMethod ifTrue:[ |
|
2129 |
method category = parseTree arg1 evaluate ifTrue:[ |
|
2130 |
outcome := 'Change has no effect\(same category)'. |
|
2131 |
] ifFalse:[ |
|
2132 |
outcome := 'Category is different (''' , method category , ''' vs. ''' , parseTree arg1 evaluate , ''')' |
|
2133 |
] |
|
2134 |
] ifFalse:[ |
|
2135 |
beep := true. |
|
2136 |
outcome := 'There is no such method!!' |
|
2137 |
] |
|
2138 |
] |
|
2139 |
] |
|
2140 |
] |
|
2141 |
] |
|
1545 | 2142 |
] ifTrue:[ |
2250 | 2143 |
parseTree := Parser parseExpression:chunk. |
6288 | 2144 |
(parseTree notNil |
2250 | 2145 |
and:[parseTree ~~ #Error |
2146 |
and:[parseTree isMessage]]) ifTrue:[ |
|
2147 |
(parseTree selector == #methodsFor:) ifTrue:[ |
|
2148 |
thisClass := (parseTree receiver evaluate). |
|
2149 |
thisClass isBehavior ifTrue:[ |
|
2150 |
(isLoaded := self checkClassIsLoaded:thisClass) ifFalse:[ |
|
2151 |
outcome := 'Cannot compare this change\(compare requires class to be loaded)!!'. |
|
2152 |
]. |
|
2153 |
||
2154 |
cat := parseTree arg1 evaluate. |
|
2155 |
newSource := aStream nextChunk. |
|
2156 |
||
2157 |
parser := Parser parseMethod:newSource in:thisClass. |
|
2158 |
(parser notNil and:[parser ~~ #Error]) ifTrue:[ |
|
2159 |
sel := parser selector. |
|
2160 |
oldMethod := thisClass compiledMethodAt:sel. |
|
2161 |
oldMethod notNil ifTrue:[ |
|
2162 |
(oldMethod category = cat) ifFalse:[ |
|
2163 |
Transcript showCR:'Category changed.'. |
|
2164 |
]. |
|
2165 |
oldSource := oldMethod source. |
|
2166 |
(oldSource = newSource) ifTrue:[ |
|
2167 |
outcome := 'Same source.' |
|
2168 |
] ifFalse:[ |
|
2169 |
oldSource isNil ifTrue:[ |
|
2170 |
beep := true. |
|
2171 |
outcome := 'No source for compare.' |
|
2172 |
] ifFalse:[ |
|
2173 |
"/ |
|
2174 |
"/ compare for tabulator <-> space changes |
|
2175 |
"/ before showing diff... |
|
2176 |
"/ |
|
2177 |
t1 := oldSource asCollectionOfLines collect:[:s | s withTabsExpanded]. |
|
2178 |
t2 := newSource asCollectionOfLines collect:[:s | s withTabsExpanded]. |
|
2179 |
t1 = t2 ifTrue:[ |
|
2180 |
outcome := 'Same source.' |
|
2181 |
] ifFalse:[ |
|
2182 |
outcome := 'Source changed!!'. |
|
2183 |
showDiff := true. |
|
2184 |
||
2185 |
"/ |
|
2186 |
"/ check if only historyLine diffs |
|
2187 |
"/ |
|
6288 | 2188 |
(HistoryManager notNil |
2250 | 2189 |
and:[HistoryManager isActive]) ifTrue:[ |
2190 |
(HistoryManager withoutHistoryLines:newSource) |
|
2191 |
= |
|
2192 |
(HistoryManager withoutHistoryLines:oldSource) |
|
2193 |
ifTrue:[ |
|
2194 |
outcome := 'Same source (history only).'. |
|
2195 |
showDiff := false. |
|
2196 |
] |
|
2197 |
]. |
|
2198 |
] |
|
2199 |
] |
|
2200 |
] |
|
2201 |
] ifFalse:[ |
|
2202 |
isLoaded ifTrue:[ |
|
2203 |
beep := true. |
|
2204 |
outcome := 'Method does not exist!!' |
|
2205 |
] |
|
2206 |
] |
|
2207 |
] ifFalse:[ |
|
2208 |
outcome := 'Change unparsable!!' |
|
2209 |
]. |
|
2210 |
(showDiff and:[oldSource notNil and:[newSource notNil]]) ifTrue:[ |
|
6288 | 2211 |
d := DiffTextView |
2250 | 2212 |
openOn:oldSource label:'Current version (in image)' |
2213 |
and:newSource label:'Change version'. |
|
2214 |
d label:'method differences'. |
|
2215 |
] |
|
2216 |
] ifFalse:[ |
|
2217 |
beep := true. |
|
2218 |
outcome := 'Class does not exist!!' |
|
2219 |
] |
|
2220 |
] ifFalse:[ |
|
2221 |
beep := true. |
|
2222 |
outcome := 'Not comparable!!' |
|
2223 |
] |
|
2224 |
] ifFalse:[ |
|
2225 |
beep := true. |
|
2226 |
outcome := 'Not comparable!!' |
|
2227 |
] |
|
1545 | 2228 |
]. |
2229 |
aStream close. |
|
2230 |
showDiff ifFalse:[ |
|
2250 | 2231 |
beep ifTrue:[ |
2232 |
self warn:outcome withCRs. |
|
2233 |
] ifFalse:[ |
|
2234 |
self information:outcome withCRs. |
|
2235 |
] |
|
1545 | 2236 |
] |
2237 |
! |
|
2238 |
||
2239 |
compressForClass:aClassNameOrNil |
|
6288 | 2240 |
"compresses the list of changes; |
1545 | 2241 |
this replaces multiple method-changes by the last (i.e. the most recent) change. |
2242 |
If the class argument is nil, compress for all classes. |
|
2243 |
otherwise, only changes for that class are compressed." |
|
2244 |
||
6288 | 2245 |
|aStream searchIndex anyMore deleteSet index |
1545 | 2246 |
str snapshotProto snapshotPrefix snapshotNameIndex fileName| |
2247 |
||
2248 |
aStream := FileStream readonlyFileNamed:changeFileName. |
|
2249 |
aStream isNil ifTrue:[^ self]. |
|
2250 |
||
2251 |
aClassNameOrNil isNil ifTrue:[ |
|
2250 | 2252 |
self newLabel:'compressing...'. |
1545 | 2253 |
] ifFalse:[ |
2250 | 2254 |
self newLabel:'compressing for ' , aClassNameOrNil. |
1545 | 2255 |
]. |
2256 |
||
2257 |
CompressSnapshotInfo == true ifTrue:[ |
|
2250 | 2258 |
" |
2259 |
get a prototype snapshot record (to be independent of |
|
2260 |
the actual format .. |
|
2261 |
" |
|
2262 |
str := WriteStream on:String new. |
|
2263 |
Class addChangeRecordForSnapshot:'foo' to:str. |
|
2264 |
snapshotProto := str contents. |
|
2265 |
snapshotPrefix := snapshotProto copyTo:10. |
|
2266 |
snapshotNameIndex := snapshotProto findString:'foo'. |
|
1545 | 2267 |
]. |
2268 |
||
2269 |
self valueOfNotReading value: false. |
|
2270 |
self valueOfHavingSelection value: false. |
|
2271 |
self valueOfHavingChangeSelection value: false. |
|
2272 |
self valueOfReadProgress value: 0. |
|
2273 |
self readProgressIndicator raise. |
|
2274 |
self filterLabel label: 'Comp:'; redraw. |
|
2275 |
||
2276 |
self withExecuteCursorDo:[ |
|
2250 | 2277 |
|numChanges classes selectors types excla sawExcla |
2278 |
changeNr chunk aParseTree parseTreeChunk |
|
2279 |
thisClass thisSelector codeChunk codeParser |
|
2280 |
compressThis oldValue| |
|
2281 |
||
2282 |
numChanges := changes size. |
|
2283 |
classes := Array new:numChanges. |
|
2284 |
selectors := Array new:numChanges. |
|
2285 |
types := Array new:numChanges. |
|
2286 |
||
2287 |
"starting at the end, get the change class and change selector; |
|
2288 |
collect all in classes / selectors" |
|
2289 |
||
2290 |
changeNr := numChanges. |
|
2291 |
excla := aStream class chunkSeparator. |
|
2292 |
||
2293 |
[changeNr >= 1] whileTrue:[ |
|
2294 |
oldValue := self valueOfReadProgress value. |
|
2295 |
self valueOfReadProgress value: (100 - ((aStream position/aStream size) * 100) rounded). |
|
2296 |
oldValue ~~ self valueOfReadProgress value |
|
2297 |
ifTrue: [self readProgressIndicator redrawEdges;redraw]. |
|
2298 |
aStream position:(changes at: changeNr) position. |
|
2299 |
sawExcla := aStream peekFor:excla. |
|
2300 |
chunk := aStream nextChunk. |
|
2301 |
sawExcla ifTrue:[ |
|
2302 |
"optimize a bit if multiple methods for same category arrive" |
|
2303 |
(chunk = parseTreeChunk) ifFalse:[ |
|
2304 |
aParseTree := Parser parseExpression:chunk. |
|
2305 |
parseTreeChunk := chunk |
|
2306 |
]. |
|
6288 | 2307 |
(aParseTree notNil |
2308 |
and:[(aParseTree ~~ #Error) |
|
2250 | 2309 |
and:[aParseTree isMessage]]) ifTrue:[ |
2310 |
(aParseTree selector == #methodsFor:) ifTrue:[ |
|
2311 |
thisClass := (aParseTree receiver evaluate). |
|
2312 |
codeChunk := aStream nextChunk. |
|
6288 | 2313 |
codeParser := Parser |
2250 | 2314 |
parseMethodSpecification:codeChunk |
2315 |
in:thisClass |
|
2316 |
ignoreErrors:true |
|
2317 |
ignoreWarnings:true. |
|
2318 |
(codeParser notNil and:[codeParser ~~ #Error]) ifTrue:[ |
|
2319 |
selectors at:changeNr put:(codeParser selector). |
|
2320 |
classes at:changeNr put:thisClass. |
|
2321 |
types at:changeNr put:#methodsFor |
|
2322 |
] |
|
2323 |
] |
|
2324 |
] |
|
2325 |
] ifFalse:[ |
|
2326 |
aParseTree := Parser parseExpression:chunk. |
|
2327 |
parseTreeChunk := chunk. |
|
6288 | 2328 |
(aParseTree notNil |
2329 |
and:[(aParseTree ~~ #Error) |
|
2250 | 2330 |
and:[aParseTree isMessage]]) ifTrue:[ |
2331 |
(aParseTree selector == #removeSelector:) ifTrue:[ |
|
2332 |
selectors at:changeNr put:(aParseTree arg1 value ). |
|
2333 |
classes at:changeNr put:(aParseTree receiver evaluate). |
|
2334 |
types at:changeNr put:#removeSelector |
|
2335 |
] |
|
2336 |
] ifFalse:[ |
|
2337 |
CompressSnapshotInfo == true ifTrue:[ |
|
2338 |
(chunk startsWith:snapshotPrefix) ifTrue:[ |
|
2339 |
str := chunk readStream position:snapshotNameIndex. |
|
2340 |
fileName := str upTo:(Character space). |
|
2341 |
" |
|
2342 |
kludge to allow use of match-check below |
|
2343 |
" |
|
2344 |
selectors at:changeNr put:snapshotPrefix. |
|
2345 |
classes at:changeNr put:fileName. |
|
2346 |
] |
|
2347 |
] |
|
2348 |
] |
|
2349 |
]. |
|
2350 |
changeNr := changeNr - 1 |
|
2351 |
]. |
|
2352 |
aStream close. |
|
2353 |
||
6288 | 2354 |
"for all changes, look for another class/selector occurrence later |
2250 | 2355 |
in the list and, if there is one, add change number to the delete set" |
2356 |
||
2357 |
deleteSet := OrderedCollection new. |
|
2358 |
changeNr := 1. |
|
2359 |
[changeNr < changes size] whileTrue:[ |
|
2360 |
thisClass := classes at:changeNr. |
|
2361 |
||
2362 |
compressThis := false. |
|
2363 |
aClassNameOrNil isNil ifTrue:[ |
|
2364 |
compressThis := true |
|
2365 |
] ifFalse:[ |
|
2366 |
"/ skipping unloaded/unknown classes |
|
2367 |
thisClass isBehavior ifTrue:[ |
|
2368 |
thisClass isMeta ifTrue:[ |
|
6288 | 2369 |
compressThis := aClassNameOrNil = thisClass soleInstance name. |
2250 | 2370 |
] ifFalse:[ |
2371 |
compressThis := aClassNameOrNil = thisClass name. |
|
2372 |
(PrivateAsSeparate not and: [thisClass isPrivate]) |
|
2373 |
ifTrue:[compressThis := aClassNameOrNil = thisClass owningClass name] |
|
2374 |
] |
|
2375 |
] |
|
2376 |
]. |
|
2377 |
||
2378 |
compressThis ifTrue:[ |
|
2379 |
thisSelector := selectors at:changeNr. |
|
2380 |
searchIndex := changeNr. |
|
2381 |
anyMore := true. |
|
2382 |
[anyMore] whileTrue:[ |
|
2383 |
searchIndex := classes indexOf:thisClass |
|
2384 |
startingAt:(searchIndex + 1). |
|
2385 |
(searchIndex ~~ 0) ifTrue:[ |
|
2386 |
((selectors at:searchIndex) == thisSelector) ifTrue:[ |
|
2387 |
thisClass notNil ifTrue:[ |
|
2388 |
deleteSet add:changeNr. |
|
2389 |
anyMore := false |
|
2390 |
] |
|
2391 |
] |
|
2392 |
] ifFalse:[ |
|
6288 | 2393 |
anyMore := false |
2250 | 2394 |
] |
2395 |
]. |
|
2396 |
]. |
|
2397 |
||
2398 |
changeNr := changeNr + 1 |
|
2399 |
]. |
|
2400 |
||
2401 |
"finally delete what has been found" |
|
2402 |
||
2403 |
(deleteSet size > 0) ifTrue:[ |
|
2404 |
index := deleteSet size. |
|
2405 |
[index > 0] whileTrue:[ |
|
2406 |
self silentDeleteChange: (changes at: (deleteSet at:index)). |
|
2407 |
index := index - 1 |
|
2408 |
]. |
|
2409 |
self setChangeList |
|
2410 |
]. |
|
1545 | 2411 |
]. |
2412 |
self valueOfNotReading value: true. |
|
2413 |
self filterField raise. |
|
2414 |
self filterLabel label: 'Filter:'. |
|
2415 |
self newLabel: '' |
|
2416 |
! |
|
2417 |
||
2418 |
contractClass:className selector:selector to:maxLen |
|
2419 |
|s l| |
|
2420 |
||
2421 |
s := className , ' ', selector. |
|
2422 |
s size > maxLen ifTrue:[ |
|
2250 | 2423 |
l := maxLen - 1 - selector size max:20. |
2424 |
s := (className contractTo:l) , ' ' , selector. |
|
2425 |
||
2426 |
s size > maxLen ifTrue:[ |
|
2427 |
l := maxLen - 1 - className size max:20. |
|
2428 |
s := className , ' ', (selector contractTo:l). |
|
2429 |
||
2430 |
s size > maxLen ifTrue:[ |
|
2431 |
s := (className contractTo:(maxLen // 2 - 1)) , ' ' , (selector contractTo:maxLen // 2) |
|
2432 |
] |
|
2433 |
] |
|
1545 | 2434 |
]. |
2435 |
^ s |
|
2436 |
||
2437 |
! |
|
2438 |
||
2439 |
deleteChangesFrom:start to:stop |
|
1546 | 2440 |
"deletes a range of changes" |
1545 | 2441 |
|
6288 | 2442 |
self unselectChange. |
1545 | 2443 |
stop to:start by:-1 do:[:changeNr| |
2250 | 2444 |
self silentDeleteChange:(self listOfChanges at: changeNr) |
1546 | 2445 |
]. |
2446 |
self setChangeList |
|
1545 | 2447 |
! |
2448 |
||
1546 | 2449 |
fullClassNameOfChange:aChange |
6288 | 2450 |
"returns the full classname of aChange |
1545 | 2451 |
(for classChanges (i.e. xxx class), a string ending in ' class' is returned. |
6288 | 2452 |
- since parsing ascii methods is slow, keep result cached in |
1545 | 2453 |
changeClassNames for the next query" |
2454 |
||
2455 |
|chunk aParseTree recTree sel name arg1Tree isMeta prevMethodDefNr |
|
2456 |
words changeStream fullParseTree ownerTree ownerName oldDollarSetting| |
|
2457 |
||
1546 | 2458 |
aChange isNil ifTrue:[^ nil]. |
1545 | 2459 |
|
2460 |
" |
|
2461 |
first look, if not already known |
|
2462 |
" |
|
1546 | 2463 |
name := aChange className. |
1545 | 2464 |
name notNil ifTrue:[^ name]. |
2465 |
||
1546 | 2466 |
prevMethodDefNr := changes indexOf: aChange. |
1545 | 2467 |
[(changes at:prevMethodDefNr) followUp] whileTrue:[ |
17586 | 2468 |
prevMethodDefNr := prevMethodDefNr - 1. |
1545 | 2469 |
]. |
2470 |
||
2471 |
" |
|
2472 |
get the chunk |
|
2473 |
" |
|
2474 |
chunk := (changes at:prevMethodDefNr) chunk. |
|
2475 |
chunk isNil ifTrue:[^ nil]. "mhmh - empty" |
|
2476 |
||
2477 |
(chunk startsWith:'''---') ifTrue:[ |
|
17586 | 2478 |
words := chunk asCollectionOfWords. |
2479 |
words size > 2 ifTrue:[ |
|
2480 |
(words at:2) = 'checkin' ifTrue:[ |
|
2481 |
name := words at:3. |
|
2482 |
aChange className: name. |
|
2483 |
^ name |
|
2484 |
] |
|
2485 |
]. |
|
1545 | 2486 |
]. |
2487 |
||
2488 |
"/ fix it - otherwise, it cannot be parsed |
|
2489 |
(chunk endsWith:'primitiveDefinitions:') ifTrue:[ |
|
17586 | 2490 |
chunk := chunk , '''''' |
1545 | 2491 |
]. |
2492 |
(chunk endsWith:'primitiveFunctions:') ifTrue:[ |
|
17586 | 2493 |
chunk := chunk , '''''' |
1545 | 2494 |
]. |
2495 |
(chunk endsWith:'primitiveVariables:') ifTrue:[ |
|
17586 | 2496 |
chunk := chunk , '''''' |
1545 | 2497 |
]. |
2498 |
||
2499 |
" |
|
2500 |
use parser to construct a parseTree |
|
2501 |
" |
|
2502 |
oldDollarSetting := Parser allowDollarInIdentifier. |
|
2503 |
[ |
|
17586 | 2504 |
Parser allowDollarInIdentifier:true. |
2505 |
aParseTree := Parser parseExpression:chunk. |
|
2506 |
] ensure:[ |
|
2507 |
Parser allowDollarInIdentifier:oldDollarSetting |
|
1545 | 2508 |
]. |
2509 |
||
2510 |
(aParseTree isNil or:[aParseTree == #Error]) ifTrue:[ |
|
17586 | 2511 |
^ nil "seems strange... (could be a comment)" |
1545 | 2512 |
]. |
2513 |
aParseTree isMessage ifFalse:[ |
|
17586 | 2514 |
^ nil "very strange... (whats that ?)" |
1545 | 2515 |
]. |
2516 |
||
2517 |
" |
|
2518 |
ask parser for selector |
|
2519 |
" |
|
2520 |
sel := aParseTree selector. |
|
2521 |
recTree := aParseTree receiver. |
|
2522 |
||
2523 |
" |
|
2524 |
is it a method-change, methodRemove or comment-change ? |
|
2525 |
" |
|
6288 | 2526 |
(#(#'methodsFor:' |
2527 |
#'privateMethodsFor:' |
|
2528 |
#'protectedMethodsFor:' |
|
2529 |
#'publicMethodsFor:' |
|
2530 |
#'removeSelector:' |
|
1545 | 2531 |
#'comment:' |
2532 |
#'primitiveDefinitions:' |
|
2533 |
#'primitiveFunctions:' |
|
2534 |
#'primitiveVariables:' |
|
2535 |
#'renameCategory:to:' |
|
2536 |
#'instanceVariableNames:' |
|
2537 |
) includes:sel) ifTrue:[ |
|
17586 | 2538 |
" |
2539 |
yes, the className is the receiver |
|
2540 |
" |
|
2541 |
(recTree notNil and:[recTree ~~ #Error]) ifTrue:[ |
|
2542 |
isMeta := false. |
|
2543 |
recTree isUnaryMessage ifTrue:[ |
|
2544 |
(recTree selector ~~ #class) ifTrue:[^ nil]. |
|
2545 |
"id class methodsFor:..." |
|
2546 |
recTree := recTree receiver. |
|
2547 |
isMeta := true. |
|
2548 |
]. |
|
2549 |
recTree isPrimary ifTrue:[ |
|
2550 |
name := recTree name. |
|
2551 |
isMeta ifTrue:[ |
|
2552 |
name := name , ' class'. |
|
2553 |
]. |
|
2554 |
aChange className: name. |
|
2555 |
^ name |
|
2556 |
] |
|
2557 |
]. |
|
2558 |
"more strange things" |
|
2559 |
^ nil |
|
1545 | 2560 |
]. |
2561 |
||
2562 |
" |
|
2563 |
is it a change in a class-description ? |
|
2564 |
" |
|
6288 | 2565 |
(('subclass:*' match:sel) |
1545 | 2566 |
or:[('variable*subclass:*' match:sel)]) ifTrue:[ |
17586 | 2567 |
"/ must parse the full changes text, to get |
2568 |
"/ privacy information. |
|
2569 |
||
2570 |
changeStream := self streamForChange:aChange. |
|
2571 |
changeStream notNil ifTrue:[ |
|
2572 |
chunk := changeStream nextChunk. |
|
2573 |
changeStream close. |
|
2574 |
fullParseTree := Parser parseExpression:chunk. |
|
2575 |
(fullParseTree isNil or:[fullParseTree == #Error]) ifTrue:[ |
|
2576 |
fullParseTree := nil |
|
2577 |
]. |
|
2578 |
fullParseTree isMessage ifFalse:[ |
|
2579 |
fullParseTree := nil |
|
2580 |
]. |
|
2581 |
"/ actually, the nil case cannot happen |
|
2582 |
fullParseTree notNil ifTrue:[ |
|
2583 |
aParseTree := fullParseTree. |
|
2584 |
sel := aParseTree selector. |
|
2585 |
]. |
|
2586 |
]. |
|
2587 |
||
2588 |
arg1Tree := aParseTree arg1. |
|
2589 |
(arg1Tree notNil and:[arg1Tree isConstant]) ifTrue:[ |
|
2590 |
name := arg1Tree value asString. |
|
2591 |
||
2592 |
"/ is it a private-class ? |
|
2593 |
('*privateIn:' match:sel) ifTrue:[ |
|
2594 |
ownerTree := aParseTree args last. |
|
2595 |
ownerName := ownerTree name asString. |
|
2596 |
name := ownerName , '::' , name |
|
2597 |
]. |
|
2598 |
aChange className: name. |
|
2599 |
^ name |
|
2600 |
]. |
|
2601 |
"very strange" |
|
2602 |
^ nil |
|
1545 | 2603 |
]. |
2604 |
||
2605 |
" |
|
2606 |
is it a class remove ? |
|
2607 |
" |
|
2608 |
(sel == #removeClass:) ifTrue:[ |
|
17586 | 2609 |
(recTree notNil |
2610 |
and:[recTree ~~ #Error |
|
2611 |
and:[recTree isPrimary |
|
2612 |
and:[recTree name = 'Smalltalk']]]) ifTrue:[ |
|
2613 |
arg1Tree := aParseTree arg1. |
|
2614 |
(arg1Tree notNil and:[arg1Tree isPrimary]) ifTrue:[ |
|
2615 |
name := arg1Tree name. |
|
2616 |
aChange className: name. |
|
2617 |
^ name |
|
2618 |
]. |
|
2619 |
] |
|
1545 | 2620 |
]. |
2621 |
||
2622 |
" |
|
2623 |
is it a method category change ? |
|
2624 |
" |
|
2625 |
((sel == #category:) |
|
2626 |
or:[sel == #privacy:]) ifTrue:[ |
|
17586 | 2627 |
(recTree notNil |
2628 |
and:[recTree ~~ #Error |
|
2629 |
and:[recTree isMessage |
|
2630 |
and:[recTree selector == #compiledMethodAt:]]]) ifTrue:[ |
|
2631 |
isMeta := false. |
|
2632 |
recTree := recTree receiver. |
|
2633 |
recTree isUnaryMessage ifTrue:[ |
|
2634 |
(recTree selector ~~ #class) ifTrue:[^ nil]. |
|
2635 |
"id class " |
|
2636 |
recTree := recTree receiver |
|
2637 |
]. |
|
2638 |
recTree isPrimary ifTrue:[ |
|
2639 |
isMeta ifTrue:[ |
|
2640 |
name := name , ' class'. |
|
2641 |
]. |
|
2642 |
name := recTree name. |
|
2643 |
aChange className: name. |
|
2644 |
^ name |
|
2645 |
] |
|
2646 |
] |
|
1545 | 2647 |
]. |
2648 |
^ nil |
|
17586 | 2649 |
|
2650 |
"Modified: / 17-07-2017 / 10:43:26 / cg" |
|
1545 | 2651 |
! |
2652 |
||
2653 |
newLabel:how |
|
1546 | 2654 |
"sets the label" |
1545 | 2655 |
|
2656 |
how size = 0 ifTrue: [^self window label:self class label]. |
|
1556 | 2657 |
self window label:self class label, ' (', how, ')' |
1545 | 2658 |
! |
2659 |
||
2660 |
readChangesFileInBackground:inBackground |
|
1546 | 2661 |
"reads the changes file, creates a list of header-lines (changeChunks) |
1545 | 2662 |
and a list of chunk-positions (changePositions). |
2663 |
Starting with 2.10.3, the entries are multi-col entries; |
|
10583
e2411142dc0c
added: #classNameAndClassFromNode:
Claus Gittinger <cg@exept.de>
parents:
10247
diff
changeset
|
2664 |
the cols are: |
7957 | 2665 |
1 delta (only if comparing) |
2666 |
'+' -> new method (w.r.t. current state) |
|
2667 |
'-' -> removed method (w.r.t. current state) |
|
2668 |
'?' -> class does not exist currently |
|
2669 |
'=' -> change is same as current methods source |
|
2670 |
2 class/selector |
|
2671 |
3 type of change |
|
2672 |
doit |
|
2673 |
method |
|
2674 |
category change |
|
2675 |
4 timestamp |
|
1545 | 2676 |
|
2677 |
since comparing slows down startup time, it is now disabled by |
|
2678 |
default and can be enabled via a toggle." |
|
2679 |
||
2740
6b8666356abb
oops - dont try to redraw components which are not there
Claus Gittinger <cg@exept.de>
parents:
2250
diff
changeset
|
2680 |
|aStream maxLen i f v| |
1545 | 2681 |
|
2682 |
self valueOfNotReading value: false. |
|
2683 |
self valueOfHavingSelection value: false. |
|
2684 |
self valueOfHavingChangeSelection value: false. |
|
2685 |
||
2686 |
editingClassSource := false. |
|
2687 |
||
2688 |
maxLen := 60. |
|
2689 |
||
2690 |
f := changeFileName asFilename. |
|
2691 |
aStream := f readStream. |
|
2692 |
aStream isNil ifTrue:[^ nil]. |
|
2693 |
||
1653 | 2694 |
self newLabel:(resources string:'updating...'). |
1545 | 2695 |
|
2696 |
i := f info. |
|
10247 | 2697 |
changeFileTimestamp := i modificationTime. |
1545 | 2698 |
|
2699 |
self valueOfReadProgress value: 0. |
|
2740
6b8666356abb
oops - dont try to redraw components which are not there
Claus Gittinger <cg@exept.de>
parents:
2250
diff
changeset
|
2700 |
v := self readProgressIndicator. |
6b8666356abb
oops - dont try to redraw components which are not there
Claus Gittinger <cg@exept.de>
parents:
2250
diff
changeset
|
2701 |
v notNil ifTrue:[v raise]. |
6b8666356abb
oops - dont try to redraw components which are not there
Claus Gittinger <cg@exept.de>
parents:
2250
diff
changeset
|
2702 |
v := self filterLabel. |
6b8666356abb
oops - dont try to redraw components which are not there
Claus Gittinger <cg@exept.de>
parents:
2250
diff
changeset
|
2703 |
v notNil ifTrue:[v label: 'Read:'; redraw]. |
1545 | 2704 |
|
2705 |
self withReadCursorDo:[ |
|
7957 | 2706 |
|myProcess myPriority| |
2707 |
||
2708 |
" |
|
2709 |
this is a time consuming operation (especially, if reading an |
|
2710 |
NFS-mounted directory; therefore lower my priority... |
|
2711 |
" |
|
2712 |
inBackground ifTrue:[ |
|
2713 |
myProcess := Processor activeProcess. |
|
2714 |
myPriority := myProcess priority. |
|
2715 |
myProcess priority:(Processor userBackgroundPriority). |
|
2716 |
]. |
|
2717 |
||
2718 |
[ |
|
2719 |
|excla timeStampInfo lastChange| |
|
2720 |
||
2721 |
excla := aStream class chunkSeparator. |
|
2722 |
||
2723 |
[aStream atEnd] whileFalse:[ |
|
2724 |
|change changeDelta changeString changeType changeCategory |
|
10583
e2411142dc0c
added: #classNameAndClassFromNode:
Claus Gittinger <cg@exept.de>
parents:
10247
diff
changeset
|
2725 |
line s l classAndName changeClass sawExcla category className selector |
7957 | 2726 |
chunkText chunkPos sel oldValue| |
2727 |
||
2728 |
change := Change new. |
|
2729 |
" |
|
2730 |
get a chunk (separated by excla) |
|
2731 |
" |
|
2732 |
oldValue := self valueOfReadProgress value. |
|
2733 |
self valueOfReadProgress value: (((aStream position/aStream size) * 100) rounded). |
|
2740
6b8666356abb
oops - dont try to redraw components which are not there
Claus Gittinger <cg@exept.de>
parents:
2250
diff
changeset
|
2734 |
"/ oldValue ~~ self valueOfReadProgress value |
6b8666356abb
oops - dont try to redraw components which are not there
Claus Gittinger <cg@exept.de>
parents:
2250
diff
changeset
|
2735 |
"/ ifTrue: [self readProgressIndicator redrawEdges;redraw]. |
6b8666356abb
oops - dont try to redraw components which are not there
Claus Gittinger <cg@exept.de>
parents:
2250
diff
changeset
|
2736 |
|
7957 | 2737 |
aStream skipSeparators. |
2738 |
chunkPos := aStream position. |
|
2739 |
||
2740 |
sawExcla := aStream peekFor:excla. |
|
2741 |
chunkText := aStream nextChunk. |
|
2742 |
chunkText notNil ifTrue:[ |
|
2743 |
|index headerLine cls| |
|
2744 |
||
2745 |
(chunkText startsWith:'''---- timestamp ') ifTrue:[ |
|
2746 |
timeStampInfo := (chunkText copyFrom:16 to:(chunkText size - 6)) withoutSpaces. |
|
2747 |
] ifFalse:[ |
|
2748 |
||
2749 |
" |
|
2750 |
only first line is saved in changeChunks... |
|
2751 |
" |
|
2752 |
index := chunkText indexOf:(Character cr). |
|
2753 |
(index ~~ 0) ifTrue:[ |
|
2754 |
chunkText := chunkText copyTo:(index - 1). |
|
2755 |
||
2756 |
"take care for comment changes - must still be a |
|
2757 |
valid expression for classNameOfChange: to work" |
|
2758 |
||
2759 |
(chunkText endsWith:'comment:''') ifTrue:[ |
|
2760 |
chunkText := chunkText , '...''' |
|
2761 |
]. |
|
2762 |
(chunkText endsWith:'primitiveDefinitions:''') ifTrue:[ |
|
2763 |
sel := 'primitiveDefinitions:'. |
|
13846 | 2764 |
chunkText := chunkText copyButLast:1 |
7957 | 2765 |
]. |
2766 |
(chunkText endsWith:'primitiveVariables:''') ifTrue:[ |
|
2767 |
sel := 'primitiveVariables:'. |
|
13846 | 2768 |
chunkText := chunkText copyButLast:1 |
7957 | 2769 |
]. |
2770 |
(chunkText endsWith:'primitiveFunctions:''') ifTrue:[ |
|
2771 |
sel := 'primitiveFunctions:'. |
|
13846 | 2772 |
chunkText := chunkText copyButLast:1 |
7957 | 2773 |
]. |
2774 |
]. |
|
2775 |
||
2776 |
change chunk: chunkText. |
|
2777 |
change position: chunkPos. |
|
2778 |
lastChange notNil ifTrue: [lastChange lastPosition: chunkPos - 1]. |
|
2779 |
lastChange := change. |
|
2780 |
change timeStamp: timeStampInfo. |
|
2781 |
change followUp: false. |
|
2782 |
headerLine := nil. |
|
2783 |
changeDelta := ' '. |
|
2784 |
||
2785 |
sawExcla ifFalse:[ |
|
2786 |
(chunkText startsWith:'''---- snap') ifTrue:[ |
|
2787 |
changeType := ''. |
|
2788 |
headerLine := chunkText. |
|
2789 |
changeString := (chunkText contractTo:maxLen). |
|
2790 |
timeStampInfo := nil. |
|
2791 |
] ifFalse:[ |
|
2792 |
||
2793 |
|p cls| |
|
2794 |
||
2795 |
headerLine := chunkText , ' (doIt)'. |
|
2796 |
||
2797 |
" |
|
2798 |
first, assume doIt - then lets have a more detailed look... |
|
2799 |
" |
|
2800 |
((chunkText startsWith:'''---- file') |
|
2801 |
or:[(chunkText startsWith:'''---- check')]) ifTrue:[ |
|
2802 |
changeType := ''. |
|
2803 |
timeStampInfo := nil. |
|
2804 |
] ifFalse:[ |
|
2805 |
changeType := 'doIt'. |
|
2806 |
]. |
|
2807 |
changeString := (chunkText contractTo:maxLen). |
|
2808 |
||
2809 |
p := Parser parseExpression:chunkText inNameSpace:Smalltalk. |
|
2810 |
(p notNil |
|
2811 |
and:[p ~~ #Error |
|
2812 |
and:[p isMessage]]) ifTrue:[ |
|
2813 |
sel := p selector. |
|
2814 |
]. |
|
2815 |
(sel == #removeSelector:) ifTrue:[ |
|
10583
e2411142dc0c
added: #classNameAndClassFromNode:
Claus Gittinger <cg@exept.de>
parents:
10247
diff
changeset
|
2816 |
classAndName := self classNameAndClassFromNode:p. |
e2411142dc0c
added: #classNameAndClassFromNode:
Claus Gittinger <cg@exept.de>
parents:
10247
diff
changeset
|
2817 |
cls := classAndName key. changeClass := classAndName value. |
7957 | 2818 |
sel := (p args at:1) evaluate. |
2819 |
||
2820 |
DeltaInfoColumn ifTrue:[ |
|
10247 | 2821 |
(changeClass isNil or:[changeClass isLoaded not]) ifTrue:[ |
7957 | 2822 |
changeDelta := '?' |
2823 |
] ifFalse:[ |
|
2824 |
(changeClass implements:sel asSymbol) ifTrue:[ |
|
2825 |
changeDelta := '-'. |
|
2826 |
] |
|
2827 |
] |
|
2828 |
]. |
|
2829 |
changeType := 'remove'. |
|
2830 |
changeString := self contractClass:cls selector:sel to:maxLen. |
|
2831 |
className := cls. |
|
2832 |
selector := sel. |
|
2833 |
]. |
|
2834 |
(p notNil and:[p ~~ #Error |
|
2835 |
and:[p isMessage |
|
2836 |
and:[p receiver isMessage |
|
2837 |
and:[p receiver selector == #compiledMethodAt:]]]]) ifTrue:[ |
|
10583
e2411142dc0c
added: #classNameAndClassFromNode:
Claus Gittinger <cg@exept.de>
parents:
10247
diff
changeset
|
2838 |
classAndName := self classNameAndClassFromNode:p receiver. |
e2411142dc0c
added: #classNameAndClassFromNode:
Claus Gittinger <cg@exept.de>
parents:
10247
diff
changeset
|
2839 |
cls := classAndName key. changeClass := classAndName value. |
7957 | 2840 |
(sel == #category:) ifTrue:[ |
2841 |
sel := (p receiver args at:1) evaluate. |
|
2842 |
changeType := '(category change)'. |
|
2843 |
changeString := self contractClass:cls selector:sel to:maxLen. |
|
2844 |
]. |
|
2845 |
(sel == #privacy:) ifTrue:[ |
|
2846 |
sel := (p receiver args at:1) evaluate. |
|
2847 |
changeType := 'privacy change'. |
|
2848 |
changeString := self contractClass:cls selector:sel to:maxLen. |
|
2849 |
]. |
|
2850 |
className := cls. |
|
2851 |
selector := sel. |
|
2852 |
]. |
|
2853 |
(#(#'subclass:' |
|
2854 |
#'variableSubclass:' |
|
2855 |
#'variableByteSubclass:' |
|
2856 |
#'variableWordSubclass:' |
|
2857 |
#'variableLongSubclass:' |
|
2858 |
#'variableFloatSubclass:' |
|
2859 |
#'variableDoubleSubclass:' |
|
2860 |
#'primitiveDefinitions:' |
|
2861 |
#'primitiveFunctions:' |
|
2862 |
#'primitiveVariables:' |
|
2863 |
) includes:sel) ifTrue:[ |
|
2864 |
changeType := 'class definition'. |
|
2865 |
]. |
|
2866 |
] |
|
2867 |
] ifTrue:[ |
|
10247 | 2868 |
|done first p className cls text methodPos| |
7957 | 2869 |
|
2870 |
" |
|
2871 |
method definitions actually consist of |
|
2872 |
two (or more) chunks; skip next chunk(s) |
|
2873 |
up to an empty one. |
|
2874 |
The system only writes one chunk, |
|
2875 |
and we cannot handle more in this ChangesBrowser.... |
|
2876 |
" |
|
10247 | 2877 |
className := nil. |
7957 | 2878 |
p := Parser parseExpression:chunkText inNameSpace:Smalltalk. |
2879 |
||
2880 |
(p notNil and:[p ~~ #Error]) ifTrue:[ |
|
2881 |
sel := p selector. |
|
2882 |
(sel == #methodsFor:) ifTrue:[ |
|
10583
e2411142dc0c
added: #classNameAndClassFromNode:
Claus Gittinger <cg@exept.de>
parents:
10247
diff
changeset
|
2883 |
classAndName := self classNameAndClassFromNode:p. |
e2411142dc0c
added: #classNameAndClassFromNode:
Claus Gittinger <cg@exept.de>
parents:
10247
diff
changeset
|
2884 |
className := classAndName key. changeClass := classAndName value. |
7957 | 2885 |
category := (p args at:1) evaluate. |
2886 |
]. |
|
2887 |
]. |
|
2888 |
||
2889 |
done := false. |
|
2890 |
first := true. |
|
2891 |
[done] whileFalse:[ |
|
2892 |
||
2893 |
changeDelta := ' '. |
|
2894 |
methodPos := aStream position. |
|
2895 |
||
2896 |
text := aStream nextChunk. |
|
2897 |
text isNil ifTrue:[ |
|
2898 |
done := true |
|
2899 |
] ifFalse:[ |
|
2900 |
done := text isEmpty |
|
2901 |
]. |
|
2902 |
done ifFalse:[ |
|
2903 |
first ifFalse:[ |
|
2904 |
change := Change new. |
|
2905 |
change chunk: chunkText. |
|
2906 |
change string:changeString. |
|
2907 |
change position: methodPos. |
|
10247 | 2908 |
change className: className. |
7957 | 2909 |
lastChange notNil ifTrue: [lastChange lastPosition: methodPos - 1]. |
2910 |
lastChange := change. |
|
2911 |
change timeStamp: timeStampInfo. |
|
2912 |
change followUp: true. |
|
2913 |
editingClassSource := true. |
|
2914 |
]. |
|
2915 |
||
2916 |
first := false. |
|
2917 |
" |
|
2918 |
try to find the selector |
|
2919 |
" |
|
2920 |
sel := nil. |
|
10247 | 2921 |
className notNil ifTrue:[ |
7957 | 2922 |
p := Parser |
2923 |
parseMethodSpecification:text |
|
2924 |
in:nil |
|
2925 |
ignoreErrors:true |
|
2926 |
ignoreWarnings:true. |
|
2927 |
(p notNil and:[p ~~ #Error]) ifTrue:[ |
|
2928 |
sel := p selector. |
|
2929 |
] |
|
2930 |
]. |
|
2931 |
||
2932 |
sel isNil ifTrue:[ |
|
2933 |
changeString := (chunkText contractTo:maxLen). |
|
2934 |
changeType := 'change'. |
|
2935 |
headerLine := chunkText , ' (change)'. |
|
2936 |
] ifFalse:[ |
|
10247 | 2937 |
changeString := self contractClass:className selector:sel to:maxLen. |
7957 | 2938 |
changeType := 'method definition'. |
2939 |
changeCategory := category. |
|
10247 | 2940 |
headerLine := className , ' ' , sel , ' ' , '(change category: ''' , category , ''')'. |
7957 | 2941 |
change selector:sel. |
2942 |
]. |
|
2943 |
||
2944 |
DeltaInfoColumn ifTrue:[ |
|
2945 |
changeClass isNil ifFalse:[ |
|
10583
e2411142dc0c
added: #classNameAndClassFromNode:
Claus Gittinger <cg@exept.de>
parents:
10247
diff
changeset
|
2946 |
cls := changeClass theNonMetaclass |
7957 | 2947 |
]. |
2948 |
||
10247 | 2949 |
(changeClass isNil or:[cls isLoaded not]) ifTrue:[ |
7957 | 2950 |
changeDelta := '?' |
2951 |
] ifFalse:[ |
|
2952 |
(changeClass implements:sel asSymbol) ifFalse:[ |
|
2953 |
changeDelta := '+'. |
|
2954 |
] ifTrue:[ |
|
2955 |
|m currentText t1 t2| |
|
2956 |
||
2957 |
m := changeClass compiledMethodAt:sel asSymbol. |
|
2958 |
currentText := m source. |
|
2959 |
currentText notNil ifTrue:[ |
|
2960 |
text asString = currentText asString ifTrue:[ |
|
2961 |
changeDelta := '=' |
|
2962 |
] ifFalse:[ |
|
2963 |
t1 := currentText asCollectionOfLines collect:[:s | s withTabsExpanded]. |
|
2964 |
t2 := text asCollectionOfLines collect:[:s | s withTabsExpanded]. |
|
2965 |
t1 = t2 ifTrue:[ |
|
2966 |
changeDelta := '=' |
|
2967 |
] |
|
2968 |
] |
|
2969 |
] |
|
2970 |
] |
|
2971 |
] |
|
2972 |
]. |
|
2973 |
change delta:changeDelta. |
|
2974 |
change string:changeString. |
|
2975 |
change type:changeType. |
|
2976 |
change category: changeCategory. |
|
2977 |
change timeStamp:timeStampInfo. |
|
2978 |
changes add:change. |
|
2979 |
]. |
|
2980 |
changeString := nil. |
|
2981 |
headerLine := nil. |
|
2982 |
||
2983 |
] |
|
2984 |
]. |
|
2985 |
changeString notNil ifTrue:[ |
|
2986 |
change delta:changeDelta. |
|
2987 |
change string:changeString. |
|
2988 |
change type:changeType. |
|
2989 |
change timeStamp:timeStampInfo. |
|
2990 |
changes add:change. |
|
2991 |
||
2992 |
] ifFalse:[ |
|
2993 |
headerLine notNil ifTrue:[ |
|
2994 |
changes add: change. |
|
2995 |
] |
|
2996 |
] |
|
2997 |
] |
|
2998 |
]. |
|
2999 |
change lastPosition: aStream position. |
|
3000 |
]. |
|
3001 |
modified := false. |
|
3002 |
||
17586 | 3003 |
] ensure:[ |
7957 | 3004 |
aStream close. |
3005 |
inBackground ifTrue:[myProcess priority:myPriority]. |
|
3006 |
]. |
|
1545 | 3007 |
]. |
10247 | 3008 |
changes removeLast. |
1545 | 3009 |
self setChangeList. |
3010 |
self valueOfNotReading value: true. |
|
3011 |
self filterField raise. |
|
3012 |
self filterLabel label: 'Filter:'. |
|
3013 |
||
1653 | 3014 |
self checkIfFileHasChanged. |
3015 |
||
10247 | 3016 |
"Modified: / 16-11-2010 / 15:52:54 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
17586 | 3017 |
"Modified: / 17-07-2017 / 10:43:38 / cg" |
1545 | 3018 |
! |
3019 |
||
1546 | 3020 |
selectorOfMethodChange:aChange |
3021 |
"returns the selector of the method change, or nil if it is not a method change" |
|
1545 | 3022 |
|
3023 |
|source parser sel| |
|
3024 |
||
1546 | 3025 |
source := self sourceOfMethodChange:aChange. |
1545 | 3026 |
source isNil ifTrue:[^ nil]. |
3027 |
||
6288 | 3028 |
parser := Parser |
3029 |
parseMethod:source |
|
3030 |
in:nil |
|
3031 |
ignoreErrors:true |
|
2250 | 3032 |
ignoreWarnings:true. |
1545 | 3033 |
|
3034 |
(parser notNil and:[parser ~~ #Error]) ifTrue:[ |
|
2250 | 3035 |
sel := parser selector. |
1545 | 3036 |
]. |
3037 |
^ sel |
|
3038 |
! |
|
3039 |
||
3040 |
setChangeList |
|
1546 | 3041 |
"sets the list of changes into the list for the table by evaluating filterCompletionBlock" |
3042 |
||
3043 |
self unselectChange. |
|
3044 |
filterCompletionBlock value: self valueOfFilter value. |
|
1545 | 3045 |
! |
3046 |
||
1546 | 3047 |
silentDeleteChange:aChange |
3048 |
"delete aChange do not update changeListView" |
|
1545 | 3049 |
|
6288 | 3050 |
modified := true. |
1545 | 3051 |
|
1546 | 3052 |
changes remove:aChange |
1545 | 3053 |
! |
3054 |
||
3055 |
silentDeleteChangesFor:aClassName from:start to:stop |
|
1546 | 3056 |
"deletes changes for aChange in the range [start,stop] |
3057 |
and returns the number of the deleted changes" |
|
3058 |
||
3059 |
|index numDeleted clsName| |
|
1545 | 3060 |
|
3061 |
numDeleted := 0. |
|
6288 | 3062 |
index := stop. |
1546 | 3063 |
[index >= start] whileTrue: |
6288 | 3064 |
[ |
2250 | 3065 |
((clsName := self classNameOfChange:(self listOfChanges at: index)) notNil and: |
3066 |
[(clsName = aClassName or: [PrivateAsSeparate not and: [(clsName upTo: $:) = aClassName]])]) |
|
3067 |
ifTrue: |
|
6288 | 3068 |
[ |
2250 | 3069 |
self silentDeleteChange:(self listOfChanges at: index). |
3070 |
numDeleted := numDeleted + 1. |
|
3071 |
]. |
|
3072 |
index := index - 1 |
|
1545 | 3073 |
]. |
3074 |
^ numDeleted |
|
3075 |
! |
|
3076 |
||
1546 | 3077 |
sourceOfMethodChange:aChange |
3078 |
"returns the source code of the method change, or nil if it is not a method change." |
|
1545 | 3079 |
|
3080 |
|aStream chunk sawExcla parseTree sourceChunk| |
|
3081 |
||
6288 | 3082 |
aStream := self streamForChange:aChange. |
1545 | 3083 |
aStream isNil ifTrue:[^ nil]. |
3084 |
||
1546 | 3085 |
aChange followUp ifFalse:[ |
2250 | 3086 |
sawExcla := aStream peekFor:(aStream class chunkSeparator). |
3087 |
chunk := aStream nextChunk. |
|
1545 | 3088 |
] ifTrue:[ |
2250 | 3089 |
chunk := aChange chunk. |
3090 |
sawExcla := true. |
|
1545 | 3091 |
]. |
3092 |
||
3093 |
sawExcla ifTrue:[ |
|
2250 | 3094 |
parseTree := Parser parseExpression:chunk. |
3095 |
(parseTree notNil and:[parseTree isMessage]) ifTrue:[ |
|
3096 |
(parseTree selector == #methodsFor:) ifTrue:[ |
|
3097 |
sourceChunk := aStream nextChunk. |
|
3098 |
] |
|
3099 |
]. |
|
1545 | 3100 |
]. |
3101 |
aStream close. |
|
3102 |
^ sourceChunk |
|
3103 |
! |
|
3104 |
||
1546 | 3105 |
streamForChange:aChange |
3106 |
"returns the stream for aChange" |
|
1545 | 3107 |
|
3108 |
|aStream| |
|
3109 |
||
3110 |
aStream := FileStream readonlyFileNamed:changeFileName. |
|
3111 |
aStream isNil ifTrue:[^ nil]. |
|
1546 | 3112 |
aStream position:aChange position. |
1545 | 3113 |
^ aStream |
3114 |
||
3115 |
! |
|
3116 |
||
3117 |
unselectChange |
|
1546 | 3118 |
"unselects the current change" |
3119 |
||
3120 |
self selectionOfChange value: nil. |
|
3121 |
self valueOfChangeText value: nil |
|
3122 |
||
1545 | 3123 |
! |
3124 |
||
3125 |
withSelectedChangeDo:aBlock |
|
3126 |
"just a helper, check for a selected change and evaluate aBlock |
|
3127 |
with busy cursor" |
|
3128 |
||
3129 |
|change| |
|
3130 |
||
6288 | 3131 |
(change := self selectionOfChange value) notNil |
1545 | 3132 |
ifTrue:[ |
2250 | 3133 |
self withExecuteCursorDo:[aBlock value:change] |
1545 | 3134 |
] |
3135 |
! ! |
|
3136 |
||
16666 | 3137 |
!NewChangesBrowser methodsFor:'startup & release'! |
1545 | 3138 |
|
3139 |
closeRequest |
|
1546 | 3140 |
"asks for saving before closing" |
1545 | 3141 |
|
5395
ff5fc88d4a4b
Use 'Discard Changes and Exit' instead of 'Forget it...'
Stefan Vogel <sv@exept.de>
parents:
3220
diff
changeset
|
3142 |
self valueOfNotSaving value ifFalse: [^ self]. |
1545 | 3143 |
|
10247 | 3144 |
modified == true ifTrue:[ |
7957 | 3145 |
(OptionBox |
3146 |
request:(resources string:'Change list was modified. Exit anyway?') withCRs |
|
3147 |
label:'Changes Browser' |
|
3148 |
image:(WarningBox iconBitmap) |
|
3149 |
buttonLabels:(resources array:#('Cancel' 'Discard Modifications and Exit')) |
|
3150 |
values:#(abort ignore) |
|
3151 |
default:#save |
|
3152 |
) == #abort ifTrue:[^ self]. |
|
1545 | 3153 |
]. |
3154 |
super closeRequest |
|
1656 | 3155 |
|
10247 | 3156 |
"Modified: / 20-05-1998 / 03:53:47 / cg" |
3157 |
"Modified: / 08-04-2011 / 10:22:59 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
1545 | 3158 |
! |
3159 |
||
3160 |
postOpenWith:aBuilder |
|
1546 | 3161 |
"starts reading the changes from the file and |
3162 |
builds entryCompletionBlock for the filterField before opening" |
|
1545 | 3163 |
|
3164 |
super postOpenWith:aBuilder. |
|
3165 |
||
6288 | 3166 |
builder namedComponents do: |
3167 |
[:aView| |
|
7957 | 3168 |
aView allSubViewsDo: |
3169 |
[:v| |
|
3170 |
v redraw |
|
3171 |
] |
|
1545 | 3172 |
]. |
3173 |
||
3174 |
autoUpdateBlock := [self checkIfFileHasChanged]. |
|
6288 | 3175 |
Processor addTimedBlock:autoUpdateBlock afterSeconds:5. |
1545 | 3176 |
self updateInfoLabel. |
3177 |
||
3178 |
self filterField entryCompletionBlock: |
|
3179 |
(filterCompletionBlock := [:value| |
|
7957 | 3180 |
|filter filters i changesCopy| |
3181 |
self unselectChange. |
|
3182 |
filter := self filterField contents. |
|
3183 |
(filters := filter asArrayOfSubstrings) size > 0 ifTrue:[ |
|
3184 |
changesCopy := changes copy. |
|
3185 |
i := 0. |
|
3186 |
filters do:[:filter| |
|
3187 |
i := i + 1. |
|
3188 |
changesCopy contents: |
|
3189 |
(changesCopy select: [:row| |
|
3190 |
filter match: (row string asArrayOfSubstrings at: i ifAbsent: [''''])]) |
|
3191 |
]. |
|
3192 |
self listOfChanges contents: changesCopy |
|
3193 |
] ifFalse:[ |
|
3194 |
self listOfChanges contents: changes |
|
3195 |
]. |
|
3196 |
self autoSelectLast. |
|
1546 | 3197 |
]). |
3198 |
||
1771
6d6c2bde9615
dont catch halts and breakpoints while reading;
Claus Gittinger <cg@exept.de>
parents:
1712
diff
changeset
|
3199 |
Object errorSignal handle: [:ex | |
7957 | 3200 |
ex signal == HaltSignal ifTrue:[ |
3201 |
ex reject |
|
3202 |
]. |
|
3203 |
ex signal == MessageTracer breakpointSignal ifTrue:[ |
|
3204 |
ex reject |
|
3205 |
]. |
|
3206 |
self warn:'Error while reading changes file:\\' , ex errorString. |
|
1771
6d6c2bde9615
dont catch halts and breakpoints while reading;
Claus Gittinger <cg@exept.de>
parents:
1712
diff
changeset
|
3207 |
] do: [ |
7957 | 3208 |
self readChangesFileInBackground:true |
1771
6d6c2bde9615
dont catch halts and breakpoints while reading;
Claus Gittinger <cg@exept.de>
parents:
1712
diff
changeset
|
3209 |
]. |
6d6c2bde9615
dont catch halts and breakpoints while reading;
Claus Gittinger <cg@exept.de>
parents:
1712
diff
changeset
|
3210 |
|
6d6c2bde9615
dont catch halts and breakpoints while reading;
Claus Gittinger <cg@exept.de>
parents:
1712
diff
changeset
|
3211 |
"Modified: / 30.7.1998 / 11:37:51 / cg" |
1545 | 3212 |
! |
3213 |
||
3214 |
uninitialize |
|
1546 | 3215 |
"removes the autoUpdateBlock from the Processor and myself from the ObjectMemory" |
1545 | 3216 |
|
3217 |
Processor removeTimedBlock:autoUpdateBlock. |
|
3218 |
ObjectMemory removeDependent:self |
|
3219 |
! ! |
|
3220 |
||
3221 |
!NewChangesBrowser methodsFor:'user actions'! |
|
3222 |
||
3223 |
doApply |
|
1546 | 3224 |
"applies the selected change" |
1545 | 3225 |
|
3226 |
self withSelectedChangeDo:[:change| |
|
2250 | 3227 |
skipSignal := nil. |
3228 |
self applyChange:change. |
|
3229 |
self autoSelectChange: (self listOfChanges at: (self listOfChanges indexOf: change) + 1 ifAbsent: [^self autoSelectLast]) |
|
1545 | 3230 |
] |
3231 |
! |
|
3232 |
||
3233 |
doApplyAll |
|
1546 | 3234 |
"applies all changes" |
1545 | 3235 |
|
3236 |
self withExecuteCursorDo:[ |
|
2250 | 3237 |
|change| |
3238 |
self unselectChange. |
|
3239 |
skipSignal isNil ifTrue:[skipSignal := Signal new]. |
|
3240 |
1 to:self listOfChanges size do:[:changeNr | |
|
3241 |
self selectionOfChange value:(change := self listOfChanges at: changeNr). |
|
3242 |
self applyChange:change |
|
3243 |
]. |
|
3244 |
self autoSelectLast |
|
1545 | 3245 |
] |
3246 |
||
3247 |
! |
|
3248 |
||
1546 | 3249 |
doApplyAllForClass |
3250 |
"applies all changes having the same class like the selected one" |
|
3251 |
||
3252 |
self doApplyForClassToEndFrom: 1 |
|
3253 |
||
3254 |
||
3255 |
! |
|
3256 |
||
1545 | 3257 |
doApplyForClassToEnd |
1546 | 3258 |
"applies all changes having the same class like the selected one from the selected to the end" |
3259 |
||
3260 |
self doApplyForClassToEndFrom: (self listOfChanges indexOf: self selectionOfChange value) |
|
3261 |
! |
|
3262 |
||
3263 |
doApplyForClassToEndFrom: start |
|
3264 |
"applies changes with same class like the selected one from start to end" |
|
1545 | 3265 |
|
3266 |
self withSelectedChangeDo:[:change| |
|
2250 | 3267 |
|classNameToApply thisClassName lastChange change2| |
6288 | 3268 |
(classNameToApply := self classNameOfChange:change) notNil |
2250 | 3269 |
ifTrue: |
6288 | 3270 |
[ |
2250 | 3271 |
self unselectChange. |
3272 |
skipSignal isNil ifTrue:[skipSignal := Signal new]. |
|
3273 |
start to:self listOfChanges size do: |
|
3274 |
[:changeNr| |
|
3275 |
change2 := self listOfChanges at: changeNr. |
|
3276 |
((thisClassName := self classNameOfChange:change2) notNil and: |
|
3277 |
[thisClassName = classNameToApply or: |
|
3278 |
[PrivateAsSeparate not and: [(thisClassName upTo: $:) = classNameToApply]]]) |
|
3279 |
ifTrue: |
|
6288 | 3280 |
[ |
2250 | 3281 |
self selectionOfChange value: change2. |
3282 |
self applyChange:change2. |
|
3283 |
lastChange := change2 |
|
3284 |
] |
|
3285 |
]. |
|
3286 |
self autoSelectChange:lastChange. |
|
3287 |
] |
|
1545 | 3288 |
] |
3289 |
||
3290 |
! |
|
3291 |
||
3292 |
doApplyFromLastSnapshot |
|
1546 | 3293 |
"applies all changes made since the last snapshot" |
1545 | 3294 |
|
3295 |
self autoSelectLast. |
|
3296 |
(self doFindSnapshot: 'last') ifTrue: [self doApplyToEnd] |
|
3297 |
! |
|
3298 |
||
3299 |
doApplyToEnd |
|
1546 | 3300 |
"applies all changes from selected one to be end" |
1545 | 3301 |
|
3302 |
self withSelectedChangeDo:[:change| |
|
2250 | 3303 |
self unselectChange. |
3304 |
skipSignal isNil ifTrue:[skipSignal := Signal new]. |
|
3305 |
(self listOfChanges indexOf: change) to: self listOfChanges size do:[:changeNr| |
|
3306 |
self selectionOfChange value:(self listOfChanges at: changeNr). |
|
3307 |
self applyChange:(self listOfChanges at: changeNr) |
|
3308 |
]. |
|
3309 |
self autoSelectChange:self listOfChanges last |
|
1545 | 3310 |
] |
3311 |
||
3312 |
! |
|
3313 |
||
3314 |
doBrowseClass |
|
1546 | 3315 |
"opens a System Browser on the class of a change (and selector)" |
1545 | 3316 |
|
3317 |
|className cls isMeta| |
|
3318 |
||
3319 |
className := self fullClassNameOfChange:self selectionOfChange value. |
|
3320 |
className notNil ifTrue:[ |
|
6288 | 3321 |
isMeta := false. |
3322 |
(className endsWith:' class') ifTrue:[ |
|
13846 | 3323 |
className := className copyButLast:6. |
6288 | 3324 |
isMeta := true. |
3325 |
]. |
|
3326 |
(cls := Smalltalk classNamed:className) notNil ifTrue:[ |
|
3327 |
isMeta ifTrue:[cls := cls class]. |
|
3328 |
cls browserClass |
|
3329 |
openInClass:cls |
|
3330 |
selector:(self selectorOfMethodChange:self selectionOfChange value) |
|
3331 |
] |
|
1545 | 3332 |
] |
3333 |
||
3220 | 3334 |
"Modified: / 26.9.2001 / 17:35:50 / cg" |
1545 | 3335 |
! |
3336 |
||
3337 |
doCompare |
|
1546 | 3338 |
"compares a change with the current system version" |
1545 | 3339 |
|
3340 |
|change| |
|
3341 |
||
3342 |
(change := self selectionOfChange value) notNil ifTrue:[ |
|
2250 | 3343 |
self withExecuteCursorDo:[self compareChange:change] |
1545 | 3344 |
]. |
3345 |
self newLabel:'' |
|
3346 |
! |
|
3347 |
||
3348 |
doCompress |
|
1546 | 3349 |
"compresses the changes, i.e. replaces multiple changes by the last change" |
1545 | 3350 |
|
3351 |
|changesSizeBefore| |
|
1546 | 3352 |
(changesSizeBefore := changes size) == 0 ifTrue: [^self warn: 'Nothing to compress!!']. |
1545 | 3353 |
self setChangeList. |
3354 |
self unselectChange. |
|
3355 |
self compressForClass:nil. |
|
6288 | 3356 |
self setChangeList. |
1545 | 3357 |
self updateInfoLabel. |
3358 |
||
6288 | 3359 |
self information: |
2250 | 3360 |
'Compression Rate: ', (((changesSizeBefore - changes size)/changesSizeBefore) * 100) rounded printString, '%\' withCRs, |
3361 |
'Obsolete Changes: ', (changesSizeBefore - changes size) printString, ' from ', changesSizeBefore printString |
|
1545 | 3362 |
|
3363 |
||
3364 |
||
3365 |
||
3366 |
! |
|
3367 |
||
3368 |
doCompressForClass |
|
1546 | 3369 |
"compresses changes for the selected class. |
1545 | 3370 |
this replaces multiple method-changes by the last (i.e. the most recent) change." |
3371 |
||
3372 |
self withSelectedChangeDo:[:change| |
|
2250 | 3373 |
| classNameToCompress | |
3374 |
||
3375 |
(classNameToCompress := self classNameOfChange:change) notNil ifTrue:[ |
|
3376 |
self compressForClass:classNameToCompress. |
|
3377 |
filterCompletionBlock value: self valueOfFilter value. |
|
3378 |
self autoSelectLast |
|
3379 |
] |
|
1545 | 3380 |
] |
3381 |
||
3382 |
! |
|
3383 |
||
3384 |
doDelete |
|
1546 | 3385 |
"deletes the selected change" |
1545 | 3386 |
|
3387 |
|change selectionIndex| |
|
3388 |
||
3389 |
(change := self selectionOfChange value) notNil ifTrue:[ |
|
2250 | 3390 |
selectionIndex := self listOfChanges indexOf: change. |
3391 |
self unselectChange. |
|
3392 |
self silentDeleteChange:change. |
|
3393 |
self listOfChanges remove:change. |
|
3394 |
self autoSelectOrEnd: (self listOfChanges at: selectionIndex ifAbsent: [nil]). |
|
1545 | 3395 |
] |
1546 | 3396 |
! |
3397 |
||
3398 |
doDeleteAll |
|
3399 |
"deletes all changes" |
|
3400 |
||
3401 |
self deleteChangesFrom:1 to: self listOfChanges size. |
|
3402 |
self autoSelectOrEnd: nil |
|
3403 |
||
3404 |
! |
|
3405 |
||
3406 |
doDeleteAllForClass |
|
3407 |
"deletes all changes having the same class like the selected one" |
|
3408 |
||
3409 |
self doDeleteForClassToEndFrom: 1 |
|
1545 | 3410 |
|
3411 |
! |
|
3412 |
||
3413 |
doDeleteForClassToEnd |
|
1546 | 3414 |
"deletes all changes having the same class like the selected one from the selected to the end" |
3415 |
||
3416 |
self withSelectedChangeDo:[:change| |
|
2250 | 3417 |
self doDeleteForClassToEndFrom: (self listOfChanges indexOf: change) |
1546 | 3418 |
] |
3419 |
||
3420 |
||
3421 |
! |
|
3422 |
||
3423 |
doDeleteForClassToEndFrom: start |
|
3424 |
"deletes changes with same class like the selected one from start to end" |
|
1545 | 3425 |
|
3426 |
self withSelectedChangeDo:[:change| |
|
2250 | 3427 |
|classNameToDelete| |
3428 |
(classNameToDelete := self classNameOfChange:change) notNil ifTrue:[ |
|
3429 |
self unselectChange. |
|
6288 | 3430 |
self silentDeleteChangesFor:classNameToDelete |
2250 | 3431 |
from:start |
3432 |
to:self listOfChanges size. |
|
3433 |
self setChangeList. |
|
3434 |
self autoSelectOrEnd: nil |
|
3435 |
] |
|
1546 | 3436 |
]. |
3437 |
||
1545 | 3438 |
|
3439 |
||
3440 |
! |
|
3441 |
||
3442 |
doDeleteToEnd |
|
1546 | 3443 |
"deletes all changes from selected one to be end" |
1545 | 3444 |
|
3445 |
|changeNr| |
|
3446 |
||
3447 |
changeNr := (self listOfChanges indexOf: self selectionOfChange value). |
|
3448 |
changeNr ~~ 0 ifTrue:[ |
|
2250 | 3449 |
self deleteChangesFrom:changeNr to: self listOfChanges size. |
3450 |
self unselectChange. |
|
3451 |
self autoSelectOrEnd: nil |
|
1545 | 3452 |
] |
3453 |
||
3454 |
! |
|
3455 |
||
1568 | 3456 |
doFilter: aFilterString |
3457 |
"filter the changes with aFilterString" |
|
3458 |
||
1569 | 3459 |
self selectionOfChange value: nil. |
1568 | 3460 |
self valueOfFilter value: aFilterString withoutNotifying: self. |
3461 |
self valueOfFilter changed. |
|
3462 |
self autoSelectLast |
|
3463 |
! |
|
3464 |
||
1644 | 3465 |
doFilterSourceType: aFilterStringTypeString |
3466 |
"filter the source changes with aFilterStringTypeString" |
|
1568 | 3467 |
|
1569 | 3468 |
self selectionOfChange value: nil. |
3469 |
self listOfChanges contents: #(). |
|
3470 |
self valueOfFilter value: '' withoutNotifying: self. |
|
1644 | 3471 |
self listOfChanges contents: (changes select: [:change| change type = 'source' and: [aFilterStringTypeString match: change string]]). |
3472 |
self autoSelectLast |
|
1568 | 3473 |
|
3474 |
! |
|
3475 |
||
3476 |
doFilterType: aFilterTypeString |
|
3477 |
"filter the changes with aFilterTypeString" |
|
3478 |
||
1569 | 3479 |
self selectionOfChange value: nil. |
3480 |
self valueOfFilter value: '' withoutNotifying: self. |
|
1568 | 3481 |
self listOfChanges contents: (changes select: [:change| change type = aFilterTypeString]). |
3482 |
self autoSelectLast |
|
3483 |
||
3484 |
! |
|
3485 |
||
1545 | 3486 |
doFindSnapshot: what |
7957 | 3487 |
"finds the last made snapshot and selects it. what is one of last, prvious or next" |
1545 | 3488 |
|
1887 | 3489 |
|snapshotNr snapshotFound| |
3490 |
||
7957 | 3491 |
(self listOfChanges contains: [:change| change type = 'image']) ifFalse: [ |
3492 |
self warn: 'No snapshot found!!'. |
|
3493 |
^ false. |
|
3494 |
]. |
|
1545 | 3495 |
|
3496 |
self withSelectedChangeDo:[:change| |
|
7957 | 3497 |
what = 'last' ifTrue:[ |
3498 |
snapshotNr := self listOfChanges size+1. |
|
3499 |
] ifFalse:[ |
|
3500 |
snapshotNr := self listOfChanges indexOf: change. |
|
3501 |
]. |
|
3502 |
||
3503 |
snapshotFound := false. |
|
3504 |
[snapshotNr > 0 and: [snapshotFound not]] whileTrue:[ |
|
3505 |
(what = 'last' or:[what = 'previous']) ifTrue:[ |
|
3506 |
snapshotNr := snapshotNr - 1. |
|
3507 |
snapshotNr == 0 ifTrue: [snapshotNr := self listOfChanges size]. |
|
3508 |
] ifFalse:[ |
|
3509 |
snapshotNr := snapshotNr + 1. |
|
3510 |
snapshotNr > self listOfChanges size ifTrue: [snapshotNr := 1]. |
|
3511 |
]. |
|
3512 |
(self listOfChanges at: snapshotNr ifAbsent: [^self autoSelectChange: (what = 'last' ifTrue: [self listOfChanges last] ifFalse: [self listOfChanges first])]) type = 'image' |
|
3513 |
ifTrue:[ |
|
3514 |
snapshotFound := true. |
|
3515 |
self autoSelectChange:(self listOfChanges at: snapshotNr) |
|
3516 |
] |
|
3517 |
] |
|
1887 | 3518 |
]. |
3519 |
||
7957 | 3520 |
^ snapshotFound |
1545 | 3521 |
! |
3522 |
||
1556 | 3523 |
doLoad |
1546 | 3524 |
"opens a dialog for loading changes from a file" |
1545 | 3525 |
|
3526 |
|fileName| |
|
3527 |
(fileName := |
|
10247 | 3528 |
" |
3529 |
FileSelectionBrowser |
|
3530 |
request: 'Load Changes List' |
|
3531 |
fileName: changeFileName |
|
3532 |
withFileFilters: #('c*'))" |
|
3533 |
Dialog |
|
3534 |
requestFileName:'Load Changes List' |
|
3535 |
default: changeFileName |
|
3536 |
pattern:'*.chg;*.st' |
|
3537 |
) notNil |
|
3538 |
||
1545 | 3539 |
ifTrue: |
3540 |
[ |
|
10247 | 3541 |
changeFileName := fileName. |
3542 |
changes removeAll. |
|
3543 |
self readChangesFileInBackground:true. |
|
3544 |
self unselectChange. |
|
3545 |
Processor addTimedBlock:autoUpdateBlock afterSeconds:5. |
|
3546 |
self updateInfoLabel. |
|
3547 |
self autoSelectLast |
|
1545 | 3548 |
] |
10247 | 3549 |
|
3550 |
"Modified: / 11-10-2010 / 20:35:28 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
1545 | 3551 |
! |
3552 |
||
3553 |
doReload |
|
1546 | 3554 |
"reloads the changes from the file" |
1545 | 3555 |
|
3556 |
changes removeAll. |
|
3557 |
self unselectChange. |
|
3558 |
self readChangesFileInBackground:true. |
|
3559 |
self autoSelectLast |
|
3560 |
||
3561 |
! |
|
3562 |
||
3563 |
doSave |
|
3564 |
"write back the changes file. To avoid problems when the disk is full |
|
6288 | 3565 |
or a crash occurs while writing (well, or someone kills us), |
1545 | 3566 |
first write the stuff to a new temporary file. If this works ok, |
3567 |
rename the old change-file to a .bak file and finally rename the |
|
6288 | 3568 |
tempfile back to the change-file. |
1545 | 3569 |
That way, if anything happens, either the original file is left unchanged, |
3570 |
or we have at least a backup of the previous change file." |
|
3571 |
||
6288 | 3572 |
|inStream outStream tempfile stamp f| |
1545 | 3573 |
|
3574 |
self valueOfNotReading value ifFalse: [^nil]. |
|
3575 |
||
3576 |
editingClassSource ifTrue:[ |
|
2250 | 3577 |
(self confirm:'You are editing a classes sourceFile (not a changeFile) !!\Are you certain, you want to overwrite it ?' withCRs) |
3578 |
ifFalse:[ |
|
3579 |
^ false |
|
3580 |
] |
|
1545 | 3581 |
]. |
3582 |
||
3583 |
tempfile := Filename newTemporaryIn:nil. |
|
3584 |
tempfile exists ifTrue:[tempfile remove]. |
|
3585 |
||
3586 |
outStream := tempfile writeStream. |
|
3587 |
outStream isNil ifTrue:[ |
|
2250 | 3588 |
self warn:'Cannot create temporary file in current directory.'. |
3589 |
^ false |
|
1545 | 3590 |
]. |
3591 |
||
3592 |
inStream := FileStream readonlyFileNamed:changeFileName. |
|
3593 |
inStream isNil ifTrue:[^ false]. |
|
3594 |
||
3595 |
self withCursor:(Cursor write) do:[ |
|
2250 | 3596 |
|excla sawExcla done first chunk |
3597 |
nChanges "{Class:SmallInteger}" | |
|
3598 |
||
3599 |
Stream writeErrorSignal handle:[:ex | |
|
3600 |
self warn:('Could not update the changes file.\\' , ex errorString) withCRs. |
|
3601 |
^ false |
|
3602 |
] do:[ |
|
3603 |
||
3604 |
self valueOfNotSaving value: false. |
|
3605 |
||
3606 |
excla := inStream class chunkSeparator. |
|
3607 |
nChanges := changes size. |
|
3608 |
||
6288 | 3609 |
1 to:nChanges do:[:index | |
2250 | 3610 |
inStream position: (changes at: index) position. |
3611 |
sawExcla := inStream peekFor:excla. |
|
3612 |
chunk := inStream nextChunk. |
|
3613 |
||
3614 |
(chunk notNil |
|
3615 |
and:[(chunk startsWith:'''---- snap') not]) ifTrue:[ |
|
3616 |
(stamp := (changes at:index) timeStamp) notNil ifTrue:[ |
|
3617 |
outStream nextPutAll:'''---- timestamp ' , stamp , ' ----'''. |
|
3618 |
outStream nextPut:excla; cr. |
|
3619 |
]. |
|
3620 |
]. |
|
3621 |
||
6288 | 3622 |
sawExcla ifTrue:[ |
3623 |
outStream nextPut:excla. |
|
2250 | 3624 |
outStream nextChunkPut:chunk. |
3625 |
outStream cr; cr. |
|
3626 |
||
3627 |
" |
|
3628 |
a method-definition chunk - skip followups |
|
3629 |
" |
|
3630 |
done := false. |
|
3631 |
first := true. |
|
3632 |
[done] whileFalse:[ |
|
3633 |
chunk := inStream nextChunk. |
|
3634 |
chunk isNil ifTrue:[ |
|
3635 |
outStream cr; cr. |
|
3636 |
done := true |
|
3637 |
] ifFalse:[ |
|
3638 |
chunk isEmpty ifTrue:[ |
|
3639 |
outStream space; nextChunkPut:chunk; cr; cr. |
|
3640 |
done := true. |
|
3641 |
] ifFalse:[ |
|
3642 |
first ifFalse:[ |
|
3643 |
outStream cr; cr. |
|
3644 |
]. |
|
3645 |
outStream nextChunkPut:chunk. |
|
3646 |
]. |
|
3647 |
]. |
|
3648 |
first := false. |
|
3649 |
]. |
|
3650 |
] ifFalse:[ |
|
3651 |
outStream nextChunkPut:chunk. |
|
3652 |
outStream cr |
|
3653 |
] |
|
3654 |
]. |
|
3655 |
outStream close. |
|
3656 |
inStream close. |
|
3657 |
]. |
|
3658 |
||
3659 |
f := changeFileName asFilename. |
|
3660 |
f renameTo:(f withSuffix:'bak'). |
|
3661 |
tempfile renameTo:changeFileName. |
|
3662 |
self doReload. |
|
3663 |
modified := false. |
|
3664 |
self valueOfNotSaving value: true. |
|
1545 | 3665 |
]. |
3666 |
^ true |
|
3667 |
||
3668 |
||
3669 |
! ! |
|
3670 |
||
3671 |
!NewChangesBrowser::Change methodsFor:'accessing'! |
|
3672 |
||
3673 |
category |
|
3674 |
||
3675 |
^category |
|
3676 |
! |
|
3677 |
||
3678 |
category: aValue |
|
3679 |
||
3680 |
category := aValue |
|
3681 |
! |
|
3682 |
||
3683 |
chunk |
|
3684 |
||
3685 |
^chunk |
|
3686 |
! |
|
3687 |
||
3688 |
chunk: aValue |
|
3689 |
||
3690 |
chunk := aValue |
|
3691 |
! |
|
3692 |
||
3693 |
className |
|
3694 |
||
3695 |
^className |
|
3696 |
! |
|
3697 |
||
3698 |
className: aValue |
|
3699 |
||
3700 |
className := aValue |
|
3701 |
! |
|
3702 |
||
3703 |
delta |
|
1771
6d6c2bde9615
dont catch halts and breakpoints while reading;
Claus Gittinger <cg@exept.de>
parents:
1712
diff
changeset
|
3704 |
|cls| |
1545 | 3705 |
|
3706 |
delta size = 0 ifTrue: [^'']. |
|
3707 |
delta = '=' ifTrue: [^'Current']. |
|
1771
6d6c2bde9615
dont catch halts and breakpoints while reading;
Claus Gittinger <cg@exept.de>
parents:
1712
diff
changeset
|
3708 |
delta = '?' ifTrue: [ |
2250 | 3709 |
(className notNil and:[className knownAsSymbol]) ifTrue:[ |
3710 |
(cls := Smalltalk at:className asSymbol ifAbsent:nil) notNil ifTrue:[ |
|
3711 |
cls isBehavior ifTrue:[ |
|
3712 |
cls isLoaded ifFalse:[ |
|
3713 |
^ 'Not loaded' |
|
3714 |
] |
|
3715 |
] |
|
3716 |
] |
|
3717 |
]. |
|
3718 |
^'No class' |
|
1771
6d6c2bde9615
dont catch halts and breakpoints while reading;
Claus Gittinger <cg@exept.de>
parents:
1712
diff
changeset
|
3719 |
]. |
6d6c2bde9615
dont catch halts and breakpoints while reading;
Claus Gittinger <cg@exept.de>
parents:
1712
diff
changeset
|
3720 |
delta = '-' ifTrue: [^'Remove']. |
1545 | 3721 |
delta = '+' ifTrue: [^'New']. |
3722 |
^delta |
|
1771
6d6c2bde9615
dont catch halts and breakpoints while reading;
Claus Gittinger <cg@exept.de>
parents:
1712
diff
changeset
|
3723 |
|
6d6c2bde9615
dont catch halts and breakpoints while reading;
Claus Gittinger <cg@exept.de>
parents:
1712
diff
changeset
|
3724 |
"Modified: / 29.7.1998 / 23:08:10 / cg" |
1545 | 3725 |
! |
3726 |
||
3727 |
delta: aValue |
|
3728 |
||
3729 |
delta := aValue |
|
3730 |
! |
|
3731 |
||
3732 |
followUp |
|
3733 |
||
3734 |
^followUp |
|
3735 |
! |
|
3736 |
||
3737 |
followUp: aValue |
|
3738 |
||
3739 |
followUp := aValue |
|
3740 |
! |
|
3741 |
||
1568 | 3742 |
lastPosition: aValue |
3743 |
||
3744 |
lastPosition := aValue |
|
3745 |
! |
|
3746 |
||
1545 | 3747 |
listColor |
7957 | 3748 |
((string size < 3) or:[(string at: 3) ~~ $-]) ifTrue:[ |
3749 |
(self type = 'class') ifTrue: [^Color gray]. |
|
3750 |
^ Color white |
|
1545 | 3751 |
]. |
3752 |
||
3753 |
(string includesMatchString: '---- s') ifTrue: [^Color red]. |
|
3754 |
(string includesMatchString: '---- f') ifTrue: [^Color cyan: 100 magenta: 20 yellow: 20]. |
|
3755 |
(string includesMatchString: '---- c') ifTrue: [^Color blue]. |
|
3756 |
||
3757 |
^Color white |
|
3758 |
! |
|
3759 |
||
3760 |
position |
|
3761 |
||
3762 |
^position |
|
3763 |
! |
|
3764 |
||
3765 |
position: aValue |
|
3766 |
||
3767 |
position := aValue |
|
3768 |
! |
|
3769 |
||
1568 | 3770 |
positions |
3771 |
||
3772 |
^position printString, ' - ', lastPosition printString |
|
3773 |
! |
|
3774 |
||
7957 | 3775 |
selector |
3776 |
^ selector |
|
3777 |
! |
|
3778 |
||
3779 |
selector:something |
|
3780 |
selector := something. |
|
3781 |
! |
|
3782 |
||
1545 | 3783 |
string |
3784 |
||
3785 |
^string |
|
3786 |
! |
|
3787 |
||
3788 |
string: aValue |
|
3789 |
||
3790 |
string := aValue |
|
3791 |
! |
|
3792 |
||
3793 |
timeStamp |
|
3794 |
||
3795 |
^timeStamp |
|
3796 |
! |
|
3797 |
||
3798 |
timeStamp: aValue |
|
3799 |
||
3800 |
timeStamp := aValue |
|
3801 |
! |
|
3802 |
||
3803 |
type |
|
3804 |
||
3805 |
(type = 'doIt' or: [type = 'remove']) ifTrue: [^'class']. |
|
3806 |
(type size = 0) ifTrue: [(string includesMatchString: '---- s') ifTrue: [^'image'] ifFalse: [^'source']]. |
|
3807 |
(self category = nil) ifTrue: [^'class']. |
|
3808 |
^'method' |
|
3809 |
! |
|
3810 |
||
3811 |
type: aValue |
|
3812 |
||
3813 |
type := aValue |
|
3814 |
! ! |
|
3815 |
||
3816 |
!NewChangesBrowser class methodsFor:'documentation'! |
|
3817 |
||
10584
26c11c692527
changed: #checkClassIsLoaded:
Claus Gittinger <cg@exept.de>
parents:
10583
diff
changeset
|
3818 |
version |
16087 | 3819 |
^ '$Header$' |
10584
26c11c692527
changed: #checkClassIsLoaded:
Claus Gittinger <cg@exept.de>
parents:
10583
diff
changeset
|
3820 |
! |
26c11c692527
changed: #checkClassIsLoaded:
Claus Gittinger <cg@exept.de>
parents:
10583
diff
changeset
|
3821 |
|
9179
20f04cffb483
changed: #readChangesFileInBackground:
Claus Gittinger <cg@exept.de>
parents:
7957
diff
changeset
|
3822 |
version_CVS |
16087 | 3823 |
^ '$Header$' |
1545 | 3824 |
! ! |
13706
88e9ac79bb2f
class: NewChangesBrowser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10584
diff
changeset
|
3825 |