23222
|
1 |
"{ Encoding: utf8 }"
|
|
2 |
|
8329
|
3 |
"
|
|
4 |
COPYRIGHT (c) 2003 by eXept Software AG
|
|
5 |
All Rights Reserved
|
|
6 |
|
|
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 |
"
|
|
14 |
"{ Package: 'stx:libbasic' }"
|
|
15 |
|
23222
|
16 |
"{ NameSpace: Smalltalk }"
|
|
17 |
|
8329
|
18 |
UserNotification subclass:#ActivityNotification
|
|
19 |
instanceVariableNames:''
|
|
20 |
classVariableNames:''
|
|
21 |
poolDictionaries:''
|
11194
|
22 |
category:'Kernel-Exceptions-Notifications'
|
8329
|
23 |
!
|
|
24 |
|
|
25 |
!ActivityNotification class methodsFor:'documentation'!
|
|
26 |
|
|
27 |
copyright
|
|
28 |
"
|
|
29 |
COPYRIGHT (c) 2003 by 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 |
|
|
41 |
documentation
|
|
42 |
"
|
|
43 |
ActivityNotification can be raised from deeply nested methods, which are going to perform
|
|
44 |
some long-time activity.
|
|
45 |
|
8371
|
46 |
If there is a handler for the ActivityNotification, that one is called,
|
23222
|
47 |
passing the argument. The handler should show this message wherever it likes,
|
|
48 |
and proceed.
|
|
49 |
If there is no handler, ActivityNotification is simply ignored.
|
8329
|
50 |
|
|
51 |
This is very useful to pass busy messages up to some higher level (typically a view)
|
|
52 |
which likes to display that message in its label or a busy-box.
|
|
53 |
It could also be put into some logfile or printed on the standard output/error.
|
|
54 |
|
|
55 |
[see also:]
|
|
56 |
Signal
|
|
57 |
"
|
|
58 |
! !
|
|
59 |
|
|
60 |
!ActivityNotification class methodsFor:'initialization'!
|
|
61 |
|
|
62 |
initialize
|
|
63 |
|
|
64 |
NotifierString := 'activity'.
|
|
65 |
|
|
66 |
"
|
|
67 |
self initialize
|
|
68 |
"
|
|
69 |
! !
|
|
70 |
|
10515
|
71 |
!ActivityNotification methodsFor:'default actions'!
|
|
72 |
|
|
73 |
defaultAction
|
|
74 |
"the default action is to do nothing"
|
|
75 |
|
|
76 |
self proceed.
|
|
77 |
! !
|
|
78 |
|
8329
|
79 |
!ActivityNotification class methodsFor:'documentation'!
|
|
80 |
|
|
81 |
version
|
23222
|
82 |
^ '$Header$'
|
8329
|
83 |
! !
|
|
84 |
|
23222
|
85 |
|
8329
|
86 |
ActivityNotification initialize!
|