17347
|
1 |
"{ Package: 'stx:libbasic' }"
|
|
2 |
|
|
3 |
"{ NameSpace: Smalltalk }"
|
|
4 |
|
|
5 |
Query subclass:#LoadInProgressQuery
|
|
6 |
instanceVariableNames:''
|
|
7 |
classVariableNames:''
|
|
8 |
poolDictionaries:''
|
|
9 |
category:'Kernel-Exceptions-Queries'
|
|
10 |
!
|
|
11 |
|
|
12 |
!LoadInProgressQuery class methodsFor:'documentation'!
|
|
13 |
|
|
14 |
documentation
|
|
15 |
"
|
|
16 |
Abstract superclass of queries which are answered during package or class loading,
|
|
17 |
and allows for browsers to defer their updates.
|
|
18 |
E.g. to bundle redraws when multiple changes are to come
|
|
19 |
for a class or package.
|
|
20 |
"
|
|
21 |
! !
|
|
22 |
|
|
23 |
!LoadInProgressQuery class methodsFor:'answering queries during load'!
|
|
24 |
|
|
25 |
answerNotifyLoadingDo:aBlock
|
|
26 |
[
|
|
27 |
Smalltalk changed:#preLoad.
|
|
28 |
self answer:true do:aBlock
|
|
29 |
] ensure:[
|
|
30 |
Smalltalk changed:#postLoad
|
|
31 |
].
|
|
32 |
! !
|
|
33 |
|
17446
|
34 |
!LoadInProgressQuery methodsFor:'defaults'!
|
|
35 |
|
|
36 |
defaultResumeValue
|
|
37 |
"the default answer, if no one handles the query"
|
|
38 |
|
|
39 |
^ false
|
|
40 |
|
|
41 |
"
|
|
42 |
self query
|
|
43 |
"
|
|
44 |
! !
|
|
45 |
|
17347
|
46 |
!LoadInProgressQuery class methodsFor:'documentation'!
|
|
47 |
|
|
48 |
version
|
17446
|
49 |
^ '$Header: /cvs/stx/stx/libbasic/LoadInProgressQuery.st,v 1.2 2015-02-07 17:47:24 cg Exp $'
|
17347
|
50 |
!
|
|
51 |
|
|
52 |
version_CVS
|
17446
|
53 |
^ '$Header: /cvs/stx/stx/libbasic/LoadInProgressQuery.st,v 1.2 2015-02-07 17:47:24 cg Exp $'
|
17347
|
54 |
! !
|
|
55 |
|