author | convert-repo |
Fri, 06 Jul 2018 03:31:58 +0000 | |
changeset 18262 | 18e456b91b31 |
parent 17912 | 5799809770ab |
child 18594 | c0508c7f1fcb |
permissions | -rw-r--r-- |
13818 | 1 |
" |
2 |
COPYRIGHT (c) 2006 by eXept Software AG |
|
3 |
All Rights Reserved |
|
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 |
" |
|
11105 | 12 |
"{ Package: 'stx:libtool' }" |
13 |
||
15245
824d31e08f0f
class: DirectoryDifferenceViewApplication
Claus Gittinger <cg@exept.de>
parents:
14500
diff
changeset
|
14 |
"{ NameSpace: Smalltalk }" |
824d31e08f0f
class: DirectoryDifferenceViewApplication
Claus Gittinger <cg@exept.de>
parents:
14500
diff
changeset
|
15 |
|
11105 | 16 |
AbstractFileFinderApplicationComponent subclass:#DirectoryDifferenceViewApplication |
17 |
instanceVariableNames:'directory1Holder directory2Holder directory1 directory2 |
|
18 |
filesOnlyInDirectory1 filesOnlyInDirectory2 |
|
19 |
filesWhichAreDifferent directoriesOnlyInDirectory1 |
|
11121 | 20 |
directoriesOnlyInDirectory2 namePatternHolder |
21 |
excludedNamePatternHolder' |
|
11105 | 22 |
classVariableNames:'' |
23 |
poolDictionaries:'' |
|
24 |
category:'Interface-Tools-File' |
|
25 |
! |
|
26 |
||
13818 | 27 |
!DirectoryDifferenceViewApplication class methodsFor:'documentation'! |
28 |
||
29 |
copyright |
|
30 |
" |
|
31 |
COPYRIGHT (c) 2006 by eXept Software AG |
|
32 |
All Rights Reserved |
|
33 |
||
34 |
This software is furnished under a license and may be used |
|
35 |
only in accordance with the terms of that license and with the |
|
36 |
inclusion of the above copyright notice. This software may not |
|
37 |
be provided or otherwise made available to, or used by, any |
|
38 |
other person. No title to or ownership of the software is |
|
39 |
hereby transferred. |
|
40 |
" |
|
41 |
! ! |
|
11105 | 42 |
|
11121 | 43 |
!DirectoryDifferenceViewApplication class methodsFor:'help specs'! |
44 |
||
17912 | 45 |
helpSpec |
11121 | 46 |
"This resource specification was automatically generated |
47 |
by the UIHelpTool of ST/X." |
|
48 |
||
49 |
"Do not manually edit this!! If it is corrupted, |
|
50 |
the UIHelpTool may not be able to read the specification." |
|
51 |
||
52 |
" |
|
53 |
UIHelpTool openOnClass:FindFileApplication |
|
54 |
" |
|
55 |
||
56 |
<resource: #help> |
|
57 |
||
17912 | 58 |
^ super helpSpec addPairsFrom:#( |
11121 | 59 |
|
60 |
#namePattern |
|
17708 | 61 |
'Filename(s) to search for. Can be matchPatterns, separated by ";".\(eg. "*.c ; *.h" searches for C and header files. So does "*.[ch]")' |
11121 | 62 |
|
63 |
#excludedNamePattern |
|
64 |
'Filename(s) to skip. Can be matchPatterns, separated by ";"' |
|
65 |
||
66 |
#searchDirectory1 |
|
67 |
'The first folder, to be compared against folder2' |
|
68 |
||
69 |
#searchDirectory2 |
|
70 |
'The second folder, to be compared against folder1' |
|
71 |
||
72 |
) |
|
73 |
||
17708 | 74 |
"Modified: / 11-10-2017 / 15:49:43 / cg" |
11121 | 75 |
! ! |
76 |
||
11105 | 77 |
!DirectoryDifferenceViewApplication class methodsFor:'interface specs'! |
78 |
||
79 |
windowSpec |
|
80 |
"This resource specification was automatically generated |
|
81 |
by the UIPainter of ST/X." |
|
82 |
||
83 |
"Do not manually edit this!! If it is corrupted, |
|
84 |
the UIPainter may not be able to read the specification." |
|
85 |
||
86 |
" |
|
87 |
UIPainter new openOnClass:DirectoryDifferenceViewApplication andSelector:#windowSpec |
|
88 |
DirectoryDifferenceViewApplication new openInterface:#windowSpec |
|
89 |
DirectoryDifferenceViewApplication open |
|
90 |
" |
|
91 |
||
92 |
<resource: #canvas> |
|
93 |
||
94 |
^ |
|
95 |
#(FullSpec |
|
96 |
name: windowSpec |
|
97 |
window: |
|
98 |
(WindowSpec |
|
99 |
label: 'Directory Diff' |
|
100 |
name: 'Directory Diff' |
|
101 |
min: (Point 377 131) |
|
102 |
bounds: (Rectangle 0 0 758 512) |
|
103 |
) |
|
104 |
component: |
|
105 |
(SpecCollection |
|
106 |
collection: ( |
|
107 |
(MenuPanelSpec |
|
108 |
name: 'ToolBar1' |
|
109 |
layout: (LayoutFrame 0 0.0 0 0 0 1.0 32 0) |
|
110 |
level: 0 |
|
111 |
menu: searchMenu |
|
112 |
textDefault: true |
|
113 |
) |
|
114 |
(ProgressIndicatorSpec |
|
115 |
name: 'ProgressIndicator1' |
|
116 |
layout: (LayoutFrame 125 0 11 0 231 0 21 0) |
|
117 |
visibilityChannel: enableStop |
|
118 |
backgroundColor: (Color 0.0 66.9993133440146 66.9993133440146) |
|
119 |
showPercentage: false |
|
120 |
isActivityIndicator: true |
|
121 |
) |
|
122 |
(ViewSpec |
|
123 |
name: 'Box1' |
|
124 |
layout: (LayoutFrame 0 0.0 32 0 0 1.0 130 0) |
|
125 |
component: |
|
126 |
(SpecCollection |
|
127 |
collection: ( |
|
128 |
(LabelSpec |
|
129 |
label: 'Directory1:' |
|
130 |
name: 'DirectoryLabel' |
|
131 |
layout: (LayoutFrame 2 0 7 0 154 0 24 0) |
|
11121 | 132 |
activeHelpKey: searchDirectory1 |
11105 | 133 |
translateLabel: true |
134 |
adjust: right |
|
135 |
) |
|
136 |
(FilenameInputFieldSpec |
|
137 |
name: 'DirectoryEntryField' |
|
138 |
layout: (LayoutFrame 156 0 4 0 0 1 24 0) |
|
11121 | 139 |
activeHelpKey: searchDirectory1 |
11105 | 140 |
model: directory1Holder |
141 |
immediateAccept: true |
|
142 |
acceptOnPointerLeave: false |
|
143 |
) |
|
144 |
(LabelSpec |
|
145 |
label: 'Directory2:' |
|
146 |
name: 'Label2' |
|
147 |
layout: (LayoutFrame 2 0 31 0 154 0 48 0) |
|
11121 | 148 |
activeHelpKey: searchDirectory2 |
11105 | 149 |
translateLabel: true |
150 |
adjust: right |
|
151 |
) |
|
152 |
(FilenameInputFieldSpec |
|
153 |
name: 'FilenameEntryField1' |
|
154 |
layout: (LayoutFrame 156 0 28 0 0 1 48 0) |
|
11121 | 155 |
activeHelpKey: searchDirectory2 |
11105 | 156 |
model: directory2Holder |
157 |
immediateAccept: true |
|
158 |
acceptOnPointerLeave: false |
|
159 |
) |
|
160 |
(LabelSpec |
|
161 |
label: 'Compare Files Named:' |
|
162 |
name: 'FileNameLabel' |
|
163 |
layout: (LayoutFrame 2 0 55 0 154 0 72 0) |
|
164 |
activeHelpKey: namePattern |
|
165 |
translateLabel: true |
|
166 |
adjust: right |
|
167 |
) |
|
168 |
(InputFieldSpec |
|
169 |
name: 'FileNameEntryField' |
|
170 |
layout: (LayoutFrame 156 0 52 0 -315 1 72 0) |
|
171 |
activeHelpKey: namePattern |
|
172 |
tabable: true |
|
173 |
model: namePatternHolder |
|
174 |
immediateAccept: true |
|
175 |
acceptOnLeave: false |
|
176 |
acceptOnPointerLeave: false |
|
177 |
) |
|
178 |
(CheckBoxSpec |
|
179 |
label: 'Ignore Case' |
|
180 |
name: 'IgnoreCaseInNameCheckBox' |
|
181 |
layout: (LayoutFrame -169 1 53 0 -4 1 76 0) |
|
182 |
activeHelpKey: ignoreCase |
|
183 |
tabable: true |
|
184 |
model: ignoreCaseInName |
|
185 |
translateLabel: true |
|
186 |
) |
|
187 |
(LabelSpec |
|
188 |
label: 'But Not Named:' |
|
189 |
name: 'Label1' |
|
190 |
layout: (LayoutFrame 2 0 79 0 154 0 96 0) |
|
11121 | 191 |
activeHelpKey: excludedNamePattern |
11105 | 192 |
translateLabel: true |
193 |
adjust: right |
|
194 |
) |
|
195 |
(InputFieldSpec |
|
196 |
name: 'EntryField1' |
|
197 |
layout: (LayoutFrame 156 0 76 0 -315 1 96 0) |
|
11121 | 198 |
activeHelpKey: excludedNamePattern |
11105 | 199 |
tabable: true |
200 |
model: excludedNamePatternHolder |
|
201 |
immediateAccept: true |
|
202 |
acceptOnLeave: false |
|
203 |
acceptOnPointerLeave: false |
|
204 |
) |
|
205 |
(CheckBoxSpec |
|
206 |
label: 'Ignore Case' |
|
207 |
name: 'CheckBox1' |
|
208 |
layout: (LayoutFrame -169 1 77 0 -4 1 100 0) |
|
209 |
activeHelpKey: ignoreCase |
|
210 |
tabable: true |
|
211 |
model: ignoreCaseInExcludedName |
|
212 |
translateLabel: true |
|
213 |
) |
|
214 |
) |
|
215 |
||
216 |
) |
|
217 |
) |
|
218 |
(VariableVerticalPanelSpec |
|
219 |
name: 'VariableVerticalPanel1' |
|
220 |
layout: (LayoutFrame 0 0.0 140 0 0 1.0 0 1) |
|
221 |
component: |
|
222 |
(SpecCollection |
|
223 |
collection: ( |
|
224 |
(DataSetSpec |
|
225 |
name: 'Table1' |
|
226 |
model: selectionHolder |
|
227 |
hasHorizontalScrollBar: true |
|
228 |
hasVerticalScrollBar: true |
|
229 |
dataList: matchedFilesList |
|
230 |
doubleClickSelector: fileDoubleClick: |
|
231 |
columnHolder: searchResultTable |
|
232 |
valueChangeSelector: fileSelected: |
|
233 |
multipleSelectOk: true |
|
234 |
) |
|
11116 | 235 |
(ArbitraryComponentSpec |
236 |
name: 'DiffTextView' |
|
237 |
hasHorizontalScrollBar: true |
|
238 |
hasVerticalScrollBar: true |
|
11105 | 239 |
component: DiffTextView |
240 |
) |
|
241 |
) |
|
242 |
||
243 |
) |
|
244 |
handles: (Any 0.5 1.0) |
|
245 |
) |
|
246 |
) |
|
247 |
||
248 |
) |
|
249 |
) |
|
11121 | 250 |
|
251 |
"Modified: / 13-01-2012 / 14:41:56 / cg" |
|
11105 | 252 |
! ! |
253 |
||
11123 | 254 |
!DirectoryDifferenceViewApplication class methodsFor:'menu specs'! |
255 |
||
256 |
searchMenu |
|
257 |
"This resource specification was automatically generated |
|
258 |
by the MenuEditor of ST/X." |
|
259 |
||
260 |
"Do not manually edit this!! If it is corrupted, |
|
261 |
the MenuEditor may not be able to read the specification." |
|
262 |
||
263 |
||
264 |
" |
|
265 |
MenuEditor new openOnClass:FindFileApplication andSelector:#searchMenu |
|
266 |
(Menu new fromLiteralArrayEncoding:(FindFileApplication searchMenu)) startUp |
|
267 |
" |
|
268 |
||
269 |
<resource: #menu> |
|
270 |
||
271 |
^ |
|
272 |
#(Menu |
|
273 |
( |
|
274 |
(MenuItem |
|
275 |
label: 'Search' |
|
276 |
itemValue: doSearch |
|
277 |
translateLabel: true |
|
278 |
isButton: true |
|
279 |
labelImage: (ResourceRetriever ToolbarIconLibrary searchFileIcon) |
|
280 |
) |
|
281 |
(MenuItem |
|
282 |
enabled: enableStop |
|
283 |
label: 'Stop' |
|
284 |
itemValue: stop |
|
285 |
translateLabel: true |
|
286 |
isButton: true |
|
287 |
isVisible: enableStop |
|
288 |
labelImage: (ResourceRetriever XPToolbarIconLibrary stop22x22Icon) |
|
289 |
) |
|
290 |
(MenuItem |
|
291 |
label: 'Close' |
|
292 |
itemValue: doClose |
|
293 |
translateLabel: true |
|
294 |
isButton: true |
|
295 |
startGroup: right |
|
296 |
isVisible: false |
|
297 |
labelImage: (ResourceRetriever ToolbarIconLibrary removeTabIcon) |
|
298 |
) |
|
299 |
) |
|
300 |
nil |
|
301 |
nil |
|
302 |
) |
|
303 |
! ! |
|
304 |
||
11105 | 305 |
!DirectoryDifferenceViewApplication class methodsFor:'tableColumns specs'! |
306 |
||
307 |
searchResultTable |
|
308 |
"This resource specification was automatically generated |
|
309 |
by the DataSetBuilder of ST/X." |
|
310 |
||
311 |
"Do not manually edit this!! If it is corrupted, |
|
312 |
the DataSetBuilder may not be able to read the specification." |
|
313 |
||
314 |
" |
|
315 |
DataSetBuilder new openOnClass:DirectoryDifferenceViewApplication andSelector:#searchResultTable |
|
316 |
" |
|
317 |
||
318 |
<resource: #tableColumns> |
|
319 |
||
320 |
^#( |
|
321 |
(DataSetColumnSpec |
|
322 |
label: 'Filename' |
|
323 |
id: 'FileName' |
|
324 |
labelButtonType: Button |
|
325 |
model: at: |
|
326 |
menuFromApplication: false |
|
327 |
writeSelector: at:put: |
|
328 |
showRowSeparator: false |
|
329 |
showColSeparator: false |
|
330 |
) |
|
331 |
(DataSetColumnSpec |
|
332 |
label: 'Diff' |
|
333 |
id: 'Diff' |
|
334 |
labelButtonType: Button |
|
335 |
model: at: |
|
336 |
menuFromApplication: false |
|
337 |
writeSelector: at:put: |
|
338 |
showRowSeparator: false |
|
339 |
showColSeparator: false |
|
340 |
) |
|
341 |
) |
|
342 |
||
343 |
! ! |
|
344 |
||
345 |
!DirectoryDifferenceViewApplication methodsFor:'accessing'! |
|
346 |
||
347 |
directory1:directory1Arg directory2:directory2Arg |
|
348 |
self directory1Holder value:directory1Arg. |
|
349 |
self directory2Holder value:directory2Arg. |
|
350 |
||
351 |
"/ self namePatternHolder value:newPattern. |
|
352 |
self enableStop value:false. |
|
353 |
self enableSearch value:true. |
|
354 |
^ true. |
|
355 |
||
356 |
"Modified: / 12-01-2012 / 01:36:54 / cg" |
|
357 |
! |
|
358 |
||
359 |
directory1Holder |
|
360 |
directory1Holder isNil ifTrue:[ |
|
361 |
directory1Holder := nil asValue |
|
362 |
]. |
|
363 |
^ directory1Holder |
|
364 |
||
365 |
"Created: / 12-01-2012 / 01:37:31 / cg" |
|
366 |
! |
|
367 |
||
368 |
directory2Holder |
|
369 |
directory2Holder isNil ifTrue:[ |
|
370 |
directory2Holder := nil asValue |
|
371 |
]. |
|
372 |
^ directory2Holder |
|
373 |
||
374 |
"Created: / 12-01-2012 / 01:37:41 / cg" |
|
375 |
! ! |
|
376 |
||
11116 | 377 |
!DirectoryDifferenceViewApplication methodsFor:'actions'! |
378 |
||
379 |
fileSelected:entries |
|
380 |
|entry file fn1 fn2 text1 text2 differ| |
|
381 |
||
382 |
entries isEmptyOrNil ifTrue:[^ self]. |
|
383 |
||
384 |
entry := self shownList at:entries first. |
|
385 |
file := entry first. |
|
386 |
||
387 |
fn1 := self directory1Holder value asFilename construct:file. |
|
388 |
fn2 := self directory2Holder value asFilename construct:file. |
|
15245
824d31e08f0f
class: DirectoryDifferenceViewApplication
Claus Gittinger <cg@exept.de>
parents:
14500
diff
changeset
|
389 |
(fn1 exists and:[fn1 isRegularFile]) ifTrue:[ |
14500
dac4006a72c5
class: DirectoryDifferenceViewApplication
Claus Gittinger <cg@exept.de>
parents:
13818
diff
changeset
|
390 |
text1 := fn1 contentsAsString. |
11116 | 391 |
]. |
15245
824d31e08f0f
class: DirectoryDifferenceViewApplication
Claus Gittinger <cg@exept.de>
parents:
14500
diff
changeset
|
392 |
(fn2 exists and:[fn2 isRegularFile]) ifTrue:[ |
14500
dac4006a72c5
class: DirectoryDifferenceViewApplication
Claus Gittinger <cg@exept.de>
parents:
13818
diff
changeset
|
393 |
text2 := fn2 contentsAsString. |
11116 | 394 |
]. |
395 |
differ := builder componentAt:'DiffTextView'. |
|
396 |
differ text1:(text1 ? '') text2:(text2 ? ''). |
|
397 |
||
398 |
"Created: / 12-01-2012 / 03:21:52 / cg" |
|
399 |
! ! |
|
400 |
||
11121 | 401 |
!DirectoryDifferenceViewApplication methodsFor:'aspects'! |
402 |
||
403 |
excludedNamePatternHolder |
|
404 |
excludedNamePatternHolder isNil ifTrue:[ |
|
405 |
excludedNamePatternHolder := '' asValue. |
|
406 |
]. |
|
407 |
^ excludedNamePatternHolder. |
|
408 |
||
409 |
"Created: / 13-01-2012 / 14:42:47 / cg" |
|
410 |
! |
|
411 |
||
412 |
namePatternHolder |
|
413 |
||
414 |
namePatternHolder isNil ifTrue:[ |
|
415 |
namePatternHolder := '*' asValue. |
|
416 |
]. |
|
417 |
^ namePatternHolder. |
|
418 |
||
419 |
"Created: / 13-01-2012 / 14:37:28 / cg" |
|
420 |
! ! |
|
421 |
||
11105 | 422 |
!DirectoryDifferenceViewApplication methodsFor:'comparing'! |
423 |
||
424 |
doSearch |
|
11123 | 425 |
|dir1 dir2 namePattern namePatterns excludedNamePattern excludedNamePatterns| |
11105 | 426 |
|
427 |
filesOnlyInDirectory1 := OrderedCollection new. |
|
428 |
filesOnlyInDirectory2 := OrderedCollection new. |
|
429 |
directoriesOnlyInDirectory1 := OrderedCollection new. |
|
430 |
directoriesOnlyInDirectory2 := OrderedCollection new. |
|
431 |
filesWhichAreDifferent := OrderedCollection new. |
|
432 |
||
433 |
dir1 := self directory1Holder value. |
|
434 |
dir1 isNil ifTrue:[^ self]. |
|
435 |
||
436 |
dir2 := self directory2Holder value. |
|
437 |
dir2 isNil ifTrue:[^ self]. |
|
438 |
||
439 |
dir1 := dir1 asFilename. |
|
440 |
dir2 := dir2 asFilename. |
|
441 |
||
11123 | 442 |
dir1 pathName = dir2 pathName ifTrue:[ |
443 |
self notify:('Same folder.' allBold). |
|
444 |
^ self. |
|
445 |
]. |
|
446 |
||
11121 | 447 |
namePattern := self namePatternHolder value. |
11123 | 448 |
namePattern notEmptyOrNil ifTrue:[ |
449 |
namePatterns := namePattern asCollectionOfSubstringsSeparatedByAny:',;'. |
|
450 |
namePatterns := namePatterns collect:[:p | p withoutSeparators ]. |
|
451 |
]. |
|
11121 | 452 |
excludedNamePattern := self excludedNamePatternHolder value. |
11123 | 453 |
excludedNamePattern notEmptyOrNil ifTrue:[ |
454 |
excludedNamePatterns := excludedNamePattern asCollectionOfSubstringsSeparatedByAny:',;'. |
|
455 |
excludedNamePatterns := excludedNamePatterns collect:[:p | p withoutSeparators ]. |
|
456 |
]. |
|
11564 | 457 |
self matchedFilesList removeAll. |
458 |
self windowGroup repairDamage. |
|
11121 | 459 |
|
11105 | 460 |
self |
461 |
startSearchTask:[ |
|
462 |
self changeInformationTo:'Directory Diff - searching ' toTab:true. |
|
463 |
||
464 |
self shownListHolder valueHolder:(self matchedFilesList). |
|
465 |
||
466 |
dir1 recursiveDirectoryContentsDo:[:relFn1 | |
|
467 |
|fn1 fn2| |
|
468 |
||
11123 | 469 |
fn1 := dir1 construct:relFn1. |
470 |
(namePatterns isNil or:[namePatterns contains:[:p | p match:fn1 baseName]]) ifTrue:[ |
|
471 |
(excludedNamePatterns notNil and:[excludedNamePatterns contains:[:p | p match:fn1 baseName]]) ifFalse:[ |
|
11121 | 472 |
fn2 := dir2 construct:relFn1. |
473 |
fn1 isDirectory ifTrue:[ |
|
474 |
self notify:('Comparing %1...' bindWith:relFn1 asString allBold). |
|
475 |
fn2 exists ifFalse:[ |
|
476 |
directoriesOnlyInDirectory1 add:fn1. |
|
477 |
self matchedFilesList add:{ relFn1 . 'Directory only in directory1' }. |
|
478 |
]. |
|
479 |
] ifFalse:[ |
|
480 |
fn2 exists ifTrue:[ |
|
481 |
(fn1 sameContentsAs:fn2) ifFalse:[ |
|
482 |
filesWhichAreDifferent add:fn1. |
|
483 |
self matchedFilesList add:{ relFn1 . 'Different' }. |
|
484 |
]. |
|
485 |
] ifFalse:[ |
|
486 |
filesOnlyInDirectory1 add:fn1. |
|
487 |
self matchedFilesList add:{ relFn1 . 'File only in directory1' }. |
|
488 |
]. |
|
11105 | 489 |
]. |
11121 | 490 |
] |
491 |
] |
|
11105 | 492 |
]. |
493 |
dir2 recursiveDirectoryContentsDo:[:relFn2 | |
|
494 |
|fn1 fn2| |
|
495 |
||
11123 | 496 |
fn2 := dir2 construct:relFn2. |
497 |
(namePatterns isNil or:[namePatterns contains:[:p | p match:fn2 baseName]]) ifTrue:[ |
|
498 |
(excludedNamePatterns notNil and:[excludedNamePatterns contains:[:p | p match:fn2 baseName]]) ifFalse:[ |
|
11121 | 499 |
fn1 := dir1 construct:relFn2. |
500 |
fn1 exists ifFalse:[ |
|
501 |
fn1 isDirectory ifTrue:[ |
|
502 |
directoriesOnlyInDirectory1 add:fn1. |
|
503 |
self matchedFilesList add:{ relFn2 . 'Directory only in directory2' }. |
|
504 |
] ifFalse:[ |
|
505 |
filesOnlyInDirectory2 add:fn2. |
|
506 |
self matchedFilesList add:{ relFn2 . 'File only in directory2' }. |
|
507 |
] |
|
508 |
]. |
|
509 |
]. |
|
510 |
] |
|
11105 | 511 |
]. |
512 |
filesOnlyInDirectory1 notEmpty ifTrue:[ |
|
513 |
Transcript showCR:('%1 files only in directory1' bindWith:filesOnlyInDirectory1 size). |
|
514 |
]. |
|
515 |
filesOnlyInDirectory2 notEmpty ifTrue:[ |
|
516 |
Transcript showCR:('%1 files only in directory2' bindWith:filesOnlyInDirectory2 size). |
|
517 |
]. |
|
518 |
directoriesOnlyInDirectory1 notEmpty ifTrue:[ |
|
519 |
Transcript showCR:('%1 directories only in directory1' bindWith:directoriesOnlyInDirectory1 size). |
|
520 |
]. |
|
521 |
directoriesOnlyInDirectory2 notEmpty ifTrue:[ |
|
522 |
Transcript showCR:('%1 directories only in directory2' bindWith:directoriesOnlyInDirectory2 size). |
|
523 |
]. |
|
524 |
filesWhichAreDifferent notEmpty ifTrue:[ |
|
525 |
Transcript showCR:('%1 files are different' bindWith:filesWhichAreDifferent size). |
|
526 |
] |
|
527 |
] |
|
528 |
name:'Directory Diff'. |
|
529 |
||
530 |
"Created: / 12-01-2012 / 01:07:20 / cg" |
|
531 |
! ! |
|
532 |
||
533 |
!DirectoryDifferenceViewApplication methodsFor:'startup & release'! |
|
534 |
||
535 |
postOpenWith:aBuilder |
|
536 |
super postOpenWith:aBuilder. |
|
537 |
self doSearch |
|
538 |
||
539 |
"Created: / 12-01-2012 / 01:41:18 / cg" |
|
540 |
! ! |
|
541 |
||
542 |
!DirectoryDifferenceViewApplication class methodsFor:'documentation'! |
|
543 |
||
544 |
version |
|
17708 | 545 |
^ '$Header$' |
11105 | 546 |
! |
547 |
||
548 |
version_CVS |
|
17708 | 549 |
^ '$Header$' |
11105 | 550 |
! ! |
13818 | 551 |