Tools__BreakpointService.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Wed, 27 Mar 2013 12:24:47 +0000
branchjv
changeset 12571 b2e5fdb702cb
parent 12431 9f0c59c742d5
parent 12507 3fa9ae668d96
child 12676 07321e157fe9
permissions -rw-r--r--
Merged 4af2effeeb06 and b9d8a19b796c (branch default - CVS HEAD)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
9982
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     1
"
10071
1bf516aac0b8 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
     2
 COPYRIGHT (c) 2010 by Jan Vrany, SWING Research Group. CTU in Prague
11607
3cd59e465a6a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11601
diff changeset
     3
	      All Rights Reserved
9982
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     4
10071
1bf516aac0b8 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
     5
Permission is hereby granted, free of charge, to any person
1bf516aac0b8 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
     6
obtaining a copy of this software and associated documentation
1bf516aac0b8 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
     7
files (the 'Software'), to deal in the Software without
1bf516aac0b8 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
     8
restriction, including without limitation the rights to use,
1bf516aac0b8 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
     9
copy, modify, merge, publish, distribute, sublicense, and/or sell
1bf516aac0b8 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
    10
copies of the Software, and to permit persons to whom the
1bf516aac0b8 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
    11
Software is furnished to do so, subject to the following
1bf516aac0b8 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
    12
conditions:
1bf516aac0b8 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
    13
1bf516aac0b8 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
    14
The above copyright notice and this permission notice shall be
1bf516aac0b8 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
    15
included in all copies or substantial portions of the Software.
1bf516aac0b8 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
    16
1bf516aac0b8 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
    17
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
1bf516aac0b8 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
    18
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
1bf516aac0b8 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
    19
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
1bf516aac0b8 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
    20
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
1bf516aac0b8 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
    21
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
1bf516aac0b8 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
    22
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
1bf516aac0b8 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
    23
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
1bf516aac0b8 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
    24
OTHER DEALINGS IN THE SOFTWARE.
9982
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    25
"
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
"{ Package: 'stx:libtool' }"
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    27
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    28
"{ NameSpace: Tools }"
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    29
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    30
CodeViewService subclass:#BreakpointService
11607
3cd59e465a6a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11601
diff changeset
    31
	instanceVariableNames:'breakpoints currentMethod'
3cd59e465a6a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11601
diff changeset
    32
	classVariableNames:''
3cd59e465a6a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11601
diff changeset
    33
	poolDictionaries:''
3cd59e465a6a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11601
diff changeset
    34
	category:'Interface-CodeView'
9982
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    35
!
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    36
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    37
!BreakpointService class methodsFor:'documentation'!
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    38
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    39
copyright
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    40
"
10071
1bf516aac0b8 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
    41
 COPYRIGHT (c) 2010 by Jan Vrany, SWING Research Group. CTU in Prague
11607
3cd59e465a6a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11601
diff changeset
    42
	      All Rights Reserved
9982
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    43
10071
1bf516aac0b8 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
    44
Permission is hereby granted, free of charge, to any person
1bf516aac0b8 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
    45
obtaining a copy of this software and associated documentation
1bf516aac0b8 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
    46
files (the 'Software'), to deal in the Software without
1bf516aac0b8 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
    47
restriction, including without limitation the rights to use,
1bf516aac0b8 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
    48
copy, modify, merge, publish, distribute, sublicense, and/or sell
1bf516aac0b8 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
    49
copies of the Software, and to permit persons to whom the
1bf516aac0b8 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
    50
Software is furnished to do so, subject to the following
1bf516aac0b8 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
    51
conditions:
1bf516aac0b8 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
    52
1bf516aac0b8 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
    53
The above copyright notice and this permission notice shall be
1bf516aac0b8 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
    54
included in all copies or substantial portions of the Software.
1bf516aac0b8 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
    55
