AbortOperationRequest.st
author Claus Gittinger <cg@exept.de>
Tue, 09 Jul 2019 20:55:17 +0200
changeset 24417 03b083548da2
parent 22207 f8fd796bb5a3
permissions -rw-r--r--
#REFACTORING by exept class: Smalltalk class changed: #recursiveInstallAutoloadedClassesFrom:rememberIn:maxLevels:noAutoload:packageTop:showSplashInLevels: Transcript showCR:(... bindWith:...) -> Transcript showCR:... with:...
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
7588
1819a1c408f3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6207
diff changeset
     1
"
1819a1c408f3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6207
diff changeset
     2
 COPYRIGHT (c) 2001 by eXept Software AG
1819a1c408f3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6207
diff changeset
     3
              All Rights Reserved
1819a1c408f3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6207
diff changeset
     4
1819a1c408f3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6207
diff changeset
     5
 This software is furnished under a license and may be used
1819a1c408f3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6207
diff changeset
     6
 only in accordance with the terms of that license and with the
1819a1c408f3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6207
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
1819a1c408f3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6207
diff changeset
     8
 be provided or otherwise made available to, or used by, any
1819a1c408f3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6207
diff changeset
     9
 other person.  No title to or ownership of the software is
1819a1c408f3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6207
diff changeset
    10
 hereby transferred.
1819a1c408f3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6207
diff changeset
    11
"
22207
f8fd796bb5a3 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 8675
diff changeset
    12
"{ Package: 'stx:libbasic' }"
7588
1819a1c408f3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6207
diff changeset
    13
22207
f8fd796bb5a3 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 8675
diff changeset
    14
"{ NameSpace: Smalltalk }"
6202
019a88a45ad7 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    15
8675
ceef81bb2d0c AbortOperationRequest is now a subclass (and child-Exception) of.
Stefan Vogel <sv@exept.de>
parents: 8325
diff changeset
    16
AbortAllOperationRequest subclass:#AbortOperationRequest
6202
019a88a45ad7 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
	instanceVariableNames:''
019a88a45ad7 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
	classVariableNames:''
019a88a45ad7 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
	poolDictionaries:''
6207
b53b64413b40 caetgory change and documentation added
Claus Gittinger <cg@exept.de>
parents: 6202
diff changeset
    20
	category:'Kernel-Exceptions-Control'
6202
019a88a45ad7 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
!
019a88a45ad7 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
6207
b53b64413b40 caetgory change and documentation added
Claus Gittinger <cg@exept.de>
parents: 6202
diff changeset
    23
!AbortOperationRequest class methodsFor:'documentation'!
b53b64413b40 caetgory change and documentation added
Claus Gittinger <cg@exept.de>
parents: 6202
diff changeset
    24
7588
1819a1c408f3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6207
diff changeset
    25
copyright
1819a1c408f3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6207
diff changeset
    26
"
1819a1c408f3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6207
diff changeset
    27
 COPYRIGHT (c) 2001 by eXept Software AG
1819a1c408f3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6207
diff changeset
    28
              All Rights Reserved
1819a1c408f3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6207
diff changeset
    29
1819a1c408f3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6207
diff changeset
    30
 This software is furnished under a license and may be used
1819a1c408f3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6207
diff changeset
    31
 only in accordance with the terms of that license and with the
1819a1c408f3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6207
diff changeset
    32
 inclusion of the above copyright notice.   This software may not
1819a1c408f3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6207
diff changeset
    33
 be provided or otherwise made available to, or used by, any
1819a1c408f3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6207
diff changeset
    34
 other person.  No title to or ownership of the software is
1819a1c408f3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6207
diff changeset
    35
 hereby transferred.
1819a1c408f3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6207
diff changeset
    36
"
1819a1c408f3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6207
diff changeset
    37
!
1819a1c408f3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6207
diff changeset
    38
6207
b53b64413b40 caetgory change and documentation added
Claus Gittinger <cg@exept.de>
parents: 6202
diff changeset
    39
documentation
b53b64413b40 caetgory change and documentation added
Claus Gittinger <cg@exept.de>
parents: 6202
diff changeset
    40
"
b53b64413b40 caetgory change and documentation added
Claus Gittinger <cg@exept.de>
parents: 6202
diff changeset
    41
    Raised when the CTRL-y (abort operation) Key is pressed,
