WarningCompilationErrorHandler.st
author Claus Gittinger <cg@exept.de>
Wed, 07 May 2003 12:31:09 +0200
changeset 1412 af3ec9f24a38
parent 1332 1f64577c44b5
child 1451 44ef4c3ba214
permissions -rw-r--r--
array indexing extension (experimental)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1332
1f64577c44b5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
     1
"{ Package: 'stx:libcomp' }"
1f64577c44b5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
     2
927
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     3
CompilationErrorHandler subclass:#WarningCompilationErrorHandler
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     4
	instanceVariableNames:''
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     5
	classVariableNames:''
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     6
	poolDictionaries:''
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     7
	category:'System-Compiler'
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     8
!
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     9
1332
1f64577c44b5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
    10
!WarningCompilationErrorHandler class methodsFor:'documentation'!
1f64577c44b5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
    11
1f64577c44b5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
    12
documentation
1f64577c44b5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
    13
"
1f64577c44b5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
    14
    I am a warning ErrorHandler - i.e. showing a warning for
1f64577c44b5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
    15
    compilation errors.
1f64577c44b5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
    16
"
1f64577c44b5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
    17
! !
927
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
!WarningCompilationErrorHandler methodsFor:'error handling'!
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
error:aMessage position:position to:endPos from:aCompiler
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
    "error notification.
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
     This is sent by the compiler/evaluator if it detects errors."
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    24
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    25
    |box|
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    27
    box := TextBox new.
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    28
    box initialText:currentSource.
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    29
    box label:aMessage.
929
4cd47fa33c28 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
    30
    box textView selectFromCharacterPosition:(position?1) to:(endPos?currentSource size).
927
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    31
    box open.
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    32
    ^ false
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    33
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    34
    "Created: / 30.7.1999 / 18:10:22 / cg"
929
4cd47fa33c28 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
    35
    "Modified: / 30.7.1999 / 22:37:30 / cg"
927
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    36
! !
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    37
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    38
!WarningCompilationErrorHandler class methodsFor:'documentation'!
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    39
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    40
version
1332
1f64577c44b5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
    41
    ^ '$Header: /cvs/stx/stx/libcomp/WarningCompilationErrorHandler.st,v 1.3 2002-11-08 10:16:01 cg Exp $'
927
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    42
! !