1bf516aac0b8 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
    56
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
1bf516aac0b8 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
    57
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
1bf516aac0b8 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
    58
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
1bf516aac0b8 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
    59
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
1bf516aac0b8 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
    60
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
1bf516aac0b8 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
    61
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
1bf516aac0b8 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
    62
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
1bf516aac0b8 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
    63
OTHER DEALINGS IN THE SOFTWARE.
9982
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    64
"
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    65
! !
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    66
10226
b647aff39f33 More improvements in BreakpointService
vrany
parents: 10209
diff changeset
    67
!BreakpointService methodsFor:'accessing'!
b647aff39f33 More improvements in BreakpointService
vrany
parents: 10209
diff changeset
    68
b647aff39f33 More improvements in BreakpointService
vrany
parents: 10209
diff changeset
    69
breakpoints
b647aff39f33 More improvements in BreakpointService
vrany
parents: 10209
diff changeset
    70
    ^ breakpoints
b647aff39f33 More improvements in BreakpointService
vrany
parents: 10209
diff changeset
    71
! !
b647aff39f33 More improvements in BreakpointService
vrany
parents: 10209
diff changeset
    72
10208
5f0f44bd199a class definition
Claus Gittinger <cg@exept.de>
parents: 10182
diff changeset
    73
!BreakpointService methodsFor:'change & update'!
5f0f44bd199a class definition
Claus Gittinger <cg@exept.de>
parents: 10182
diff changeset
    74
5f0f44bd199a class definition
Claus Gittinger <cg@exept.de>
parents: 10182
diff changeset
    75
update: aspect with: param from: sender
5f0f44bd199a class definition
Claus Gittinger <cg@exept.de>
parents: 10182
diff changeset
    76
    |method|
5f0f44bd199a class definition
Claus Gittinger <cg@exept.de>
parents: 10182
diff changeset
    77
5f0f44bd199a class definition
Claus Gittinger <cg@exept.de>
parents: 10182
diff changeset
    78
    method := codeView methodHolder value.
5f0f44bd199a class definition
Claus Gittinger <cg@exept.de>
parents: 10182
diff changeset
    79
    method ~~ currentMethod ifTrue:[
11607
3cd59e465a6a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11601
diff changeset
    80
	self updateBreakPointsFor:method.
10208
5f0f44bd199a class definition
Claus Gittinger <cg@exept.de>
parents: 10182
diff changeset
    81
    ].
5f0f44bd199a class definition
Claus Gittinger <cg@exept.de>
parents: 10182
diff changeset
    82
5f0f44bd199a class definition
Claus Gittinger <cg@exept.de>
parents: 10182
diff changeset
    83
    super update: aspect with: param from: sender
5f0f44bd199a class definition
Claus Gittinger <cg@exept.de>
parents: 10182
diff changeset
    84
5f0f44bd199a class definition
Claus Gittinger <cg@exept.de>
parents: 10182
diff changeset
    85
    "Created: / 06-07-2011 / 15:21:08 / cg"
5f0f44bd199a class definition
Claus Gittinger <cg@exept.de>
parents: 10182
diff changeset
    86
!
5f0f44bd199a class definition
Claus Gittinger <cg@exept.de>
parents: 10182
diff changeset
    87
5f0f44bd199a class definition
Claus Gittinger <cg@exept.de>
parents: 10182
diff changeset
    88
updateBreakPointsFor:aMethod
5f0f44bd199a class definition
Claus Gittinger <cg@exept.de>
parents: 10182
diff changeset
    89
    |methodsBreakPoints|
5f0f44bd199a class definition
Claus Gittinger <cg@exept.de>
parents: 10182
diff changeset
    90
5f0f44bd199a class definition
Claus Gittinger <cg@exept.de>
parents: 10182
diff changeset
    91
    methodsBreakPoints := OrderedCollection new.