b53b64413b40 caetgory change and documentation added
Claus Gittinger <cg@exept.de>
parents: 6202
diff changeset
    42
    or when the 'Abort'-button is pressed in the Debugger,
b53b64413b40 caetgory change and documentation added
Claus Gittinger <cg@exept.de>
parents: 6202
diff changeset
    43
    or by many dialogs 'Cancel' key.
b53b64413b40 caetgory change and documentation added
Claus Gittinger <cg@exept.de>
parents: 6202
diff changeset
    44
b53b64413b40 caetgory change and documentation added
Claus Gittinger <cg@exept.de>
parents: 6202
diff changeset
    45
    If unhandled, this is a no-op,
b53b64413b40 caetgory change and documentation added
Claus Gittinger <cg@exept.de>
parents: 6202
diff changeset
    46
    however, all windows catch this signal in their main event handling
22207
f8fd796bb5a3 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 8675
diff changeset
    47
    loop to allow for whatever operation is ongoing to be canceled.
6207
b53b64413b40 caetgory change and documentation added
Claus Gittinger <cg@exept.de>
parents: 6202
diff changeset
    48
b53b64413b40 caetgory change and documentation added
Claus Gittinger <cg@exept.de>
parents: 6202
diff changeset
    49
    Pressing CTRL-y has the same behavior as interrupting followed by pressing
b53b64413b40 caetgory change and documentation added
Claus Gittinger <cg@exept.de>
parents: 6202
diff changeset
    50
    the debuggers 'Abort'-button.
b53b64413b40 caetgory change and documentation added
Claus Gittinger <cg@exept.de>
parents: 6202
diff changeset
    51
"
b53b64413b40 caetgory change and documentation added
Claus Gittinger <cg@exept.de>
parents: 6202
diff changeset
    52
! !
6202
019a88a45ad7 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    53
8325
ad394527946b Convert more instance based exceptions to class based exceptions
Stefan Vogel <sv@exept.de>
parents: 7588
diff changeset
    54
!AbortOperationRequest class methodsFor:'initialization'!
ad394527946b Convert more instance based exceptions to class based exceptions
Stefan Vogel <sv@exept.de>
parents: 7588
diff changeset
    55
ad394527946b Convert more instance based exceptions to class based exceptions
Stefan Vogel <sv@exept.de>
parents: 7588
diff changeset
    56
initialize
ad394527946b Convert more instance based exceptions to class based exceptions
Stefan Vogel <sv@exept.de>
parents: 7588
diff changeset
    57
ad394527946b Convert more instance based exceptions to class based exceptions
Stefan Vogel <sv@exept.de>
parents: 7588
diff changeset
    58
    NotifierString := 'abort operation requested'.
ad394527946b Convert more instance based exceptions to class based exceptions
Stefan Vogel <sv@exept.de>
parents: 7588
diff changeset
    59
ad394527946b Convert more instance based exceptions to class based exceptions
Stefan Vogel <sv@exept.de>
parents: 7588
diff changeset
    60
    "
ad394527946b Convert more instance based exceptions to class based exceptions
Stefan Vogel <sv@exept.de>
parents: 7588
diff changeset
    61
     self initialize
ad394527946b Convert more instance based exceptions to class based exceptions
Stefan Vogel <sv@exept.de>
parents: 7588
diff changeset
    62
    "
ad394527946b Convert more instance based exceptions to class based exceptions
Stefan Vogel <sv@exept.de>
parents: 7588
diff changeset
    63
! !
ad394527946b Convert more instance based exceptions to class based exceptions
Stefan Vogel <sv@exept.de>
parents: 7588
diff changeset
    64
6202
019a88a45ad7 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    65
!AbortOperationRequest class methodsFor:'documentation'!
019a88a45ad7 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    66
019a88a45ad7 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    67
version
22207
f8fd796bb5a3 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 8675
diff changeset
    68
    ^ '$Header$'
6202
019a88a45ad7 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    69
! !
8325
ad394527946b Convert more instance based exceptions to class based exceptions
Stefan Vogel <sv@exept.de>
parents: 7588
diff changeset
    70
22207
f8fd796bb5a3 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 8675
diff changeset
    71
8325
ad394527946b Convert more instance based exceptions to class based exceptions
Stefan Vogel <sv@exept.de>
parents: 7588
diff changeset
    72
AbortOperationRequest initialize!