WarningCompilationErrorHandler.st
author Claus Gittinger <cg@exept.de>
Wed, 29 Oct 2003 11:45:21 +0100
changeset 1472 d69fc5970cd7
parent 1451 44ef4c3ba214
child 1490 eca3e274d627
permissions -rw-r--r--
*** empty log message ***
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1451
44ef4c3ba214 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1332
diff changeset
     1
"
44ef4c3ba214 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1332
diff changeset
     2
 COPYRIGHT (c) 1999 by eXept Software AG
44ef4c3ba214 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1332
diff changeset
     3
              All Rights Reserved
44ef4c3ba214 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1332
diff changeset
     4
44ef4c3ba214 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1332
diff changeset
     5
 This software is furnished under a license and may be used
44ef4c3ba214 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1332
diff changeset
     6
 only in accordance with the terms of that license and with the
44ef4c3ba214 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1332
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
44ef4c3ba214 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1332
diff changeset
     8
 be provided or otherwise made available to, or used by, any
44ef4c3ba214 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1332
diff changeset
     9
 other person.  No title to or ownership of the software is
44ef4c3ba214 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1332
diff changeset
    10
 hereby transferred.
44ef4c3ba214 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1332
diff changeset
    11
"
44ef4c3ba214 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1332
diff changeset
    12
1332
1f64577c44b5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
    13
"{ Package: 'stx:libcomp' }"
1f64577c44b5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
    14
927
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    15
CompilationErrorHandler subclass:#WarningCompilationErrorHandler
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
	instanceVariableNames:''
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
	classVariableNames:''
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
	poolDictionaries:''
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
	category:'System-Compiler'
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
!
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
1332
1f64577c44b5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
    22
!WarningCompilationErrorHandler class methodsFor:'documentation'!
1f64577c44b5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
    23
1451
44ef4c3ba214 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1332
diff changeset
    24
copyright
44ef4c3ba214 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1332
diff changeset
    25
"
44ef4c3ba214 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1332
diff changeset
    26
 COPYRIGHT (c) 1999 by eXept Software AG
44ef4c3ba214 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1332
diff changeset
    27
              All Rights Reserved
44ef4c3ba214 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1332
diff changeset
    28
44ef4c3ba214 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1332
diff changeset
    29
 This software is furnished under a license and may be used
44ef4c3ba214 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1332
diff changeset
    30
 only in accordance with the terms of that license and with the
44ef4c3ba214 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1332
diff changeset
    31
 inclusion of the above copyright notice.   This software may not
44ef4c3ba214 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1332
diff changeset
    32
 be provided or otherwise made available to, or used by, any
44ef4c3ba214 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1332
diff changeset
    33
 other person.  No title to or ownership of the software is
44ef4c3ba214 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1332
diff changeset
    34
 hereby transferred.
44ef4c3ba214 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1332
diff changeset
    35
"
44ef4c3ba214 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1332
diff changeset
    36
!
44ef4c3ba214 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1332
diff changeset
    37
1332
1f64577c44b5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
    38
documentation
1f64577c44b5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
    39
"
1f64577c44b5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
    40
    I am a warning ErrorHandler - i.e. showing a warning for
1f64577c44b5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
    41
    compilation errors.
1f64577c44b5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
    42
"
1f64577c44b5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
    43
! !
927
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    44
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    45
!WarningCompilationErrorHandler methodsFor:'error handling'!
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    46
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    47
error:aMessage position:position to:endPos from:aCompiler
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    48
    "error notification.
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    49
     This is sent by the compiler/evaluator if it detects errors."
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    50
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    51
    |box|
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    52
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    53
    box := TextBox new.
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    54
    box initialText:currentSource.
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    55
    box label:aMessage.
929
4cd47fa33c28 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
    56
    box textView selectFromCharacterPosition:(position?1) to:(endPos?currentSource size).
927
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    57
    box open.
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    58
    ^ false
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    59
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    60
    "Created: / 30.7.1999 / 18:10:22 / cg"
929
4cd47fa33c28 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
    61
    "Modified: / 30.7.1999 / 22:37:30 / cg"
927
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    62
! !
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    63
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    64
!WarningCompilationErrorHandler class methodsFor:'documentation'!
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    65
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    66
version
1451
44ef4c3ba214 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1332
diff changeset
    67
    ^ '$Header: /cvs/stx/stx/libcomp/WarningCompilationErrorHandler.st,v 1.4 2003-08-30 12:37:35 cg Exp $'
927
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    68
! !