5f0f44bd199a class definition
Claus Gittinger <cg@exept.de>
parents: 10182
diff changeset
    92
    aMethod notNil ifTrue:[
11607
3cd59e465a6a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11601
diff changeset
    93
	aMethod literalsDo:[:eachLiteral |
3cd59e465a6a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11601
diff changeset
    94
	    eachLiteral class == Breakpoint ifTrue:[
3cd59e465a6a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11601
diff changeset
    95
		methodsBreakPoints add:eachLiteral copy.
3cd59e465a6a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11601
diff changeset
    96
	    ].
3cd59e465a6a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11601
diff changeset
    97
	].
10208
5f0f44bd199a class definition
Claus Gittinger <cg@exept.de>
parents: 10182
diff changeset
    98
    ].
5f0f44bd199a class definition
Claus Gittinger <cg@exept.de>
parents: 10182
diff changeset
    99
    breakpoints := methodsBreakPoints.
5f0f44bd199a class definition
Claus Gittinger <cg@exept.de>
parents: 10182
diff changeset
   100
    currentMethod := aMethod.
5f0f44bd199a class definition
Claus Gittinger <cg@exept.de>
parents: 10182
diff changeset
   101
5f0f44bd199a class definition
Claus Gittinger <cg@exept.de>
parents: 10182
diff changeset
   102
    "Created: / 06-07-2011 / 15:24:09 / cg"
10226
b647aff39f33 More improvements in BreakpointService
vrany
parents: 10209
diff changeset
   103
    "Modified: / 06-07-2011 / 17:32:54 / jv"
10208
5f0f44bd199a class definition
Claus Gittinger <cg@exept.de>
parents: 10182
diff changeset
   104
! !
5f0f44bd199a class definition
Claus Gittinger <cg@exept.de>
parents: 10182
diff changeset
   105
9982
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   106
!BreakpointService methodsFor:'event handling'!
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   107
11607
3cd59e465a6a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11601
diff changeset
   108
buttonPress:button x:x y:y in:view
10714
3399fb50f42e changed: #buttonPress:x:y:in:
Claus Gittinger <cg@exept.de>
parents: 10411
diff changeset
   109
    |lineNr|
3399fb50f42e changed: #buttonPress:x:y:in:
Claus Gittinger <cg@exept.de>
parents: 10411
diff changeset
   110
10182
9ce79271722f added: #recompile
Claus Gittinger <cg@exept.de>
parents: 10071
diff changeset
   111
    codeView methodHolder value isNil ifTrue:[
11607
3cd59e465a6a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11601
diff changeset
   112
	^ false
10182
9ce79271722f added: #recompile
Claus Gittinger <cg@exept.de>
parents: 10071
diff changeset
   113
    ].
9982
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   114
    view == gutterView ifTrue:[
11607
3cd59e465a6a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11601
diff changeset
   115
	button == 1 ifTrue:[
3cd59e465a6a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11601
diff changeset
   116
	    lineNr := textView yVisibleToLineNr:y.
3cd59e465a6a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11601
diff changeset
   117
	    lineNr notNil ifTrue:[ self setOrToggleBreakpointAtLine:lineNr ].
3cd59e465a6a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11601
diff changeset
   118
	    ^ true.
3cd59e465a6a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11601
diff changeset
   119
	].
3cd59e465a6a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11601
diff changeset
   120
	button == 3 ifTrue:[
3cd59e465a6a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11601
diff changeset
   121
	    ^ true.
3cd59e465a6a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11601
diff changeset
   122
	]
9982
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   123
    ].
10182
9ce79271722f added: #recompile
Claus Gittinger <cg@exept.de>
parents: 10071
diff changeset
   124
    ^ false
9982
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   125
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   126
    "Created: / 17-06-2011 / 13:05:22 / Jan Vrany <jan.vrany@fit.cvut.cz>"
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   127
    "Modified: / 28-06-2011 / 08:31:39 / Jan Vrany <jan.vrany@fit.cvut.cz>"
10714
3399fb50f42e changed: #buttonPress:x:y:in:
Claus Gittinger <cg@exept.de>
parents: 10411
diff changeset
   128
    "Modified: / 19-09-2011 / 14:41:00 / cg"
