author | Claus Gittinger <cg@exept.de> |
Sun, 26 Jan 2003 15:10:32 +0100 | |
changeset 4483 | 84f28a1e7875 |
parent 4430 | 665173b18b94 |
child 4807 | a08a45f1277c |
permissions | -rw-r--r-- |
30 | 1 |
" |
2 |
COPYRIGHT (c) 1993 by Claus Gittinger |
|
45 | 3 |
All Rights Reserved |
30 | 4 |
|
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
12 |
||
2862
ae3f14623d62
default open is on the current changeSet
Claus Gittinger <cg@exept.de>
parents:
1474
diff
changeset
|
13 |
"{ Package: 'stx:libtool' }" |
ae3f14623d62
default open is on the current changeSet
Claus Gittinger <cg@exept.de>
parents:
1474
diff
changeset
|
14 |
|
30 | 15 |
ChangesBrowser subclass:#ChangeSetBrowser |
1470 | 16 |
instanceVariableNames:'changeSet originalChangeSet' |
17 |
classVariableNames:'' |
|
18 |
poolDictionaries:'' |
|
19 |
category:'Interface-Browsers' |
|
30 | 20 |
! |
21 |
||
22 |
!ChangeSetBrowser class methodsFor:'documentation'! |
|
23 |
||
24 |
copyright |
|
25 |
" |
|
26 |
COPYRIGHT (c) 1993 by Claus Gittinger |
|
45 | 27 |
All Rights Reserved |
30 | 28 |
|
29 |
This software is furnished under a license and may be used |
|
30 |
only in accordance with the terms of that license and with the |
|
31 |
inclusion of the above copyright notice. This software may not |
|
32 |
be provided or otherwise made available to, or used by, any |
|
33 |
other person. No title to or ownership of the software is |
|
34 |
hereby transferred. |
|
35 |
" |
|
36 |
! |
|
37 |
||
38 |
documentation |
|
39 |
" |
|
40 |
like a changesBrowser, but manipulates the per-project change-lists. |
|
41 |
" |
|
42 |
! ! |
|
43 |
||
44 |
!ChangeSetBrowser class methodsFor:'instance creation'! |
|
45 |
||
2862
ae3f14623d62
default open is on the current changeSet
Claus Gittinger <cg@exept.de>
parents:
1474
diff
changeset
|
46 |
open |
ae3f14623d62
default open is on the current changeSet
Claus Gittinger <cg@exept.de>
parents:
1474
diff
changeset
|
47 |
"create a changes browser on the current change set" |
ae3f14623d62
default open is on the current changeSet
Claus Gittinger <cg@exept.de>
parents:
1474
diff
changeset
|
48 |
|
3898 | 49 |
^ self openOn:(ChangeSet current) |
50 |
||
51 |
" |
|
52 |
ChangeSetBrowser open |
|
53 |
" |
|
2862
ae3f14623d62
default open is on the current changeSet
Claus Gittinger <cg@exept.de>
parents:
1474
diff
changeset
|
54 |
! |
ae3f14623d62
default open is on the current changeSet
Claus Gittinger <cg@exept.de>
parents:
1474
diff
changeset
|
55 |
|
40 | 56 |
openOn:aChangeSet |
2862
ae3f14623d62
default open is on the current changeSet
Claus Gittinger <cg@exept.de>
parents:
1474
diff
changeset
|
57 |
"create a changes browser on a change set" |
30 | 58 |
|
45 | 59 |
^ ((self new label:'ChangeSet Browser') changeSet:aChangeSet) open |
4232 | 60 |
! |
61 |
||
62 |
openOnFile:aFileName |
|
63 |
|changeSet| |
|
64 |
||
65 |
changeSet := ChangeSet fromFile:aFileName. |
|
66 |
^ self openOn:changeSet |
|
30 | 67 |
! ! |
68 |
||
1470 | 69 |
!ChangeSetBrowser class methodsFor:'defaults'! |
70 |
||
71 |
defaultLabel |
|
72 |
^ 'ChangeSet Browser' |
|
73 |
||
74 |
"Created: / 6.2.1998 / 13:25:47 / cg" |
|
75 |
! ! |
|
76 |
||
3203 | 77 |
!ChangeSetBrowser class methodsFor:'menu specs'! |
78 |
||
79 |
menuSpec |
|
80 |
"This resource specification was automatically generated |
|
81 |
by the MenuEditor of ST/X." |
|
82 |
||
83 |
"Do not manually edit this!! If it is corrupted, |
|
84 |
the MenuEditor may not be able to read the specification." |
|
85 |
||
86 |
" |
|
87 |
MenuEditor new openOnClass:ChangeSetBrowser andSelector:#menuSpec |
|
88 |
(Menu new fromLiteralArrayEncoding:(ChangeSetBrowser menuSpec)) startUp |
|
89 |
" |
|
90 |
||
91 |
<resource: #menu> |
|
92 |
||
93 |
^ |
|
94 |
#(#Menu |
|
95 |
#( |
|
96 |
#(#MenuItem |
|
97 |
#label: 'File' |
|
98 |
#translateLabel: true |
|
99 |
#submenu: |
|
100 |
#(#Menu |
|
101 |
#( |
|
102 |
#(#MenuItem |
|
103 |
#label: 'Compress' |
|
4483 | 104 |
#itemValue: #doCompress |
3203 | 105 |
#translateLabel: true |
3224
b2f3a2a0bc80
readOnly flag added (for method-versions browsing)
Claus Gittinger <cg@exept.de>
parents:
3212
diff
changeset
|
106 |
#isVisible: #notEditingClassSourceAndNotReadOnly |
3203 | 107 |
) |
108 |
#(#MenuItem |
|
4483 | 109 |
#enabled: #hasSelection |
3203 | 110 |
#label: 'Compress for Class' |
4483 | 111 |
#itemValue: #doCompressClass |
3203 | 112 |
#translateLabel: true |
3224
b2f3a2a0bc80
readOnly flag added (for method-versions browsing)
Claus Gittinger <cg@exept.de>
parents:
3212
diff
changeset
|
113 |
#isVisible: #notEditingClassSourceAndNotReadOnly |
3203 | 114 |
) |
115 |
#(#MenuItem |
|
116 |
#label: 'Compare and Compress' |
|
4483 | 117 |
#itemValue: #doCompareAndCompress |
3203 | 118 |
#translateLabel: true |
3224
b2f3a2a0bc80
readOnly flag added (for method-versions browsing)
Claus Gittinger <cg@exept.de>
parents:
3212
diff
changeset
|
119 |
#isVisible: #notEditingClassSourceAndNotReadOnly |
3203 | 120 |
) |
121 |
#(#MenuItem |
|
122 |
#label: '-' |
|
3224
b2f3a2a0bc80
readOnly flag added (for method-versions browsing)
Claus Gittinger <cg@exept.de>
parents:
3212
diff
changeset
|
123 |
#isVisible: #notEditingClassSourceAndNotReadOnly |
3203 | 124 |
) |
125 |
#(#MenuItem |
|
4483 | 126 |
#enabled: #hasSelection |
3203 | 127 |
#label: 'Fileout && Delete all Changes for Class' |
4483 | 128 |
#itemValue: #doFileoutAndDeleteClassAll |
3203 | 129 |
#translateLabel: true |
3224
b2f3a2a0bc80
readOnly flag added (for method-versions browsing)
Claus Gittinger <cg@exept.de>
parents:
3212
diff
changeset
|
130 |
#isVisible: #notEditingClassSourceAndNotReadOnly |
3203 | 131 |
) |
132 |
#(#MenuItem |
|
4483 | 133 |
#enabled: #hasSelection |
3203 | 134 |
#label: 'CheckIn && Delete all Changes for Class' |
4483 | 135 |
#itemValue: #doCheckinAndDeleteClassAll |
3203 | 136 |
#translateLabel: true |
3224
b2f3a2a0bc80
readOnly flag added (for method-versions browsing)
Claus Gittinger <cg@exept.de>
parents:
3212
diff
changeset
|
137 |
#isVisible: #notEditingClassSourceAndNotReadOnly |
3203 | 138 |
) |
139 |
#(#MenuItem |
|
140 |
#label: '-' |
|
3224
b2f3a2a0bc80
readOnly flag added (for method-versions browsing)
Claus Gittinger <cg@exept.de>
parents:
3212
diff
changeset
|
141 |
#isVisible: #notEditingClassSourceAndNotReadOnly |
3203 | 142 |
) |
143 |
#(#MenuItem |
|
4483 | 144 |
#enabled: #hasSelection |
3203 | 145 |
#label: 'Save in...' |
4483 | 146 |
#itemValue: #doSave |
3203 | 147 |
#translateLabel: true |
148 |
) |
|
149 |
#(#MenuItem |
|
4483 | 150 |
#enabled: #hasSelection |
3203 | 151 |
#label: 'Save to End in...' |
4483 | 152 |
#itemValue: #doSaveRest |
3203 | 153 |
#translateLabel: true |
154 |
) |
|
155 |
#(#MenuItem |
|
4483 | 156 |
#enabled: #hasSelection |
3203 | 157 |
#label: 'Save for Class to End in...' |
4483 | 158 |
#itemValue: #doSaveClassRest |
3203 | 159 |
#translateLabel: true |
160 |
) |
|
161 |
#(#MenuItem |
|
4483 | 162 |
#enabled: #hasSelection |
3203 | 163 |
#label: 'Save All for Class in...' |
4483 | 164 |
#itemValue: #doSaveClassAll |
3203 | 165 |
#translateLabel: true |
166 |
) |
|
167 |
#(#MenuItem |
|
168 |
#label: '-' |
|
169 |
) |
|
170 |
#(#MenuItem |
|
171 |
#label: 'Saveback ChangeSet' |
|
4483 | 172 |
#itemValue: #doSaveBack |
3203 | 173 |
#translateLabel: true |
3224
b2f3a2a0bc80
readOnly flag added (for method-versions browsing)
Claus Gittinger <cg@exept.de>
parents:
3212
diff
changeset
|
174 |
#isVisible: #notReadOnly |
3203 | 175 |
) |
176 |
#(#MenuItem |
|
3554 | 177 |
#label: '-' |
3224
b2f3a2a0bc80
readOnly flag added (for method-versions browsing)
Claus Gittinger <cg@exept.de>
parents:
3212
diff
changeset
|
178 |
#isVisible: #notReadOnly |
3203 | 179 |
) |
180 |
#(#MenuItem |
|
181 |
#label: 'Update' |
|
4483 | 182 |
#itemValue: #doUpdate |
3203 | 183 |
#translateLabel: true |
3554 | 184 |
#isVisible: #notReadOnly |
3203 | 185 |
) |
186 |
#(#MenuItem |
|
187 |
#label: '-' |
|
3224
b2f3a2a0bc80
readOnly flag added (for method-versions browsing)
Claus Gittinger <cg@exept.de>
parents:
3212
diff
changeset
|
188 |
#isVisible: #notReadOnly |
3203 | 189 |
) |
190 |
#(#MenuItem |
|
191 |
#label: 'Exit' |
|
4483 | 192 |
#itemValue: #menuExit |
3203 | 193 |
#translateLabel: true |
194 |
) |
|
195 |
) |
|
196 |
nil |
|
197 |
nil |
|
198 |
) |
|
199 |
) |
|
200 |
#(#MenuItem |
|
3554 | 201 |
#label: 'Change' |
202 |
#translateLabel: true |
|
203 |
#submenu: |
|
204 |
#(#Menu |
|
205 |
#( |
|
206 |
#(#MenuItem |
|
3857 | 207 |
#label: 'Undo (undelete Method)' |
4483 | 208 |
#itemValue: #doUndoRemoveMethod |
3857 | 209 |
#translateLabel: true |
210 |
#isVisible: #hasUndoableRemoveMethodChangeSelected |
|
211 |
) |
|
212 |
#(#MenuItem |
|
213 |
#label: 'Undo (previous Version)' |
|
4483 | 214 |
#itemValue: #doUndoMethodChange |
3857 | 215 |
#translateLabel: true |
216 |
#isVisible: #hasUndoableMethodChangeSelected |
|
217 |
) |
|
218 |
#(#MenuItem |
|
4483 | 219 |
#enabled: false |
3857 | 220 |
#label: 'Undo' |
4483 | 221 |
#itemValue: #doUndoMethodChange |
3857 | 222 |
#translateLabel: true |
223 |
#isVisible: #hasNotUndoableChangeSelected |
|
224 |
) |
|
225 |
#(#MenuItem |
|
226 |
#label: '-' |
|
227 |
) |
|
228 |
#(#MenuItem |
|
4483 | 229 |
#enabled: #hasSelection |
3554 | 230 |
#label: 'Apply' |
4483 | 231 |
#itemValue: #doApply |
3554 | 232 |
#translateLabel: true |
233 |
) |
|
234 |
#(#MenuItem |
|
4483 | 235 |
#enabled: #hasSelection |
3554 | 236 |
#label: 'Apply to End' |
4483 | 237 |
#itemValue: #doApplyRest |
3554 | 238 |
#translateLabel: true |
239 |
) |
|
240 |
#(#MenuItem |
|
4483 | 241 |
#enabled: #hasSelection |
3554 | 242 |
#label: 'Apply for Class to End' |
4483 | 243 |
#itemValue: #doApplyClassRest |
3554 | 244 |
#translateLabel: true |
245 |
) |
|
246 |
#(#MenuItem |
|
4483 | 247 |
#enabled: #hasNoSelection |
3554 | 248 |
#label: 'Apply All' |
4483 | 249 |
#itemValue: #doApplyAll |
3554 | 250 |
#translateLabel: true |
251 |
) |
|
252 |
#(#MenuItem |
|
253 |
#label: '-' |
|
254 |
) |
|
255 |
#(#MenuItem |
|
4483 | 256 |
#enabled: #hasSelection |
3554 | 257 |
#label: 'Delete' |
4483 | 258 |
#itemValue: #doDelete |
3554 | 259 |
#translateLabel: true |
260 |
#isVisible: #notReadOnly |
|
261 |
) |
|
262 |
#(#MenuItem |
|
4483 | 263 |
#enabled: #hasSelection |
3554 | 264 |
#label: 'Delete to End' |
4483 | 265 |
#itemValue: #doDeleteRest |
3554 | 266 |
#translateLabel: true |
267 |
#isVisible: #notReadOnly |
|
268 |
) |
|
269 |
#(#MenuItem |
|
4483 | 270 |
#enabled: #hasSelection |
3554 | 271 |
#label: 'Delete for Class to End' |
4483 | 272 |
#itemValue: #doDeleteClassRest |
3554 | 273 |
#translateLabel: true |
274 |
#isVisible: #notReadOnly |
|
275 |
) |
|
276 |
#(#MenuItem |
|
4483 | 277 |
#enabled: #hasSelection |
3554 | 278 |
#label: 'Delete for Class from Begin' |
4483 | 279 |
#itemValue: #doDeleteClassFromBeginning |
3554 | 280 |
#translateLabel: true |
281 |
#isVisible: #notReadOnly |
|
282 |
) |
|
283 |
#(#MenuItem |
|
4483 | 284 |
#enabled: #hasSelection |
3554 | 285 |
#label: 'Delete All for Class' |
4483 | 286 |
#itemValue: #doDeleteClassAll |
3554 | 287 |
#translateLabel: true |
288 |
#isVisible: #notReadOnly |
|
289 |
) |
|
290 |
#(#MenuItem |
|
4483 | 291 |
#enabled: #hasSelection |
3554 | 292 |
#label: 'Delete All for Class && its Private Classes' |
4483 | 293 |
#itemValue: #doDeleteClassAndPrivateClassesAll |
3554 | 294 |
#translateLabel: true |
295 |
#isVisible: #notReadOnly |
|
296 |
) |
|
297 |
#(#MenuItem |
|
298 |
#label: '-' |
|
299 |
#isVisible: #notReadOnly |
|
300 |
) |
|
301 |
#(#MenuItem |
|
4483 | 302 |
#enabled: #hasSelection |
3554 | 303 |
#label: 'Compare with Current' |
4483 | 304 |
#itemValue: #doCompare |
3554 | 305 |
#translateLabel: true |
306 |
) |
|
307 |
#(#MenuItem |
|
4483 | 308 |
#enabled: #hasSelection |
3554 | 309 |
#label: 'Browse' |
4483 | 310 |
#itemValue: #doBrowse |
3554 | 311 |
#translateLabel: true |
312 |
) |
|
313 |
#(#MenuItem |
|
314 |
#label: '-' |
|
315 |
) |
|
316 |
#(#MenuItem |
|
4483 | 317 |
#enabled: #hasSelection |
3554 | 318 |
#label: 'Make Change a Patch' |
4483 | 319 |
#itemValue: #doMakePatch |
3554 | 320 |
#translateLabel: true |
321 |
) |
|
322 |
) |
|
323 |
nil |
|
324 |
nil |
|
325 |
) |
|
326 |
) |
|
327 |
#(#MenuItem |
|
3203 | 328 |
#label: 'Search' |
329 |
#translateLabel: true |
|
330 |
#submenu: |
|
331 |
#(#Menu |
|
332 |
#( |
|
333 |
#(#MenuItem |
|
334 |
#label: 'Class...' |
|
4483 | 335 |
#itemValue: #findClass |
3203 | 336 |
#translateLabel: true |
337 |
) |
|
338 |
#(#MenuItem |
|
4483 | 339 |
#enabled: #hasSelection |
3203 | 340 |
#label: 'Previous for Class' |
4483 | 341 |
#itemValue: #findPreviousForClass |
3203 | 342 |
#translateLabel: true |
343 |
) |
|
344 |
#(#MenuItem |
|
4483 | 345 |
#enabled: #hasSelection |
3203 | 346 |
#label: 'Next for Class' |
4483 | 347 |
#itemValue: #findNextForClass |
3203 | 348 |
#translateLabel: true |
349 |
) |
|
350 |
#(#MenuItem |
|
351 |
#label: '-' |
|
352 |
) |
|
353 |
#(#MenuItem |
|
354 |
#label: 'Selector...' |
|
4483 | 355 |
#itemValue: #findSelector |
3203 | 356 |
#translateLabel: true |
357 |
) |
|
358 |
#(#MenuItem |
|
4483 | 359 |
#enabled: #hasSelection |
3203 | 360 |
#label: 'Previous for Selector' |
4483 | 361 |
#itemValue: #findPreviousForSelector |
3203 | 362 |
#translateLabel: true |
363 |
) |
|
364 |
#(#MenuItem |
|
4483 | 365 |
#enabled: #hasSelection |
3203 | 366 |
#label: 'Next for Selector' |
4483 | 367 |
#itemValue: #findNextForSelector |
3203 | 368 |
#translateLabel: true |
369 |
) |
|
370 |
#(#MenuItem |
|
371 |
#label: '-' |
|
372 |
) |
|
373 |
#(#MenuItem |
|
374 |
#label: 'String...' |
|
4483 | 375 |
#itemValue: #findString |
3203 | 376 |
#translateLabel: true |
377 |
) |
|
378 |
#(#MenuItem |
|
4483 | 379 |
#enabled: #hasSelection |
3203 | 380 |
#label: 'Previous with String' |
4483 | 381 |
#itemValue: #findPreviousForString |
3203 | 382 |
#translateLabel: true |
383 |
) |
|
384 |
#(#MenuItem |
|
4483 | 385 |
#enabled: #hasSelection |
3203 | 386 |
#label: 'Next with String' |
4483 | 387 |
#itemValue: #findNextForString |
3203 | 388 |
#translateLabel: true |
389 |
) |
|
390 |
#(#MenuItem |
|
391 |
#label: '-' |
|
392 |
) |
|
393 |
#(#MenuItem |
|
4483 | 394 |
#enabled: #hasSelection |
3203 | 395 |
#label: 'Previous Snapshot' |
4483 | 396 |
#itemValue: #findPreviousSnapshot |
3203 | 397 |
#translateLabel: true |
398 |
) |
|
399 |
#(#MenuItem |
|
4483 | 400 |
#enabled: #hasSelection |
3203 | 401 |
#label: 'Next Snapshot' |
4483 | 402 |
#itemValue: #findNextSnapshot |
3203 | 403 |
#translateLabel: true |
404 |
) |
|
405 |
) |
|
406 |
nil |
|
407 |
nil |
|
408 |
) |
|
409 |
) |
|
410 |
#(#MenuItem |
|
3554 | 411 |
#label: 'Browse' |
3203 | 412 |
#translateLabel: true |
413 |
#submenu: |
|
414 |
#(#Menu |
|
415 |
#( |
|
416 |
#(#MenuItem |
|
4483 | 417 |
#enabled: #hasSingleSelection |
3554 | 418 |
#label: 'Class' |
4483 | 419 |
#itemValue: #doBrowse |
3203 | 420 |
#translateLabel: true |
421 |
) |
|
422 |
#(#MenuItem |
|
423 |
#label: '-' |
|
424 |
) |
|
425 |
#(#MenuItem |
|
3554 | 426 |
#label: 'Senders...' |
4483 | 427 |
#itemValue: #doBrowseSenders |
3203 | 428 |
#translateLabel: true |
429 |
) |
|
430 |
#(#MenuItem |
|
3554 | 431 |
#label: 'Implementors...' |
4483 | 432 |
#itemValue: #doBrowseImplementors |
3203 | 433 |
#translateLabel: true |
434 |
) |
|
435 |
) |
|
436 |
nil |
|
437 |
nil |
|
438 |
) |
|
439 |
) |
|
440 |
#(#MenuItem |
|
441 |
#label: 'Settings' |
|
442 |
#translateLabel: true |
|
443 |
#submenu: |
|
444 |
#(#Menu |
|
445 |
#( |
|
446 |
#(#MenuItem |
|
447 |
#label: 'Auto Compare' |
|
448 |
#translateLabel: true |
|
449 |
#indication: #autoCompare |
|
450 |
) |
|
451 |
#(#MenuItem |
|
452 |
#label: 'Auto Update' |
|
453 |
#translateLabel: true |
|
3554 | 454 |
#isVisible: #notReadOnly |
3203 | 455 |
#indication: #autoUpdate |
456 |
) |
|
457 |
#(#MenuItem |
|
458 |
#label: '-' |
|
459 |
) |
|
460 |
#(#MenuItem |
|
4483 | 461 |
#label: 'Add Applies to ChangeSet...' |
462 |
#translateLabel: true |
|
463 |
#indication: #updateChangeSet |
|
464 |
) |
|
465 |
#(#MenuItem |
|
3203 | 466 |
#label: 'Apply in Original NameSpace' |
467 |
#translateLabel: true |
|
468 |
#indication: #applyInOriginalNameSpace |
|
469 |
) |
|
4279
1fbb8fa63669
care for parser errors when applying
Claus Gittinger <cg@exept.de>
parents:
4232
diff
changeset
|
470 |
#(#MenuItem |
4483 | 471 |
#label: '-' |
4279
1fbb8fa63669
care for parser errors when applying
Claus Gittinger <cg@exept.de>
parents:
4232
diff
changeset
|
472 |
) |
1fbb8fa63669
care for parser errors when applying
Claus Gittinger <cg@exept.de>
parents:
4232
diff
changeset
|
473 |
#(#MenuItem |
1fbb8fa63669
care for parser errors when applying
Claus Gittinger <cg@exept.de>
parents:
4232
diff
changeset
|
474 |
#label: 'Apply into Package...' |
4483 | 475 |
#itemValue: #setEnforcedPackage |
4279
1fbb8fa63669
care for parser errors when applying
Claus Gittinger <cg@exept.de>
parents:
4232
diff
changeset
|
476 |
#translateLabel: true |
4483 | 477 |
) |
478 |
#(#MenuItem |
|
479 |
#label: 'Apply in NameSpace...' |
|
480 |
#itemValue: #setEnforcedNameSpace |
|
481 |
#translateLabel: true |
|
4279
1fbb8fa63669
care for parser errors when applying
Claus Gittinger <cg@exept.de>
parents:
4232
diff
changeset
|
482 |
) |
3203 | 483 |
) |
484 |
nil |
|
485 |
nil |
|
486 |
) |
|
487 |
) |
|
488 |
#(#MenuItem |
|
489 |
#label: 'Help' |
|
490 |
#translateLabel: true |
|
491 |
#startGroup: #right |
|
492 |
#submenu: |
|
493 |
#(#Menu |
|
494 |
#( |
|
495 |
#(#MenuItem |
|
496 |
#label: 'ChangesBrowser Documentation' |
|
4483 | 497 |
#itemValue: #openHTMLDocument: |
3203 | 498 |
#translateLabel: true |
499 |
#argument: 'tools/cbrowser/TOP.html' |
|
500 |
) |
|
3205 | 501 |
#(#MenuItem |
502 |
#label: '-' |
|
503 |
) |
|
504 |
#(#MenuItem |
|
505 |
#label: 'About ChangesBrowser...' |
|
4483 | 506 |
#itemValue: #openAboutThisApplication |
3205 | 507 |
#translateLabel: true |
508 |
) |
|
3203 | 509 |
) |
510 |
nil |
|
511 |
nil |
|
512 |
) |
|
513 |
) |
|
514 |
) |
|
515 |
nil |
|
516 |
nil |
|
517 |
) |
|
518 |
! ! |
|
519 |
||
30 | 520 |
!ChangeSetBrowser methodsFor:'initialize / release'! |
521 |
||
3392
2dae85e52160
changeSetBrowsers writeBack fixed (when closing)
Claus Gittinger <cg@exept.de>
parents:
3364
diff
changeset
|
522 |
askIfChangesAreToBeWrittenBack |
2dae85e52160
changeSetBrowsers writeBack fixed (when closing)
Claus Gittinger <cg@exept.de>
parents:
3364
diff
changeset
|
523 |
|action| |
2dae85e52160
changeSetBrowsers writeBack fixed (when closing)
Claus Gittinger <cg@exept.de>
parents:
3364
diff
changeset
|
524 |
|
2dae85e52160
changeSetBrowsers writeBack fixed (when closing)
Claus Gittinger <cg@exept.de>
parents:
3364
diff
changeset
|
525 |
anyChanges ifFalse:[^ self]. |
2dae85e52160
changeSetBrowsers writeBack fixed (when closing)
Claus Gittinger <cg@exept.de>
parents:
3364
diff
changeset
|
526 |
|
2dae85e52160
changeSetBrowsers writeBack fixed (when closing)
Claus Gittinger <cg@exept.de>
parents:
3364
diff
changeset
|
527 |
action := OptionBox |
2dae85e52160
changeSetBrowsers writeBack fixed (when closing)
Claus Gittinger <cg@exept.de>
parents:
3364
diff
changeset
|
528 |
request:(resources at:'The modified changeSet has not been saved.\\Update the changeSet before closing ?') withCRs |
2dae85e52160
changeSetBrowsers writeBack fixed (when closing)
Claus Gittinger <cg@exept.de>
parents:
3364
diff
changeset
|
529 |
label:'ChangesBrowser' |
2dae85e52160
changeSetBrowsers writeBack fixed (when closing)
Claus Gittinger <cg@exept.de>
parents:
3364
diff
changeset
|
530 |
form:(WarningBox iconBitmap) |
2dae85e52160
changeSetBrowsers writeBack fixed (when closing)
Claus Gittinger <cg@exept.de>
parents:
3364
diff
changeset
|
531 |
buttonLabels:(resources array:#('Cancel' 'Don''t Update' 'Update')) |
2dae85e52160
changeSetBrowsers writeBack fixed (when closing)
Claus Gittinger <cg@exept.de>
parents:
3364
diff
changeset
|
532 |
values:#(#abort #ignore #save) |
2dae85e52160
changeSetBrowsers writeBack fixed (when closing)
Claus Gittinger <cg@exept.de>
parents:
3364
diff
changeset
|
533 |
default:#save |
2dae85e52160
changeSetBrowsers writeBack fixed (when closing)
Claus Gittinger <cg@exept.de>
parents:
3364
diff
changeset
|
534 |
onCancel:#abort. |
2dae85e52160
changeSetBrowsers writeBack fixed (when closing)
Claus Gittinger <cg@exept.de>
parents:
3364
diff
changeset
|
535 |
|
2dae85e52160
changeSetBrowsers writeBack fixed (when closing)
Claus Gittinger <cg@exept.de>
parents:
3364
diff
changeset
|
536 |
action == #abort ifTrue:[^ self]. |
2dae85e52160
changeSetBrowsers writeBack fixed (when closing)
Claus Gittinger <cg@exept.de>
parents:
3364
diff
changeset
|
537 |
action == #save ifTrue:[ |
2dae85e52160
changeSetBrowsers writeBack fixed (when closing)
Claus Gittinger <cg@exept.de>
parents:
3364
diff
changeset
|
538 |
self saveBackChanges |
2dae85e52160
changeSetBrowsers writeBack fixed (when closing)
Claus Gittinger <cg@exept.de>
parents:
3364
diff
changeset
|
539 |
]. |
2dae85e52160
changeSetBrowsers writeBack fixed (when closing)
Claus Gittinger <cg@exept.de>
parents:
3364
diff
changeset
|
540 |
! |
2dae85e52160
changeSetBrowsers writeBack fixed (when closing)
Claus Gittinger <cg@exept.de>
parents:
3364
diff
changeset
|
541 |
|
224 | 542 |
changeListMenu |
3203 | 543 |
<resource: #programMenu > |
544 |
||
3224
b2f3a2a0bc80
readOnly flag added (for method-versions browsing)
Claus Gittinger <cg@exept.de>
parents:
3212
diff
changeset
|
545 |
|items m| |
30 | 546 |
|
3203 | 547 |
items := #( |
548 |
('Apply' doApply) |
|
549 |
('Apply to End' doApplyRest) |
|
550 |
('Apply All changes' doApplyAll) |
|
551 |
('-' ) |
|
552 |
('Delete' doDelete) |
|
553 |
('Delete to End' doDeleteRest) |
|
554 |
('Delete for Class to End' doDeleteClassRest) |
|
555 |
('Delete All for Class' doDeleteClassAll) |
|
556 |
('-' ) |
|
4316 | 557 |
"/ ('Compress' doCompress) |
3203 | 558 |
('Compare with Current' doCompare) |
559 |
('-' ) |
|
560 |
('Make Change a Patch' doMakePatch) |
|
561 |
('-' ) |
|
562 |
('Saveback ChangeSet' doSaveBack) |
|
563 |
('-' ) |
|
564 |
('Update' doUpdate) |
|
565 |
). |
|
224 | 566 |
|
4316 | 567 |
device ctrlDown ifTrue:[ |
568 |
items := #( |
|
569 |
('Inspect Change' doInspectChange) |
|
570 |
). |
|
571 |
]. |
|
572 |
||
3224
b2f3a2a0bc80
readOnly flag added (for method-versions browsing)
Claus Gittinger <cg@exept.de>
parents:
3212
diff
changeset
|
573 |
m := PopUpMenu |
3203 | 574 |
itemList:items |
3224
b2f3a2a0bc80
readOnly flag added (for method-versions browsing)
Claus Gittinger <cg@exept.de>
parents:
3212
diff
changeset
|
575 |
resources:resources. |
b2f3a2a0bc80
readOnly flag added (for method-versions browsing)
Claus Gittinger <cg@exept.de>
parents:
3212
diff
changeset
|
576 |
|
b2f3a2a0bc80
readOnly flag added (for method-versions browsing)
Claus Gittinger <cg@exept.de>
parents:
3212
diff
changeset
|
577 |
readOnly == true ifTrue:[ |
b2f3a2a0bc80
readOnly flag added (for method-versions browsing)
Claus Gittinger <cg@exept.de>
parents:
3212
diff
changeset
|
578 |
m disableAll:#(doDelete doDeleteRest doDeleteClassRest doDeleteClassAll |
b2f3a2a0bc80
readOnly flag added (for method-versions browsing)
Claus Gittinger <cg@exept.de>
parents:
3212
diff
changeset
|
579 |
doDeleteClassAndPrivateClassesAll doCompress |
b2f3a2a0bc80
readOnly flag added (for method-versions browsing)
Claus Gittinger <cg@exept.de>
parents:
3212
diff
changeset
|
580 |
doFileoutAndDeleteClassAll doCheckinAndDeleteClassAll |
b2f3a2a0bc80
readOnly flag added (for method-versions browsing)
Claus Gittinger <cg@exept.de>
parents:
3212
diff
changeset
|
581 |
doWriteBack doSaveBack doUpdate |
b2f3a2a0bc80
readOnly flag added (for method-versions browsing)
Claus Gittinger <cg@exept.de>
parents:
3212
diff
changeset
|
582 |
doApplyAll doApplyRest) |
b2f3a2a0bc80
readOnly flag added (for method-versions browsing)
Claus Gittinger <cg@exept.de>
parents:
3212
diff
changeset
|
583 |
]. |
3228 | 584 |
|
585 |
self hasSelection ifTrue:[ |
|
586 |
m disable:#doApplyAll |
|
587 |
]. |
|
588 |
||
3224
b2f3a2a0bc80
readOnly flag added (for method-versions browsing)
Claus Gittinger <cg@exept.de>
parents:
3212
diff
changeset
|
589 |
^ m |
224 | 590 |
|
591 |
"Created: 3.12.1995 / 18:06:35 / cg" |
|
592 |
"Modified: 3.12.1995 / 18:13:06 / cg" |
|
30 | 593 |
! ! |
594 |
||
3857 | 595 |
!ChangeSetBrowser methodsFor:'menu aspects'! |
596 |
||
597 |
hasNotUndoableChangeSelected |
|
598 |
^ (self hasUndoableMethodChangeSelected |
|
599 |
or:[self hasUndoableRemoveMethodChangeSelected]) not |
|
600 |
! |
|
601 |
||
602 |
hasUndoableMethodChangeSelected |
|
603 |
|nr chg| |
|
604 |
||
605 |
self hasSingleSelection ifTrue:[ |
|
606 |
nr := self theSingleSelection. |
|
607 |
nr notNil ifTrue:[ |
|
608 |
chg := changeSet at:nr. |
|
609 |
chg isMethodChange ifTrue:[ |
|
610 |
chg isMethodRemoveChange ifFalse:[ |
|
611 |
chg previousVersion notNil ifTrue:[ |
|
612 |
^ true |
|
613 |
] |
|
614 |
] |
|
615 |
] |
|
616 |
] |
|
617 |
]. |
|
618 |
^ false |
|
619 |
! |
|
620 |
||
621 |
hasUndoableRemoveMethodChangeSelected |
|
622 |
|nr chg| |
|
623 |
||
624 |
self hasSingleSelection ifTrue:[ |
|
625 |
nr := self theSingleSelection. |
|
626 |
nr notNil ifTrue:[ |
|
627 |
chg := changeSet at:nr. |
|
628 |
chg isMethodRemoveChange ifTrue:[ |
|
629 |
chg previousVersion notNil ifTrue:[ |
|
630 |
^ true |
|
631 |
] |
|
632 |
] |
|
633 |
] |
|
634 |
]. |
|
635 |
^ false |
|
636 |
! ! |
|
637 |
||
2862
ae3f14623d62
default open is on the current changeSet
Claus Gittinger <cg@exept.de>
parents:
1474
diff
changeset
|
638 |
!ChangeSetBrowser methodsFor:'private'! |
1474 | 639 |
|
640 |
applyChange:changeNr |
|
641 |
"fileIn a change" |
|
642 |
||
643 |
|nm applyAction| |
|
644 |
||
645 |
nm := self classNameOfChange:changeNr. |
|
646 |
nm notNil ifTrue:[ |
|
647 |
|cls| |
|
648 |
||
649 |
cls := Smalltalk at:(nm asSymbol) ifAbsent:[]. |
|
650 |
cls notNil ifTrue:[ |
|
651 |
cls isLoaded ifFalse:[ |
|
652 |
cls autoload |
|
653 |
] |
|
654 |
] |
|
655 |
]. |
|
656 |
||
657 |
changeNrProcessed := changeNr. |
|
658 |
||
659 |
applyAction := [ |
|
660 |
|sig| |
|
661 |
||
662 |
(skipSignal notNil) ifTrue:[ |
|
663 |
sig := skipSignal |
|
664 |
] ifFalse:[ |
|
665 |
sig := Object abortSignal |
|
666 |
]. |
|
667 |
sig catch:[ |
|
4279
1fbb8fa63669
care for parser errors when applying
Claus Gittinger <cg@exept.de>
parents:
4232
diff
changeset
|
668 |
|
1fbb8fa63669
care for parser errors when applying
Claus Gittinger <cg@exept.de>
parents:
4232
diff
changeset
|
669 |
Parser::ParseError handle:[:ex | |
1fbb8fa63669
care for parser errors when applying
Claus Gittinger <cg@exept.de>
parents:
4232
diff
changeset
|
670 |
ex signal == Parser::UndefinedSuperclassError ifTrue:[ |
1fbb8fa63669
care for parser errors when applying
Claus Gittinger <cg@exept.de>
parents:
4232
diff
changeset
|
671 |
codeView error:(ex errorString) position:1 to:nil from:nil |
1fbb8fa63669
care for parser errors when applying
Claus Gittinger <cg@exept.de>
parents:
4232
diff
changeset
|
672 |
] ifFalse:[ |
1fbb8fa63669
care for parser errors when applying
Claus Gittinger <cg@exept.de>
parents:
4232
diff
changeset
|
673 |
codeView error:(ex errorMessage) position:(ex startPosition) to:(ex endPosition) from:(ex parser) |
1fbb8fa63669
care for parser errors when applying
Claus Gittinger <cg@exept.de>
parents:
4232
diff
changeset
|
674 |
] |
1fbb8fa63669
care for parser errors when applying
Claus Gittinger <cg@exept.de>
parents:
4232
diff
changeset
|
675 |
] do:[ |
4483 | 676 |
|nameSpace pkg| |
677 |
||
678 |
nameSpace := self nameSpaceForApply. |
|
679 |
pkg := enforcedPackage ? Class packageQuerySignal query. |
|
680 |
Class packageQuerySignal answer:pkg |
|
681 |
do:[ |
|
682 |
Class nameSpaceQuerySignal answer:nameSpace |
|
683 |
do:[ |
|
684 |
(changeSet at:changeNr) apply. |
|
685 |
] |
|
686 |
] |
|
4279
1fbb8fa63669
care for parser errors when applying
Claus Gittinger <cg@exept.de>
parents:
4232
diff
changeset
|
687 |
] |
1474 | 688 |
]. |
689 |
changeNrProcessed := nil. |
|
690 |
]. |
|
691 |
||
692 |
"/ |
|
693 |
"/ if I am showing the changes file, dont update it |
|
694 |
"/ |
|
695 |
changeFileName = ObjectMemory nameForChanges ifTrue:[ |
|
696 |
Class withoutUpdatingChangesDo:applyAction |
|
697 |
] ifFalse:[ |
|
698 |
applyAction value |
|
699 |
]. |
|
700 |
||
701 |
"Created: / 7.2.1998 / 19:32:35 / cg" |
|
702 |
"Modified: / 7.2.1998 / 19:35:11 / cg" |
|
2862
ae3f14623d62
default open is on the current changeSet
Claus Gittinger <cg@exept.de>
parents:
1474
diff
changeset
|
703 |
! |
30 | 704 |
|
1470 | 705 |
changeIsFollowupMethodChange:changeNr |
706 |
^ false |
|
707 |
||
708 |
"Created: / 6.2.1998 / 13:04:59 / cg" |
|
1474 | 709 |
"Modified: / 7.2.1998 / 19:28:52 / cg" |
1470 | 710 |
! |
711 |
||
30 | 712 |
changeSet:aChangeSet |
713 |
originalChangeSet := aChangeSet. |
|
714 |
changeSet := OrderedCollection new. |
|
106 | 715 |
originalChangeSet notNil ifTrue:[ |
716 |
originalChangeSet do:[:aChange | |
|
717 |
changeSet add:aChange |
|
718 |
]. |
|
30 | 719 |
]. |
720 |
! |
|
721 |
||
222 | 722 |
checkIfFileHasChanged |
723 |
Processor removeTimedBlock:checkBlock. |
|
724 |
changeSet size ~= originalChangeSet size ifTrue:[ |
|
725 |
self newLabel:'(outdated)'. |
|
3203 | 726 |
autoUpdate value ifTrue:[ |
222 | 727 |
self doUpdate |
728 |
] |
|
729 |
] ifFalse:[ |
|
730 |
self newLabel:'' |
|
731 |
]. |
|
732 |
Processor addTimedBlock:checkBlock afterSeconds:5. |
|
733 |
||
734 |
"Created: 3.12.1995 / 13:52:30 / cg" |
|
735 |
"Modified: 3.12.1995 / 14:15:06 / cg" |
|
736 |
! |
|
737 |
||
1470 | 738 |
fullClassNameOfChange:nr |
739 |
^ (changeSet at:nr) className |
|
740 |
||
741 |
"Created: / 6.2.1998 / 13:02:25 / cg" |
|
742 |
"Modified: / 6.2.1998 / 13:07:02 / cg" |
|
743 |
! |
|
744 |
||
3203 | 745 |
isChangeSetBrowser |
746 |
^ true |
|
747 |
! |
|
748 |
||
224 | 749 |
numberOfChanges |
750 |
^ changeSet size |
|
751 |
||
752 |
"Created: 3.12.1995 / 18:15:56 / cg" |
|
753 |
! |
|
754 |
||
222 | 755 |
queryCloseText |
756 |
^ 'Quit without updating changeSet ?' |
|
757 |
! |
|
758 |
||
45 | 759 |
readChangesFileInBackground:dummy |
30 | 760 |
"read the changeSet, create a list of header-lines" |
761 |
||
3673 | 762 |
|tabSpec| |
30 | 763 |
|
764 |
self withCursor:(Cursor read) do:[ |
|
3673 | 765 |
changeSet size == 0 ifTrue:[ |
766 |
changeFileName notNil ifTrue:[ |
|
767 |
changeSet := self class readXMLChangesFromFile:changeFileName inBackground:false. |
|
768 |
]. |
|
769 |
]. |
|
770 |
changeSet size == 0 ifTrue:[ |
|
771 |
^ nil |
|
772 |
]. |
|
773 |
||
774 |
tabSpec := TabulatorSpecification new. |
|
775 |
tabSpec unit:#inch. |
|
776 |
tabSpec positions:#(-1 0 5 8.5 ). |
|
777 |
" +/- cls>>sel type info" |
|
778 |
tabSpec align: #(#left #left #left #left). |
|
30 | 779 |
|
3673 | 780 |
changeChunks := OrderedCollection new. |
781 |
changeHeaderLines := OrderedCollection new. |
|
782 |
||
783 |
changeSet do:[:aChange | |entry| |
|
784 |
changeChunks add:(aChange printString). |
|
785 |
"/ changeHeaderLines add:(aChange printString) |
|
786 |
entry := MultiColListEntry new. |
|
787 |
entry tabulatorSpecification:tabSpec. |
|
788 |
entry colAt:1 put:''. "/ changeDelta. |
|
789 |
entry colAt:2 put:aChange printString. |
|
790 |
entry colAt:3 put:''. "/ changeType. |
|
791 |
||
792 |
(aChange respondsTo:#timeOfChangeIfKnown) ifTrue:[ |
|
793 |
aChange timeOfChangeIfKnown notNil ifTrue:[ |
|
794 |
entry colAt:4 put:(aChange timeOfChangeIfKnown printString). |
|
795 |
] |
|
796 |
]. |
|
797 |
changeHeaderLines add:entry |
|
798 |
]. |
|
799 |
changeClassNames := OrderedCollection new:(changeChunks size). |
|
800 |
anyChanges := false |
|
224 | 801 |
]. |
802 |
self newLabel:''. |
|
803 |
||
804 |
"Created: 3.12.1995 / 18:02:39 / cg" |
|
30 | 805 |
! |
806 |
||
3364 | 807 |
realClassNameOfChange:nr |
808 |
^ (changeSet at:nr) className. |
|
809 |
||
810 |
"Created: / 5.11.2001 / 18:10:38 / cg" |
|
811 |
! |
|
812 |
||
30 | 813 |
saveBackChanges |
814 |
"save back the change set" |
|
815 |
||
816 |
[originalChangeSet isEmpty] whileFalse:[ |
|
45 | 817 |
originalChangeSet removeLast |
30 | 818 |
]. |
819 |
changeSet do:[:aChange | |
|
45 | 820 |
originalChangeSet add:aChange |
30 | 821 |
] |
822 |
! |
|
823 |
||
1470 | 824 |
selectorOfMethodChange:changeNr |
825 |
^ (changeSet at:changeNr) selector |
|
826 |
||
827 |
"Created: / 6.2.1998 / 13:28:20 / cg" |
|
828 |
"Modified: / 6.2.1998 / 13:29:59 / cg" |
|
829 |
! |
|
830 |
||
30 | 831 |
silentDeleteChange:changeNr |
832 |
"delete a change do not update changeListView" |
|
833 |
||
1474 | 834 |
changeSet removeIndex:changeNr. |
835 |
super silentDeleteChange:changeNr. |
|
836 |
||
837 |
"Created: / 3.12.1995 / 18:14:17 / cg" |
|
838 |
"Modified: / 7.2.1998 / 19:57:57 / cg" |
|
839 |
! |
|
224 | 840 |
|
1474 | 841 |
silentDeleteInternalChange:changeNr |
842 |
"delete a change do not update changeListView" |
|
843 |
||
844 |
changeSet removeIndex:changeNr. |
|
845 |
super silentDeleteInternalChange:changeNr. |
|
846 |
||
847 |
"Modified: / 7.2.1998 / 19:44:45 / cg" |
|
848 |
"Created: / 7.2.1998 / 19:58:02 / cg" |
|
222 | 849 |
! |
850 |
||
3785
741890c870a4
oops - exclas in changeSetBrowsers method source
Claus Gittinger <cg@exept.de>
parents:
3673
diff
changeset
|
851 |
sourceOfChange:changeNr |
741890c870a4
oops - exclas in changeSetBrowsers method source
Claus Gittinger <cg@exept.de>
parents:
3673
diff
changeset
|
852 |
"answer a changes source" |
741890c870a4
oops - exclas in changeSetBrowsers method source
Claus Gittinger <cg@exept.de>
parents:
3673
diff
changeset
|
853 |
|
741890c870a4
oops - exclas in changeSetBrowsers method source
Claus Gittinger <cg@exept.de>
parents:
3673
diff
changeset
|
854 |
|change| |
741890c870a4
oops - exclas in changeSetBrowsers method source
Claus Gittinger <cg@exept.de>
parents:
3673
diff
changeset
|
855 |
|
741890c870a4
oops - exclas in changeSetBrowsers method source
Claus Gittinger <cg@exept.de>
parents:
3673
diff
changeset
|
856 |
change := changeSet at:changeNr. |
741890c870a4
oops - exclas in changeSetBrowsers method source
Claus Gittinger <cg@exept.de>
parents:
3673
diff
changeset
|
857 |
change isNil ifTrue:[^nil]. |
741890c870a4
oops - exclas in changeSetBrowsers method source
Claus Gittinger <cg@exept.de>
parents:
3673
diff
changeset
|
858 |
^ change source |
741890c870a4
oops - exclas in changeSetBrowsers method source
Claus Gittinger <cg@exept.de>
parents:
3673
diff
changeset
|
859 |
|
741890c870a4
oops - exclas in changeSetBrowsers method source
Claus Gittinger <cg@exept.de>
parents:
3673
diff
changeset
|
860 |
"Modified: / 7.2.1998 / 19:52:44 / cg" |
741890c870a4
oops - exclas in changeSetBrowsers method source
Claus Gittinger <cg@exept.de>
parents:
3673
diff
changeset
|
861 |
! |
741890c870a4
oops - exclas in changeSetBrowsers method source
Claus Gittinger <cg@exept.de>
parents:
3673
diff
changeset
|
862 |
|
222 | 863 |
streamForChange:changeNr |
864 |
"answer a stream for change" |
|
865 |
||
4430
665173b18b94
oops - streamforchange was wrong (exclas)
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
866 |
|change str| |
222 | 867 |
|
868 |
change := changeSet at:changeNr. |
|
869 |
change isNil ifTrue:[^nil]. |
|
1474 | 870 |
change isMethodChange ifTrue:[ |
4430
665173b18b94
oops - streamforchange was wrong (exclas)
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
871 |
str := WriteStream on:''. |
665173b18b94
oops - streamforchange was wrong (exclas)
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
872 |
str nextPutChunkSeparator. |
665173b18b94
oops - streamforchange was wrong (exclas)
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
873 |
str nextPutAll:(change className , ' methodsFor:''' , change methodCategory , ''''). |
665173b18b94
oops - streamforchange was wrong (exclas)
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
874 |
str nextPutChunkSeparator. |
665173b18b94
oops - streamforchange was wrong (exclas)
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
875 |
str cr. |
665173b18b94
oops - streamforchange was wrong (exclas)
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
876 |
str nextPutAllAsChunk:change source. |
665173b18b94
oops - streamforchange was wrong (exclas)
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
877 |
str nextPutChunkSeparator. |
665173b18b94
oops - streamforchange was wrong (exclas)
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
878 |
str space. |
665173b18b94
oops - streamforchange was wrong (exclas)
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
879 |
str nextPutChunkSeparator. |
665173b18b94
oops - streamforchange was wrong (exclas)
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
880 |
str cr. |
665173b18b94
oops - streamforchange was wrong (exclas)
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
881 |
^ ReadStream on:str contents |
1474 | 882 |
]. |
222 | 883 |
^ ReadStream on:(change source) |
1474 | 884 |
|
885 |
"Modified: / 7.2.1998 / 19:52:44 / cg" |
|
30 | 886 |
! ! |
887 |
||
888 |
!ChangeSetBrowser methodsFor:'user actions'! |
|
889 |
||
4316 | 890 |
doInspectChange |
891 |
self withSelectedChangesDo:[:changeNr | |
|
892 |
(changeSet at:changeNr) inspect |
|
893 |
]. |
|
894 |
! |
|
895 |
||
30 | 896 |
doSaveBack |
897 |
anyChanges ifTrue:[ |
|
45 | 898 |
self saveBackChanges. |
899 |
self doUpdate |
|
30 | 900 |
] |
222 | 901 |
! |
902 |
||
903 |
doUpdate |
|
904 |
changeSet := OrderedCollection new. |
|
905 |
originalChangeSet notNil ifTrue:[ |
|
906 |
originalChangeSet do:[:aChange | |
|
907 |
changeSet add:aChange |
|
908 |
]. |
|
909 |
]. |
|
910 |
super doUpdate |
|
911 |
||
912 |
"Created: 3.12.1995 / 13:54:14 / cg" |
|
30 | 913 |
! ! |
222 | 914 |
|
915 |
!ChangeSetBrowser class methodsFor:'documentation'! |
|
916 |
||
917 |
version |
|
4483 | 918 |
^ '$Header: /cvs/stx/stx/libtool/ChangeSetBrowser.st,v 1.32 2003-01-26 14:10:32 cg Exp $' |
222 | 919 |
! ! |