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