10226
b647aff39f33 More improvements in BreakpointService
vrany
parents: 10209
diff changeset
   129
!
b647aff39f33 More improvements in BreakpointService
vrany
parents: 10209
diff changeset
   130
b647aff39f33 More improvements in BreakpointService
vrany
parents: 10209
diff changeset
   131
linesDeletedFrom: start to: end
b647aff39f33 More improvements in BreakpointService
vrany
parents: 10209
diff changeset
   132
b647aff39f33 More improvements in BreakpointService
vrany
parents: 10209
diff changeset
   133
    breakpoints isEmptyOrNil ifTrue:[^self].
b647aff39f33 More improvements in BreakpointService
vrany
parents: 10209
diff changeset
   134
    self moveBreakpointsAfterLine: start - 1 by: (end - start + 1) negated
b647aff39f33 More improvements in BreakpointService
vrany
parents: 10209
diff changeset
   135
b647aff39f33 More improvements in BreakpointService
vrany
parents: 10209
diff changeset
   136
    "Created: / 06-07-2011 / 17:16:27 / jv"
b647aff39f33 More improvements in BreakpointService
vrany
parents: 10209
diff changeset
   137
!
b647aff39f33 More improvements in BreakpointService
vrany
parents: 10209
diff changeset
   138
b647aff39f33 More improvements in BreakpointService
vrany
parents: 10209
diff changeset
   139
linesInsertedFrom: start to: end
b647aff39f33 More improvements in BreakpointService
vrany
parents: 10209
diff changeset
   140
b647aff39f33 More improvements in BreakpointService
vrany
parents: 10209
diff changeset
   141
    breakpoints isEmptyOrNil ifTrue:[^self].
b647aff39f33 More improvements in BreakpointService
vrany
parents: 10209
diff changeset
   142
    self moveBreakpointsAfterLine: start - 1 by: (end - start + 1)
b647aff39f33 More improvements in BreakpointService
vrany
parents: 10209
diff changeset
   143
b647aff39f33 More improvements in BreakpointService
vrany
parents: 10209
diff changeset
   144
    "Created: / 06-07-2011 / 17:16:36 / jv"
9982
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   145
! !
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   146
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   147
!BreakpointService methodsFor:'initialization'!
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   148
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   149
initialize
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   150
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   151
    super initialize.
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   152
    breakpoints := OrderedCollection new.
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   153
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   154
    "Created: / 17-06-2011 / 13:49:12 / Jan Vrany <jan.vrany@fit.cvut.cz>"
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   155
! !
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   156
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   157
!BreakpointService methodsFor:'private'!
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   158
11607
3cd59e465a6a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11601
diff changeset
   159
breakpointAtLine:line
10182
9ce79271722f added: #recompile
Claus Gittinger <cg@exept.de>
parents: 10071
diff changeset
   160
    |pos|
9982
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   161
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   162
    pos := textView characterPositionOfLine:line col:1.
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   163
    ^ breakpoints ? #() detect:[:each | each position = pos ] ifNone:[ nil ]
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   164
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   165
    "Modified: / 17-06-2011 / 13:59:17 / Jan Vrany <jan.vrany@fit.cvut.cz>"
10182
9ce79271722f added: #recompile
Claus Gittinger <cg@exept.de>
parents: 10071
diff changeset
   166
    "Modified (format): / 05-07-2011 / 21:33:23 / cg"
9ce79271722f added: #recompile
Claus Gittinger <cg@exept.de>
parents: 10071
diff changeset
   167
!
9ce79271722f added: #recompile
Claus Gittinger <cg@exept.de>
parents: 10071
diff changeset
   168
10226
b647aff39f33 More improvements in BreakpointService
vrany
parents: 10209
diff changeset
   169
moveBreakpointsAfterLine:line by: delta
b647aff39f33 More improvements in BreakpointService
vrany
parents: 10209
diff changeset
   170
    |pos |
