AbortOperationRequest.st
author Patrik Svestka <patrik.svestka@gmail.com>
Thu, 02 Dec 2021 12:27:29 +0100
branchjv
changeset 25440 039a5cea86c3
parent 17911 a99f15c5efa5
permissions -rw-r--r--
Fixing incorrect order of classes when loading The following is correct autoload order: - UnixDesktop - XDGDesktop - GNOMEDesktop
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
"
6202
019a88a45ad7 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
"{ Package: 'stx:libbasic' }"
019a88a45ad7 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
8675
ceef81bb2d0c AbortOperationRequest is now a subclass (and child-Exception) of.
Stefan Vogel <sv@exept.de>
parents: 8325
diff changeset
    14
AbortAllOperationRequest subclass:#AbortOperationRequest
6202
019a88a45ad7 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    15
	instanceVariableNames:''
019a88a45ad7 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
	classVariableNames:''
019a88a45ad7 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
	poolDictionaries:''
6207
b53b64413b40 caetgory change and documentation added
Claus Gittinger <cg@exept.de>
parents: 6202
diff changeset
    18
	category:'Kernel-Exceptions-Control'
6202
019a88a45ad7 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
!
019a88a45ad7 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
6207
b53b64413b40 caetgory change and documentation added
Claus Gittinger <cg@exept.de>
parents: 6202
diff changeset
    21
!AbortOperationRequest class methodsFor:'documentation'!
b53b64413b40 caetgory change and documentation added
Claus Gittinger <cg@exept.de>
parents: 6202
diff changeset
    22
7588
1819a1c408f3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6207
diff changeset
    23
copyright
1819a1c408f3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6207
diff changeset
    24
"
1819a1c408f3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6207
diff changeset
    25
 COPYRIGHT (c) 2001 by eXept Software AG
1819a1c408f3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6207
diff changeset
    26
              All Rights Reserved
1819a1c408f3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6207
diff changeset
    27
1819a1c408f3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6207
diff changeset
    28
 This software is furnished under a license and may be used
1819a1c408f3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6207
diff changeset
    29
 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
    30
 inclusion of the above copyright notice.   This software may not
1819a1c408f3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6207
diff changeset
    31
 be provided or otherwise made available to, or used by, any
1819a1c408f3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6207
diff changeset
    32
 other person.  No title to or ownership of the software is
1819a1c408f3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6207
diff changeset
    33
 hereby transferred.
1819a1c408f3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6207
diff changeset
    34
"
1819a1c408f3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6207
diff changeset
    35
!
1819a1c408f3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6207
diff changeset
    36
6207
b53b64413b40 caetgory change and documentation added
Claus Gittinger <cg@exept.de>
parents: 6202
diff changeset
    37
documentation
b53b64413b40 caetgory change and documentation added
Claus Gittinger <cg@exept.de>
parents: 6202
diff changeset
    38
"
b53b64413b40 caetgory change and documentation added
Claus Gittinger <cg@exept.de>
parents: 6202
diff changeset
    39
    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
    40
    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
    41
    or by many dialogs 'Cancel' key.
b53b64413b40 caetgory change and documentation added
Claus Gittinger <cg@exept.de>
parents: 6202
diff changeset
    42
b53b64413b40 caetgory change and documentation added
Claus Gittinger <cg@exept.de>
parents: 6202
diff changeset
    43
    If unhandled, this is a no-op,
b53b64413b40 caetgory change and documentation added
Claus Gittinger <cg@exept.de>
parents: 6202
diff changeset
    44
    however, all windows catch this signal in their main event handling
b53b64413b40 caetgory change and documentation added
Claus Gittinger <cg@exept.de>
parents: 6202
diff changeset
    45
    loop to allow for whatever operation is ongoing to be cancelled.
b53b64413b40 caetgory change and documentation added
Claus Gittinger <cg@exept.de>
parents: 6202
diff changeset
    46
b53b64413b40 caetgory change and documentation added
Claus Gittinger <cg@exept.de>
parents: 6202
diff changeset
    47
    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
    48
    the debuggers 'Abort'-button.
b53b64413b40 caetgory change and documentation added
Claus Gittinger <cg@exept.de>
parents: 6202
diff changeset
    49
"
b53b64413b40 caetgory change and documentation added
Claus Gittinger <cg@exept.de>
parents: 6202
diff changeset
    50
! !
6202
019a88a45ad7 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    51
8325
ad394527946b Convert more instance based exceptions to class based exceptions
Stefan Vogel <sv@exept.de>
parents: 7588
diff changeset
    52
!AbortOperationRequest class methodsFor:'initialization'!
ad394527946b Convert more instance based exceptions to class based exceptions
Stefan Vogel <sv@exept.de>
parents: 7588
diff changeset
    53
ad394527946b Convert more instance based exceptions to class based exceptions
Stefan Vogel <sv@exept.de>
parents: 7588
diff changeset
    54
initialize
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
    NotifierString := 'abort operation requested'.
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
    "
ad394527946b Convert more instance based exceptions to class based exceptions
Stefan Vogel <sv@exept.de>
parents: 7588
diff changeset
    59
     self initialize
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
! !
ad394527946b Convert more instance based exceptions to class based exceptions
Stefan Vogel <sv@exept.de>
parents: 7588
diff changeset
    62
6202
019a88a45ad7 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    63
!AbortOperationRequest class methodsFor:'documentation'!
019a88a45ad7 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    64
019a88a45ad7 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    65
version
17892
d86c8bd5ece3 Merged with CVS
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17869
diff changeset
    66
    ^ '$Header: /cvs/stx/stx/libbasic/AbortOperationRequest.st,v 1.5 2005/01/11 17:04:57 stefan Exp $'
17761
b0e5971141bc Added Lookup and BuiltinLookup classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17711
diff changeset
    67
!
b0e5971141bc Added Lookup and BuiltinLookup classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17711
diff changeset
    68
b0e5971141bc Added Lookup and BuiltinLookup classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17711
diff changeset
    69
version_SVN
17911
a99f15c5efa5 Updated with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17910
diff changeset
    70
    ^ '$Id: AbortOperationRequest.st 10761 2012-01-19 11:46:00Z vranyj1 $'
6202
019a88a45ad7 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    71
! !
8325
ad394527946b Convert more instance based exceptions to class based exceptions
Stefan Vogel <sv@exept.de>
parents: 7588
diff changeset
    72
17846
24edc476ac18 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17845
diff changeset
    73
AbortOperationRequest initialize!
17892
d86c8bd5ece3 Merged with CVS
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17869
diff changeset
    74
17910
8d796ca8bd1d Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17892
diff changeset
    75
17911
a99f15c5efa5 Updated with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17910
diff changeset
    76