DoNotShowCompilerWarningAgainForThisMethodActionQuery.st
author Jan Vrany <jan.vrany@labware.com>
Thu, 27 Oct 2022 14:53:59 +0100
branchjv
changeset 4735 3b11fb3ede98
parent 2835 6a041661b972
permissions -rw-r--r--
Allow single underscore as method / block argument and temporaries This commit is a follow up for 38b221e.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2835
6a041661b972 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     1
"
6a041661b972 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     2
 COPYRIGHT (c) 2012 by eXept Software AG
6a041661b972 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     3
              All Rights Reserved
6a041661b972 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     4
6a041661b972 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     5
 This software is furnished under a license and may be used
6a041661b972 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     6
 only in accordance with the terms of that license and with the
6a041661b972 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
6a041661b972 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     8
 be provided or otherwise made available to, or used by, any
6a041661b972 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     9
 other person.  No title to or ownership of the software is
6a041661b972 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    10
 hereby transferred.
6a041661b972 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    11
"
6a041661b972 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
"{ Package: 'stx:libcomp' }"
6a041661b972 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
6a041661b972 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
Query subclass:#DoNotShowCompilerWarningAgainForThisMethodActionQuery
6a041661b972 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    15
	instanceVariableNames:''
6a041661b972 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
	classVariableNames:''
6a041661b972 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
	poolDictionaries:''
6a041661b972 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
	category:'System-Compiler'
6a041661b972 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
!
6a041661b972 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
6a041661b972 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
!DoNotShowCompilerWarningAgainForThisMethodActionQuery class methodsFor:'documentation'!
6a041661b972 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
6a041661b972 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
copyright
6a041661b972 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    24
"
6a041661b972 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    25
 COPYRIGHT (c) 2012 by eXept Software AG
6a041661b972 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
              All Rights Reserved
6a041661b972 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    27
6a041661b972 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    28
 This software is furnished under a license and may be used
6a041661b972 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    29
 only in accordance with the terms of that license and with the
6a041661b972 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    30
 inclusion of the above copyright notice.   This software may not
6a041661b972 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    31
 be provided or otherwise made available to, or used by, any
6a041661b972 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    32
 other person.  No title to or ownership of the software is
6a041661b972 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    33
 hereby transferred.
6a041661b972 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    34
"
6a041661b972 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    35
!
6a041661b972 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    36
6a041661b972 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    37
documentation
6a041661b972 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    38
"
6a041661b972 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    39
    Used to ask if a warning should be shown again.
6a041661b972 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    40
    When the compiler makes an error notification, it raises this query to
6a041661b972 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    41
    ask for an actionblock. If the query is not answered, the 'no not show again' dialog
6a041661b972 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    42
    is not shown.
6a041661b972 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    43
    If it is answered, the returned value must be the block.
6a041661b972 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    44
    The dialog is shown, and if the user confirms (do not show again), the block is called.
6a041661b972 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    45
    The block is typically provided from the warning generation code, which sets/clears
6a041661b972 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    46
    some flag in the user preferences.
6a041661b972 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    47
"
6a041661b972 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    48
! !
6a041661b972 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    49
6a041661b972 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    50
!DoNotShowCompilerWarningAgainForThisMethodActionQuery class methodsFor:'queries'!
6a041661b972 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    51
6a041661b972 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    52
actionQuery
6a041661b972 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    53
    ^ self query
6a041661b972 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    54
! !
6a041661b972 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    55
6a041661b972 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    56
!DoNotShowCompilerWarningAgainForThisMethodActionQuery class methodsFor:'documentation'!
6a041661b972 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    57
6a041661b972 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    58
version
6a041661b972 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    59
    ^ '$Header: /cvs/stx/stx/libcomp/DoNotShowCompilerWarningAgainForThisMethodActionQuery.st,v 1.1 2012-02-28 17:45:31 cg Exp $'
6a041661b972 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    60
!
6a041661b972 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    61
6a041661b972 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    62
version_CVS
6a041661b972 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    63
    ^ '$Header: /cvs/stx/stx/libcomp/DoNotShowCompilerWarningAgainForThisMethodActionQuery.st,v 1.1 2012-02-28 17:45:31 cg Exp $'
6a041661b972 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    64
! !