b647aff39f33 More improvements in BreakpointService
vrany
parents: 10209
diff changeset
   171
b647aff39f33 More improvements in BreakpointService
vrany
parents: 10209
diff changeset
   172
    breakpoints do:[:bpnt|
11719
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   173
        bpnt line >= line ifTrue:[
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   174
            pos := textView characterPositionOfLine:bpnt line + delta col:1.
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   175
            bpnt position:pos line:(bpnt line + delta). 
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   176
        ]
10226
b647aff39f33 More improvements in BreakpointService
vrany
parents: 10209
diff changeset
   177
    ].
b647aff39f33 More improvements in BreakpointService
vrany
parents: 10209
diff changeset
   178
b647aff39f33 More improvements in BreakpointService
vrany
parents: 10209
diff changeset
   179
    "/gutterView redrawLinesFrom: line.
b647aff39f33 More improvements in BreakpointService
vrany
parents: 10209
diff changeset
   180
b647aff39f33 More improvements in BreakpointService
vrany
parents: 10209
diff changeset
   181
    "Created: / 17-06-2011 / 13:45:22 / Jan Vrany <jan.vrany@fit.cvut.cz>"
b647aff39f33 More improvements in BreakpointService
vrany
parents: 10209
diff changeset
   182
    "Created: / 06-07-2011 / 17:26:30 / jv"
11719
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   183
    "Modified: / 02-08-2012 / 09:27:10 / cg"
10226
b647aff39f33 More improvements in BreakpointService
vrany
parents: 10209
diff changeset
   184
!
b647aff39f33 More improvements in BreakpointService
vrany
parents: 10209
diff changeset
   185
10182
9ce79271722f added: #recompile
Claus Gittinger <cg@exept.de>
parents: 10071
diff changeset
   186
recompile
9ce79271722f added: #recompile
Claus Gittinger <cg@exept.de>
parents: 10071
diff changeset
   187
    "recompile the current method for changed breakpoints"
9ce79271722f added: #recompile
Claus Gittinger <cg@exept.de>
parents: 10071
diff changeset
   188
11719
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   189
    |oldMethod newMethod compiler class selector|
10182
9ce79271722f added: #recompile
Claus Gittinger <cg@exept.de>
parents: 10071
diff changeset
   190
