WarningCompilationErrorHandler.st
author Claus Gittinger <cg@exept.de>
Fri, 30 Jul 1999 22:57:10 +0200
changeset 929 4cd47fa33c28
parent 927 49f8b69d300c
child 1332 1f64577c44b5
permissions -rw-r--r--
checkin from browser
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
927
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     1
CompilationErrorHandler subclass:#WarningCompilationErrorHandler
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     2
	instanceVariableNames:''
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     3
	classVariableNames:''
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     4
	poolDictionaries:''
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     5
	category:'System-Compiler'
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     6
!
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     7
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     8
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     9
!WarningCompilationErrorHandler methodsFor:'error handling'!
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    10
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    11
error:aMessage position:position to:endPos from:aCompiler
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
    "error notification.
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
     This is sent by the compiler/evaluator if it detects errors."
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    15
    |box|
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
    box := TextBox new.
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
    box initialText:currentSource.
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
    box label:aMessage.
929
4cd47fa33c28 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
    20
    box textView selectFromCharacterPosition:(position?1) to:(endPos?currentSource size).
927
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
    box open.
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
    ^ false
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    24
    "Created: / 30.7.1999 / 18:10:22 / cg"
929
4cd47fa33c28 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
    25
    "Modified: / 30.7.1999 / 22:37:30 / cg"
927
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
! !
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    27
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    28
!WarningCompilationErrorHandler class methodsFor:'documentation'!
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    29
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    30
version
929
4cd47fa33c28 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
    31
    ^ '$Header: /cvs/stx/stx/libcomp/WarningCompilationErrorHandler.st,v 1.2 1999-07-30 20:57:10 cg Exp $'
927
49f8b69d300c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    32
! !