author | Jan Vrany <jan.vrany@labware.com> |
Wed, 02 Aug 2023 13:04:52 +0100 | |
branch | jv |
changeset 25462 | 548cb62b20c7 |
parent 17911 | a99f15c5efa5 |
permissions | -rw-r--r-- |
8329 | 1 |
" |
2 |
COPYRIGHT (c) 2003 by eXept Software AG |
|
3 |
All Rights Reserved |
|
4 |
||
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
12 |
"{ Package: 'stx:libbasic' }" |
|
13 |
||
14 |
UserNotification subclass:#ActivityNotification |
|
15 |
instanceVariableNames:'' |
|
16 |
classVariableNames:'' |
|
17 |
poolDictionaries:'' |
|
11194 | 18 |
category:'Kernel-Exceptions-Notifications' |
8329 | 19 |
! |
20 |
||
21 |
!ActivityNotification class methodsFor:'documentation'! |
|
22 |
||
23 |
copyright |
|
24 |
" |
|
25 |
COPYRIGHT (c) 2003 by eXept Software AG |
|
26 |
All Rights Reserved |
|
27 |
||
28 |
This software is furnished under a license and may be used |
|
29 |
only in accordance with the terms of that license and with the |
|
30 |
inclusion of the above copyright notice. This software may not |
|
31 |
be provided or otherwise made available to, or used by, any |
|
32 |
other person. No title to or ownership of the software is |
|
33 |
hereby transferred. |
|
34 |
" |
|
35 |
! |
|
36 |
||
37 |
documentation |
|
38 |
" |
|
39 |
ActivityNotification can be raised from deeply nested methods, which are going to perform |
|
40 |
some long-time activity. |
|
41 |
||
8371 | 42 |
If there is a handler for the ActivityNotification, that one is called, |
8329 | 43 |
passing the argument. The handler should show this message whereever it likes, |
44 |
and proceed. If there is no handler, ActivityNotification is simply ignored. |
|
45 |
||
46 |
This is very useful to pass busy messages up to some higher level (typically a view) |
|
47 |
which likes to display that message in its label or a busy-box. |
|
48 |
It could also be put into some logfile or printed on the standard output/error. |
|
49 |
||
50 |
[see also:] |
|
51 |
Signal |
|
52 |
" |
|
53 |
! ! |
|
54 |
||
55 |
!ActivityNotification class methodsFor:'initialization'! |
|
56 |
||
57 |
initialize |
|
58 |
||
59 |
NotifierString := 'activity'. |
|
60 |
||
61 |
" |
|
62 |
self initialize |
|
63 |
" |
|
64 |
! ! |
|
65 |
||
10515 | 66 |
!ActivityNotification methodsFor:'default actions'! |
67 |
||
68 |
defaultAction |
|
69 |
"the default action is to do nothing" |
|
70 |
||
71 |
self proceed. |
|
72 |
! ! |
|
73 |
||
8329 | 74 |
!ActivityNotification class methodsFor:'documentation'! |
75 |
||
76 |
version |
|
17892 | 77 |
^ '$Header: /cvs/stx/stx/libbasic/ActivityNotification.st,v 1.4 2008/10/04 08:42:14 cg Exp $' |
17761
b0e5971141bc
Added Lookup and BuiltinLookup classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
78 |
! |
b0e5971141bc
Added Lookup and BuiltinLookup classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
79 |
|
b0e5971141bc
Added Lookup and BuiltinLookup classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
80 |
version_SVN |
17911 | 81 |
^ '$Id: ActivityNotification.st 10761 2012-01-19 11:46:00Z vranyj1 $' |
8329 | 82 |
! ! |
83 |
||
17846 | 84 |
ActivityNotification initialize! |
17892 | 85 |
|
17910 | 86 |
|
17911 | 87 |