11719
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   191
    oldMethod := codeView methodHolder value.
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   192
    (oldMethod notNil and:[oldMethod hasPrimitiveCode not]) ifTrue:[
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   193
        "/ be careful: if the text has been edited/modified, do not compile
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   194
        textView modified ifTrue:[
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   195
            self breakPoint: #cg.
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   196
            self breakPoint: #jv.
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   197
            ^self.
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   198
        ] ifFalse:[
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   199
            "/ prepare to get reachable bpts
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   200
            breakpoints do:[:bp | bp isReached:false].
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   201
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   202
            class := oldMethod mclass.
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   203
            class isNil ifTrue:[
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   204
                class := codeView classHolder value.
12507
3fa9ae668d96 class: Tools::BreakpointService
Claus Gittinger <cg@exept.de>
parents: 11987
diff changeset
   205
                class isNil ifTrue:[
3fa9ae668d96 class: Tools::BreakpointService
Claus Gittinger <cg@exept.de>
parents: 11987
diff changeset
   206
                    self breakPoint:#jv.
3fa9ae668d96 class: Tools::BreakpointService
Claus Gittinger <cg@exept.de>
parents: 11987
diff changeset
   207
                    Dialog warn:'oops - lost the methods''s class'.
3fa9ae668d96 class: Tools::BreakpointService
Claus Gittinger <cg@exept.de>
parents: 11987
diff changeset
   208
                    ^ self.
3fa9ae668d96 class: Tools::BreakpointService
Claus Gittinger <cg@exept.de>
parents: 11987
diff changeset
   209
                ]
11719
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   210
            ].
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   211
            selector := oldMethod selector.
10182
9ce79271722f added: #recompile
Claus Gittinger <cg@exept.de>
parents: 10071
diff changeset
   212
11719
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   213
            Class withoutUpdatingChangesDo:[
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   214
                compiler := ByteCodeCompilerWithBreakpointSupport new.
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   215
                compiler breakpoints:breakpoints.
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   216
                compiler methodClass:MethodWithBreakpoints.
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   217
                newMethod := compiler
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   218
                            compile:oldMethod source
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   219
                            forClass:class
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   220
                            inCategory:oldMethod category
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   221
                            notifying:nil
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   222
                            install:false
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   223
                            skipIfSame:false
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   224
                            silent:true
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   225
                            foldConstants:true
11987
798e6c92cd74 changed: #recompile
Claus Gittinger <cg@exept.de>
parents: 11719
diff changeset
   226
                            ifFail:[ Transcript showCR:'BreakpointService: failed to recompile for breakpoint' ].
11719
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   227
                newMethod originalMethod: oldMethod.
10182
9ce79271722f added: #recompile
Claus Gittinger <cg@exept.de>
parents: 10071
diff changeset
   228
11719
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   229
                selector isNil ifTrue:[
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   230
                    "/ May happen as the selector is not stored in the method but
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   231
                    "/ searches through method's mclass methodDictionary.
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   232
                    "/ Following should be save as breakpoint is not installed when
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   233
                    "/ the code is modified...
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   234
                    selector := compiler selector.
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   235
                ].
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   236
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   237
                (class primAddSelector: selector withMethod:newMethod) ifFalse:[
12507
3fa9ae668d96 class: Tools::BreakpointService
Claus Gittinger <cg@exept.de>
parents: 11987
diff changeset
   238
                    oldMethod mclass:class.
11719
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   239
                    self breakPoint: #cg.
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   240
                    self breakPoint: #jv.
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   241
                    ^ self
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   242
                ].
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   243
                codeView methodHolder value:newMethod.
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   244
                oldMethod mclass isNil ifTrue:[
12507
3fa9ae668d96 class: Tools::BreakpointService
Claus Gittinger <cg@exept.de>
parents: 11987
diff changeset
   245
                    "/ although this is not strictly true, not doing this
3fa9ae668d96 class: Tools::BreakpointService
Claus Gittinger <cg@exept.de>
parents: 11987
diff changeset
   246
                    "/ would confuse a lot of other tools (such as the browser)
11719
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   247
                    oldMethod mclass:class.
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   248
                ].
12507
3fa9ae668d96 class: Tools::BreakpointService
Claus Gittinger <cg@exept.de>
parents: 11987
diff changeset
   249
                class changed:#methodTrap with:selector. "/ tell browsers
3fa9ae668d96 class: Tools::BreakpointService
Claus Gittinger <cg@exept.de>
parents: 11987
diff changeset
   250
                MethodTrapChangeNotificationParameter notNil ifTrue:[    
3fa9ae668d96 class: Tools::BreakpointService
Claus Gittinger <cg@exept.de>
parents: 11987
diff changeset
   251
                    Smalltalk changed:#methodTrap with:(MethodTrapChangeNotificationParameter changeClass:class changeSelector:selector).
3fa9ae668d96 class: Tools::BreakpointService
Claus Gittinger <cg@exept.de>
parents: 11987
diff changeset
   252
                ].
11719
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   253
            ].
10899
0481919116d6 changed: #recompile
Claus Gittinger <cg@exept.de>
parents: 10894
diff changeset
   254
"/ self halt.
11719
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   255
            breakpoints := breakpoints
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   256
                            select:[:bp |
12507
3fa9ae668d96 class: Tools::BreakpointService
Claus Gittinger <cg@exept.de>
parents: 11987
diff changeset
   257
"/                                bp isReached ifFalse:[ 
3fa9ae668d96 class: Tools::BreakpointService
Claus Gittinger <cg@exept.de>
parents: 11987
diff changeset
   258
"/                                    "/ Transcript show:'remove unreached:'; showCR:bp 
3fa9ae668d96 class: Tools::BreakpointService
Claus Gittinger <cg@exept.de>
parents: 11987
diff changeset
   259
"/                                ].
11719
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   260
                                bp isReached
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   261
                            ]
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   262
        ]
10182
9ce79271722f added: #recompile
Claus Gittinger <cg@exept.de>
parents: 10071
diff changeset
   263
    ]
