23871
|
1 |
"{ Encoding: utf8 }"
|
|
2 |
|
17349
|
3 |
"{ Package: 'stx:libbasic' }"
|
|
4 |
|
|
5 |
"{ NameSpace: Smalltalk }"
|
|
6 |
|
|
7 |
LoadInProgressQuery subclass:#PackageLoadInProgressQuery
|
|
8 |
instanceVariableNames:'packageBeingLoaded'
|
|
9 |
classVariableNames:''
|
|
10 |
poolDictionaries:''
|
|
11 |
category:'Kernel-Exceptions-Queries'
|
|
12 |
!
|
|
13 |
|
|
14 |
!PackageLoadInProgressQuery class methodsFor:'documentation'!
|
|
15 |
|
|
16 |
documentation
|
|
17 |
"
|
|
18 |
This query is answered during package loading,
|
|
19 |
and allows for browsers to defer their updates.
|
|
20 |
E.g. to bundle redraws when multiple changes are to come
|
|
21 |
for a class or package.
|
|
22 |
"
|
|
23 |
! !
|
|
24 |
|
|
25 |
!PackageLoadInProgressQuery class methodsFor:'answering queries during load'!
|
|
26 |
|
|
27 |
answerNotifyLoading:what do:aBlock
|
23871
|
28 |
^ [
|
17349
|
29 |
Smalltalk changed:#prePackageLoad with:what.
|
|
30 |
self answer:true do:aBlock
|
|
31 |
] ensure:[
|
|
32 |
Smalltalk changed:#postPackageLoad with:what.
|
|
33 |
].
|
23871
|
34 |
|
|
35 |
"Modified (format): / 12-03-2019 / 17:51:13 / Stefan Vogel"
|
17349
|
36 |
! !
|
|
37 |
|
|
38 |
!PackageLoadInProgressQuery class methodsFor:'documentation'!
|
|
39 |
|
|
40 |
version
|
23871
|
41 |
^ '$Header$'
|
17349
|
42 |
!
|
|
43 |
|
|
44 |
version_CVS
|
23871
|
45 |
^ '$Header$'
|
17349
|
46 |
! !
|
|
47 |
|