--- a/AbstractFileFinderApplicationComponent.st Sat Feb 07 18:48:22 2015 +0100
+++ b/AbstractFileFinderApplicationComponent.st Sat Feb 07 18:52:18 2015 +0100
@@ -128,7 +128,7 @@
searchTask := thisSearchTask :=
[
- |message time|
+ |message time nFound|
[
(self stopSignal) catch:[
@@ -147,10 +147,13 @@
] ifFalse:[
time := time printString , ' ms'
].
+ nFound := resultList size.
message := resources
- string:'Found %1 file%2 in %3 (%4 files visited).'
- with:(resultList size)
- with:(resultList size == 1 ifTrue:'' ifFalse:'s')
+ string:((nFound == filesSearchedCount)
+ ifTrue:['Found %1 file%2 in %3.']
+ ifFalse:['Found %1 file%2 in %3 (%4 files visited).'])
+ with:nFound
+ with:(nFound == 1 ifTrue:'' ifFalse:'s')
with:time
with:filesSearchedCount.
self enableStop value:false.
@@ -485,10 +488,10 @@
!AbstractFileFinderApplicationComponent class methodsFor:'documentation'!
version
- ^ '$Header: /cvs/stx/stx/libtool/AbstractFileFinderApplicationComponent.st,v 1.13 2015-02-07 14:21:50 cg Exp $'
+ ^ '$Header: /cvs/stx/stx/libtool/AbstractFileFinderApplicationComponent.st,v 1.14 2015-02-07 17:52:18 cg Exp $'
!
version_CVS
- ^ '$Header: /cvs/stx/stx/libtool/AbstractFileFinderApplicationComponent.st,v 1.13 2015-02-07 14:21:50 cg Exp $'
+ ^ '$Header: /cvs/stx/stx/libtool/AbstractFileFinderApplicationComponent.st,v 1.14 2015-02-07 17:52:18 cg Exp $'
! !