9ce79271722f added: #recompile
Claus Gittinger <cg@exept.de>
parents: 10071
diff changeset
   264
9ce79271722f added: #recompile
Claus Gittinger <cg@exept.de>
parents: 10071
diff changeset
   265
    "Created: / 05-07-2011 / 21:33:13 / cg"
11601
6500e91de9e8 changed: #recompile (fixes to allow multiple breakpoints in a method)
vrany
parents: 11569
diff changeset
   266
    "Modified: / 18-07-2012 / 10:53:22 / Jan Vrany <jan.vrany@fit.cvut.cz>"
11719
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   267
    "Modified: / 02-08-2012 / 09:35:41 / cg"
9982
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   268
!
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   269
11607
3cd59e465a6a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11601
diff changeset
   270
setOrToggleBreakpointAtLine:line
9982
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   271
    |pos bpnt|
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   272
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   273
    pos := textView characterPositionOfLine:line col:1.
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   274
    bpnt := self breakpointAtLine:line.
10182
9ce79271722f added: #recompile
Claus Gittinger <cg@exept.de>
parents: 10071
diff changeset
   275
    bpnt isNil ifTrue:[
11719
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   276
        (codeView topView class ~~ DebugView) ifTrue:[
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   277
            breakpoints add:((bpnt := Breakpoint new) position:pos line:line).
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   278
            Display shiftDown ifTrue:[
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   279
                "/ trace
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   280
                bpnt beTracepoint
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   281
            ].
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   282
            self recompile.
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   283
        ].
10182
9ce79271722f added: #recompile
Claus Gittinger <cg@exept.de>
parents: 10071
diff changeset
   284
    ] ifFalse:[
11719
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   285
        Display shiftDown ifTrue:[
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   286
            bpnt toggleTracing
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   287
        ] ifFalse:[
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   288
            bpnt toggle.
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   289
        ]
10182
9ce79271722f added: #recompile
Claus Gittinger <cg@exept.de>
parents: 10071
diff changeset
   290
    ].
11987
798e6c92cd74 changed: #recompile
Claus Gittinger <cg@exept.de>
parents: 11719
diff changeset
   291
9982
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   292
    gutterView redrawLine:line.
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   293
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   294
    "Created: / 17-06-2011 / 13:45:22 / Jan Vrany <jan.vrany@fit.cvut.cz>"
10411
c203e65b99b2 Fixes for debugger
vrany
parents: 10226
diff changeset
   295
    "Modified: / 27-07-2011 / 13:27:55 / Jan Vrany <jan.vrany@fit.cvut.cz>"
11719
f4c9090f21af changed:
Claus Gittinger <cg@exept.de>
parents: 11607
diff changeset
   296
    "Modified: / 02-08-2012 / 09:26:38 / cg"
9982
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   297
! !
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   298
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   299
!BreakpointService methodsFor:'redrawing'!
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   300
11607
3cd59e465a6a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11601
diff changeset
   301
drawLine:lineNo in:view atX:x y:y width:w height:h from:startCol to:endColOrNil with:fg and:bg
9982
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   302
    "Called by both gutterView and textView (well, not yet) to
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   303
     allow services to draw custom things on text view.
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   304
     Ask JV what the args means if unsure (I'm lazy to document
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   305
     them, now it is just an experiment...)"
11607
3cd59e465a6a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11601
diff changeset
   306
10182
9ce79271722f added: #recompile
Claus Gittinger <cg@exept.de>
parents: 10071
diff changeset
   307
    |bpnt icon dx dy|
