23870
|
1 |
"{ Encoding: utf8 }"
|
|
2 |
|
21453
|
3 |
"
|
|
4 |
COPYRIGHT (c) 2015 by Claus Gittinger / eXept Software AG
|
|
5 |
All Rights Reserved
|
17586
|
6 |
|
21453
|
7 |
This software is furnished under a license and may be used
|
|
8 |
only in accordance with the terms of that license and with the
|
|
9 |
inclusion of the above copyright notice. This software may not
|
|
10 |
be provided or otherwise made available to, or used by, any
|
|
11 |
other person. No title to or ownership of the software is
|
|
12 |
hereby transferred.
|
|
13 |
"
|
17347
|
14 |
"{ Package: 'stx:libbasic' }"
|
|
15 |
|
|
16 |
"{ NameSpace: Smalltalk }"
|
|
17 |
|
|
18 |
Query subclass:#LoadInProgressQuery
|
|
19 |
instanceVariableNames:''
|
|
20 |
classVariableNames:''
|
|
21 |
poolDictionaries:''
|
|
22 |
category:'Kernel-Exceptions-Queries'
|
|
23 |
!
|
|
24 |
|
|
25 |
!LoadInProgressQuery class methodsFor:'documentation'!
|
|
26 |
|
21453
|
27 |
copyright
|
|
28 |
"
|
|
29 |
COPYRIGHT (c) 2015 by Claus Gittinger / eXept Software AG
|
|
30 |
All Rights Reserved
|
|
31 |
|
|
32 |
This software is furnished under a license and may be used
|
|
33 |
only in accordance with the terms of that license and with the
|
|
34 |
inclusion of the above copyright notice. This software may not
|
|
35 |
be provided or otherwise made available to, or used by, any
|
|
36 |
other person. No title to or ownership of the software is
|
|
37 |
hereby transferred.
|
|
38 |
"
|
|
39 |
!
|
|
40 |
|
17347
|
41 |
documentation
|
|
42 |
"
|
|
43 |
Abstract superclass of queries which are answered during package or class loading,
|
|
44 |
and allows for browsers to defer their updates.
|
|
45 |
E.g. to bundle redraws when multiple changes are to come
|
17586
|
46 |
for a class or package in browsers.
|
17347
|
47 |
"
|
|
48 |
! !
|
|
49 |
|
|
50 |
!LoadInProgressQuery class methodsFor:'answering queries during load'!
|
|
51 |
|
|
52 |
answerNotifyLoadingDo:aBlock
|
23870
|
53 |
^ [
|
17347
|
54 |
Smalltalk changed:#preLoad.
|
|
55 |
self answer:true do:aBlock
|
|
56 |
] ensure:[
|
|
57 |
Smalltalk changed:#postLoad
|
|
58 |
].
|
23870
|
59 |
|
|
60 |
"Modified: / 12-03-2019 / 18:01:11 / Stefan Vogel"
|
17347
|
61 |
! !
|
|
62 |
|
17446
|
63 |
!LoadInProgressQuery methodsFor:'defaults'!
|
|
64 |
|
|
65 |
defaultResumeValue
|
|
66 |
"the default answer, if no one handles the query"
|
|
67 |
|
|
68 |
^ false
|
|
69 |
|
|
70 |
"
|
|
71 |
self query
|
|
72 |
"
|
|
73 |
! !
|
|
74 |
|
17347
|
75 |
!LoadInProgressQuery class methodsFor:'documentation'!
|
|
76 |
|
|
77 |
version
|
21453
|
78 |
^ '$Header$'
|
17347
|
79 |
!
|
|
80 |
|
|
81 |
version_CVS
|
21453
|
82 |
^ '$Header$'
|
17347
|
83 |
! !
|
|
84 |
|