9982
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   308
10182
9ce79271722f added: #recompile
Claus Gittinger <cg@exept.de>
parents: 10071
diff changeset
   309
    codeView methodHolder value isNil ifTrue:[
11607
3cd59e465a6a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11601
diff changeset
   310
	^ self
10182
9ce79271722f added: #recompile
Claus Gittinger <cg@exept.de>
parents: 10071
diff changeset
   311
    ].
9ce79271722f added: #recompile
Claus Gittinger <cg@exept.de>
parents: 10071
diff changeset
   312
    view == gutterView ifTrue:[
11607
3cd59e465a6a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11601
diff changeset
   313
	bpnt := self breakpointAtLine:lineNo.
3cd59e465a6a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11601
diff changeset
   314
	bpnt isNil ifTrue:[
3cd59e465a6a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11601
diff changeset
   315
	    ^ self
3cd59e465a6a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11601
diff changeset
   316
	].
3cd59e465a6a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11601
diff changeset
   317
	icon := bpnt icon.
3cd59e465a6a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11601
diff changeset
   318
	icon isNil ifTrue:[
3cd59e465a6a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11601
diff changeset
   319
	    ^ self
3cd59e465a6a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11601
diff changeset
   320
	].
3cd59e465a6a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11601
diff changeset
   321
	dx := ((w - icon width) / 2) rounded.
3cd59e465a6a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11601
diff changeset
   322
	dy := ((h - icon height) / 2) rounded.
3cd59e465a6a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11601
diff changeset
   323
	icon
3cd59e465a6a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11601
diff changeset
   324
	    displayOn:view
3cd59e465a6a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11601
diff changeset
   325
	    x:x + dx
3cd59e465a6a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11601
diff changeset
   326
	    y:y - h + dy + 4. "TODO: Magic constant"
9982
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   327
    ].
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   328
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   329
    "Created: / 17-06-2011 / 13:52:52 / Jan Vrany <jan.vrany@fit.cvut.cz>"
10182
9ce79271722f added: #recompile
Claus Gittinger <cg@exept.de>
parents: 10071
diff changeset
   330
    "Modified (format): / 05-07-2011 / 22:14:33 / cg"
9982
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   331
! !
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   332
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   333
!BreakpointService class methodsFor:'documentation'!
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   334
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   335
version_CVS
12507
3fa9ae668d96 class: Tools::BreakpointService
Claus Gittinger <cg@exept.de>
parents: 11987
diff changeset
   336
    ^ '$Header: /cvs/stx/stx/libtool/Tools__BreakpointService.st,v 1.18 2013-03-22 11:38:00 cg Exp $'
11601
6500e91de9e8 changed: #recompile (fixes to allow multiple breakpoints in a method)
vrany
parents: 11569
diff changeset
   337
9982
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   338
!
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   339
12431
9f0c59c742d5 Added LintRuleSettingsApplication and LintRuleEditDialog to define user-defined rule sets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12401
diff changeset
   340
version_HG
9f0c59c742d5 Added LintRuleSettingsApplication and LintRuleEditDialog to define user-defined rule sets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12401
diff changeset
   341
9f0c59c742d5 Added LintRuleSettingsApplication and LintRuleEditDialog to define user-defined rule sets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12401
diff changeset
   342
    ^ '$Changeset: <not expanded> $'
9f0c59c742d5 Added LintRuleSettingsApplication and LintRuleEditDialog to define user-defined rule sets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12401
diff changeset
   343
!
9f0c59c742d5 Added LintRuleSettingsApplication and LintRuleEditDialog to define user-defined rule sets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12401
diff changeset
   344
9982
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   345
version_SVN
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   346
    ^ '§Id§'
527ab4879a77 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   347
! !
12507
3fa9ae668d96 class: Tools::BreakpointService
Claus Gittinger <cg@exept.de>
parents: 11987
diff changeset
   348