8234
|
1 |
"
|
|
2 |
COPYRIGHT (c) 2008 by eXept Software AG
|
|
3 |
All Rights Reserved
|
|
4 |
|
|
5 |
This software is furnished under a license and may be used
|
|
6 |
only in accordance with the terms of that license and with the
|
|
7 |
inclusion of the above copyright notice. This software may not
|
|
8 |
be provided or otherwise made available to, or used by, any
|
|
9 |
other person. No title to or ownership of the software is
|
|
10 |
hereby transferred.
|
|
11 |
"
|
8233
|
12 |
"{ Package: 'stx:libtool' }"
|
|
13 |
|
|
14 |
"{ NameSpace: Tools }"
|
|
15 |
|
|
16 |
ApplicationModel subclass:#BreakpointBrowser
|
|
17 |
instanceVariableNames:'updatingLabelShown breakpointList shownCopyOfBreakpointList
|
|
18 |
selectionIndexHolder currentSortColumn currentSortIsReverse
|
|
19 |
showHalts showAssertions showCodeBreakpoints
|
|
20 |
showCodeBreakpointsFor showMethodBreakpoints codeView'
|
|
21 |
classVariableNames:''
|
|
22 |
poolDictionaries:''
|
|
23 |
category:'Interface-Smalltalk-Breakpoints'
|
|
24 |
!
|
|
25 |
|
|
26 |
Object subclass:#BreakpointListEntry
|
|
27 |
instanceVariableNames:'type arg className selector lineNumber info enabled'
|
|
28 |
classVariableNames:''
|
|
29 |
poolDictionaries:''
|
|
30 |
privateIn:BreakpointBrowser
|
|
31 |
!
|
|
32 |
|
|
33 |
RBProgramNodeVisitor subclass:#MessageArgumentExtractor
|
|
34 |
instanceVariableNames:'callBack selectorToSearch'
|
|
35 |
classVariableNames:''
|
|
36 |
poolDictionaries:''
|
|
37 |
privateIn:BreakpointBrowser
|
|
38 |
!
|
|
39 |
|
|
40 |
!BreakpointBrowser class methodsFor:'documentation'!
|
|
41 |
|
8234
|
42 |
copyright
|
|
43 |
"
|
|
44 |
COPYRIGHT (c) 2008 by eXept Software AG
|
|
45 |
All Rights Reserved
|
|
46 |
|
|
47 |
This software is furnished under a license and may be used
|
|
48 |
only in accordance with the terms of that license and with the
|
|
49 |
inclusion of the above copyright notice. This software may not
|
|
50 |
be provided or otherwise made available to, or used by, any
|
|
51 |
other person. No title to or ownership of the software is
|
|
52 |
hereby transferred.
|
|
53 |
"
|
|
54 |
!
|
|
55 |
|
8233
|
56 |
documentation
|
|
57 |
"
|
8234
|
58 |
tool to list breakpoints (breakPoint/halt/assert)
|
8233
|
59 |
|
|
60 |
[author:]
|
|
61 |
cg (cg@FUSI)
|
|
62 |
"
|
|
63 |
! !
|
|
64 |
|
|
65 |
!BreakpointBrowser class methodsFor:'interface specs'!
|
|
66 |
|
|
67 |
windowSpec
|
|
68 |
"This resource specification was automatically generated
|
|
69 |
by the UIPainter of ST/X."
|
|
70 |
|
|
71 |
"Do not manually edit this!! If it is corrupted,
|
|
72 |
the UIPainter may not be able to read the specification."
|
|
73 |
|
|
74 |
"
|
|
75 |
UIPainter new openOnClass:Tools::BreakpointBrowser andSelector:#windowSpec
|
|
76 |
Tools::BreakpointBrowser new openInterface:#windowSpec
|
|
77 |
Tools::BreakpointBrowser open
|
|
78 |
"
|
|
79 |
|
|
80 |
<resource: #canvas>
|
|
81 |
|
|
82 |
^
|
|
83 |
#(FullSpec
|
|
84 |
name: windowSpec
|
|
85 |
window:
|
|
86 |
(WindowSpec
|
|
87 |
label: 'Breakpoint Browser'
|
|
88 |
name: 'Breakpoint Browser'
|
|
89 |
min: (Point 10 10)
|
|
90 |
max: (Point 1024 768)
|
|
91 |
bounds: (Rectangle 0 0 680 691)
|
|
92 |
menu: mainMenu
|
|
93 |
)
|
|
94 |
component:
|
|
95 |
(SpecCollection
|
|
96 |
collection: (
|
|
97 |
(MenuPanelSpec
|
|
98 |
name: 'ToolBar1'
|
|
99 |
layout: (LayoutFrame 0 0.0 0 0 0 1.0 40 0)
|
|
100 |
menu: toolBarMenu
|
|
101 |
textDefault: true
|
|
102 |
)
|
|
103 |
(VariableVerticalPanelSpec
|
|
104 |
name: 'VariableVerticalPanel1'
|
|
105 |
layout: (LayoutFrame 0 0 40 0 0 1 0 1)
|
|
106 |
snapMode: both
|
|
107 |
component:
|
|
108 |
(SpecCollection
|
|
109 |
collection: (
|
|
110 |
(DataSetSpec
|
|
111 |
name: 'Table'
|
|
112 |
model: selectionIndexHolder
|
|
113 |
menu: itemMenu
|
|
114 |
hasHorizontalScrollBar: true
|
|
115 |
hasVerticalScrollBar: true
|
|
116 |
dataList: shownCopyOfBreakpointList
|
|
117 |
doubleClickSelector: itemDoubleClicked:
|
|
118 |
columnHolder: tableColumns
|
|
119 |
)
|
|
120 |
(TextEditorSpec
|
|
121 |
name: 'TextEditor1'
|
|
122 |
hasHorizontalScrollBar: true
|
|
123 |
hasVerticalScrollBar: true
|
|
124 |
hasKeyboardFocusInitially: false
|
|
125 |
viewClassName: 'CodeView'
|
|
126 |
postBuildCallback: postBuildCodeView:
|
|
127 |
)
|
|
128 |
)
|
|
129 |
|
|
130 |
)
|
|
131 |
handles: (Any 0.5 1.0)
|
|
132 |
)
|
|
133 |
(LabelSpec
|
|
134 |
label: 'Updating...'
|
|
135 |
name: 'Label1'
|
|
136 |
layout: (LayoutFrame 0 0 32 0 0 1 0 1)
|
|
137 |
visibilityChannel: updatingLabelShown
|
|
138 |
translateLabel: true
|
|
139 |
)
|
|
140 |
)
|
|
141 |
|
|
142 |
)
|
|
143 |
)
|
|
144 |
! !
|
|
145 |
|
|
146 |
!BreakpointBrowser class methodsFor:'menu specs'!
|
|
147 |
|
|
148 |
itemMenu
|
|
149 |
"This resource specification was automatically generated
|
|
150 |
by the MenuEditor of ST/X."
|
|
151 |
|
|
152 |
"Do not manually edit this!! If it is corrupted,
|
|
153 |
the MenuEditor may not be able to read the specification."
|
|
154 |
|
|
155 |
"
|
|
156 |
MenuEditor new openOnClass:Tools::BreakpointBrowser andSelector:#itemMenu
|
|
157 |
(Menu new fromLiteralArrayEncoding:(Tools::BreakpointBrowser itemMenu)) startUp
|
|
158 |
"
|
|
159 |
|
|
160 |
<resource: #menu>
|
|
161 |
|
|
162 |
^
|
|
163 |
#(Menu
|
|
164 |
(
|
|
165 |
(MenuItem
|
|
166 |
label: 'Browse'
|
|
167 |
itemValue: browseItem
|
|
168 |
translateLabel: true
|
|
169 |
)
|
|
170 |
)
|
|
171 |
nil
|
|
172 |
nil
|
|
173 |
)
|
|
174 |
!
|
|
175 |
|
|
176 |
mainMenu
|
|
177 |
"This resource specification was automatically generated
|
|
178 |
by the MenuEditor of ST/X."
|
|
179 |
|
|
180 |
"Do not manually edit this!! If it is corrupted,
|
|
181 |
the MenuEditor may not be able to read the specification."
|
|
182 |
|
|
183 |
"
|
|
184 |
MenuEditor new openOnClass:Tools::BreakpointBrowser andSelector:#mainMenu
|
|
185 |
(Menu new fromLiteralArrayEncoding:(Tools::BreakpointBrowser mainMenu)) startUp
|
|
186 |
"
|
|
187 |
|
|
188 |
<resource: #menu>
|
|
189 |
|
|
190 |
^
|
|
191 |
#(Menu
|
|
192 |
(
|
|
193 |
(MenuItem
|
|
194 |
label: 'File'
|
|
195 |
translateLabel: true
|
|
196 |
submenu:
|
|
197 |
(Menu
|
|
198 |
(
|
|
199 |
(MenuItem
|
|
200 |
label: 'Exit'
|
|
201 |
itemValue: closeRequest
|
|
202 |
translateLabel: true
|
|
203 |
)
|
|
204 |
)
|
|
205 |
nil
|
|
206 |
nil
|
|
207 |
)
|
|
208 |
)
|
|
209 |
(MenuItem
|
|
210 |
label: 'View'
|
|
211 |
translateLabel: true
|
|
212 |
submenu:
|
|
213 |
(Menu
|
|
214 |
(
|
|
215 |
(MenuItem
|
|
216 |
label: 'Update List'
|
|
217 |
itemValue: updateList
|
|
218 |
translateLabel: true
|
|
219 |
)
|
|
220 |
(MenuItem
|
|
221 |
label: '-'
|
|
222 |
)
|
|
223 |
(MenuItem
|
|
224 |
label: 'Assertions'
|
|
225 |
itemValue: showAssertions:
|
|
226 |
translateLabel: true
|
|
227 |
hideMenuOnActivated: false
|
|
228 |
indication: showAssertions
|
|
229 |
)
|
|
230 |
(MenuItem
|
|
231 |
label: 'Halts'
|
|
232 |
itemValue: showHalts:
|
|
233 |
translateLabel: true
|
|
234 |
hideMenuOnActivated: false
|
|
235 |
indication: showHalts
|
|
236 |
)
|
|
237 |
(MenuItem
|
|
238 |
label: '-'
|
|
239 |
)
|
|
240 |
(MenuItem
|
|
241 |
label: 'Code Breakpoints'
|
|
242 |
itemValue: showCodeBreakpoints:
|
|
243 |
translateLabel: true
|
|
244 |
hideMenuOnActivated: false
|
|
245 |
indication: showCodeBreakpoints
|
|
246 |
)
|
|
247 |
(MenuItem
|
|
248 |
enabled: showCodeBreakpoints
|
|
249 |
label: ' '
|
|
250 |
translateLabel: true
|
|
251 |
submenuChannel: codeBreakpointMenu
|
|
252 |
)
|
|
253 |
(MenuItem
|
|
254 |
label: '-'
|
|
255 |
)
|
|
256 |
(MenuItem
|
|
257 |
label: 'Method Breakpoints'
|
|
258 |
itemValue: showMethodBreakpoints:
|
|
259 |
translateLabel: true
|
|
260 |
hideMenuOnActivated: false
|
|
261 |
indication: showMethodBreakpoints
|
|
262 |
)
|
|
263 |
)
|
|
264 |
nil
|
|
265 |
nil
|
|
266 |
)
|
|
267 |
)
|
|
268 |
(MenuItem
|
|
269 |
label: 'Enable'
|
|
270 |
translateLabel: true
|
|
271 |
submenu:
|
|
272 |
(Menu
|
|
273 |
(
|
|
274 |
(MenuItem
|
|
275 |
label: 'Assertions'
|
|
276 |
itemValue: enableAssertions:
|
|
277 |
translateLabel: true
|
|
278 |
indication: enableAssertions
|
|
279 |
)
|
|
280 |
(MenuItem
|
|
281 |
label: 'Halts'
|
|
282 |
itemValue: enableHalts:
|
|
283 |
translateLabel: true
|
|
284 |
indication: enableHalts
|
|
285 |
)
|
|
286 |
(MenuItem
|
|
287 |
label: '-'
|
|
288 |
)
|
|
289 |
(MenuItem
|
|
290 |
label: 'Code Breakpoints'
|
|
291 |
translateLabel: true
|
|
292 |
submenuChannel: enabledCodeBreakpointMenu
|
|
293 |
)
|
|
294 |
)
|
|
295 |
nil
|
|
296 |
nil
|
|
297 |
)
|
|
298 |
)
|
|
299 |
(MenuItem
|
|
300 |
label: 'Help'
|
|
301 |
translateLabel: true
|
|
302 |
startGroup: right
|
|
303 |
submenu:
|
|
304 |
(Menu
|
|
305 |
(
|
|
306 |
(MenuItem
|
|
307 |
label: 'Documentation'
|
|
308 |
itemValue: openDocumentation
|
|
309 |
translateLabel: true
|
|
310 |
)
|
|
311 |
(MenuItem
|
|
312 |
label: '-'
|
|
313 |
)
|
|
314 |
(MenuItem
|
|
315 |
label: 'About this Application...'
|
|
316 |
itemValue: openAboutThisApplication
|
|
317 |
translateLabel: true
|
|
318 |
)
|
|
319 |
)
|
|
320 |
nil
|
|
321 |
nil
|
|
322 |
)
|
|
323 |
)
|
|
324 |
)
|
|
325 |
nil
|
|
326 |
nil
|
|
327 |
)
|
|
328 |
!
|
|
329 |
|
|
330 |
toolBarMenu
|
|
331 |
"This resource specification was automatically generated
|
|
332 |
by the MenuEditor of ST/X."
|
|
333 |
|
|
334 |
"Do not manually edit this!! If it is corrupted,
|
|
335 |
the MenuEditor may not be able to read the specification."
|
|
336 |
|
|
337 |
"
|
|
338 |
MenuEditor new openOnClass:Tools::BreakpointBrowser andSelector:#toolBarMenu
|
|
339 |
(Menu new fromLiteralArrayEncoding:(Tools::BreakpointBrowser toolBarMenu)) startUp
|
|
340 |
"
|
|
341 |
|
|
342 |
<resource: #menu>
|
|
343 |
|
|
344 |
^
|
|
345 |
#(Menu
|
|
346 |
(
|
|
347 |
(MenuItem
|
|
348 |
label: 'Update List'
|
|
349 |
itemValue: updateList
|
|
350 |
translateLabel: true
|
|
351 |
isButton: true
|
|
352 |
labelImage: (ResourceRetriever XPToolbarIconLibrary reloadIcon)
|
|
353 |
)
|
|
354 |
(MenuItem
|
|
355 |
label: '-'
|
|
356 |
)
|
|
357 |
(MenuItem
|
|
358 |
enabled: hasSelectionHolder
|
|
359 |
label: 'Browse Selected Method'
|
|
360 |
itemValue: browseSelectedItem
|
|
361 |
translateLabel: true
|
|
362 |
isButton: true
|
|
363 |
labelImage: (ResourceRetriever XPToolbarIconLibrary startNewSystemBrowserIcon)
|
|
364 |
)
|
|
365 |
)
|
|
366 |
nil
|
|
367 |
nil
|
|
368 |
)
|
|
369 |
! !
|
|
370 |
|
|
371 |
!BreakpointBrowser class methodsFor:'tableColumns specs'!
|
|
372 |
|
|
373 |
tableColumns
|
|
374 |
"This resource specification was automatically generated
|
|
375 |
by the DataSetBuilder of ST/X."
|
|
376 |
|
|
377 |
"Do not manually edit this!! If it is corrupted,
|
|
378 |
the DataSetBuilder may not be able to read the specification."
|
|
379 |
|
|
380 |
"
|
|
381 |
DataSetBuilder new openOnClass:Tools::BreakpointBrowser andSelector:#tableColumns
|
|
382 |
"
|
|
383 |
|
|
384 |
<resource: #tableColumns>
|
|
385 |
|
|
386 |
^#(
|
|
387 |
(DataSetColumnSpec
|
|
388 |
label: 'Type'
|
|
389 |
activeHelpKey: ''
|
|
390 |
activeHelpKeyForLabel: ''
|
|
391 |
labelButtonType: Button
|
|
392 |
labelActionSelector: sortBy:
|
|
393 |
labelActionArgument: 'type'
|
|
394 |
width: 60
|
|
395 |
model: type
|
|
396 |
canSelect: false
|
|
397 |
)
|
|
398 |
(DataSetColumnSpec
|
|
399 |
label: 'Arg'
|
|
400 |
activeHelpKey: ''
|
|
401 |
activeHelpKeyForLabel: ''
|
|
402 |
labelButtonType: Button
|
|
403 |
labelActionSelector: sortBy:
|
|
404 |
labelActionArgument: 'type'
|
|
405 |
width: 50
|
|
406 |
model: arg
|
|
407 |
canSelect: false
|
|
408 |
)
|
|
409 |
(DataSetColumnSpec
|
|
410 |
label: 'Class'
|
|
411 |
activeHelpKey: ''
|
|
412 |
activeHelpKeyForLabel: ''
|
|
413 |
labelButtonType: Button
|
|
414 |
labelActionSelector: sortBy:
|
|
415 |
labelActionArgument: 'className'
|
|
416 |
width: 150
|
|
417 |
model: className
|
|
418 |
canSelect: false
|
|
419 |
)
|
|
420 |
(DataSetColumnSpec
|
|
421 |
label: 'Method'
|
|
422 |
labelAlignment: left
|
|
423 |
activeHelpKey: ''
|
|
424 |
activeHelpKeyForLabel: ''
|
|
425 |
labelButtonType: Button
|
|
426 |
labelActionSelector: sortBy:
|
|
427 |
labelActionArgument: 'selector'
|
|
428 |
width: 200
|
|
429 |
model: selector
|
|
430 |
canSelect: false
|
|
431 |
)
|
|
432 |
(DataSetColumnSpec
|
|
433 |
label: 'Line'
|
|
434 |
labelAlignment: left
|
|
435 |
activeHelpKey: ''
|
|
436 |
activeHelpKeyForLabel: ''
|
|
437 |
labelButtonType: Button
|
|
438 |
labelActionSelector: sortBy:
|
|
439 |
labelActionArgument: 'lineNumber'
|
|
440 |
width: 35
|
|
441 |
model: lineNumber
|
|
442 |
canSelect: false
|
|
443 |
)
|
|
444 |
(DataSetColumnSpec
|
|
445 |
label: 'Info'
|
|
446 |
labelAlignment: left
|
|
447 |
activeHelpKey: ''
|
|
448 |
activeHelpKeyForLabel: ''
|
|
449 |
labelButtonType: Button
|
|
450 |
labelActionSelector: sortBy:
|
|
451 |
labelActionArgument: 'info'
|
|
452 |
model: info
|
|
453 |
canSelect: false
|
|
454 |
)
|
|
455 |
)
|
|
456 |
|
|
457 |
!
|
|
458 |
|
|
459 |
tableColumns_v1
|
|
460 |
"This resource specification was automatically generated
|
|
461 |
by the DataSetBuilder of ST/X."
|
|
462 |
|
|
463 |
"Do not manually edit this!! If it is corrupted,
|
|
464 |
the DataSetBuilder may not be able to read the specification."
|
|
465 |
|
|
466 |
"
|
|
467 |
DataSetBuilder new openOnClass:Tools::BreakpointBrowser andSelector:#tableColumns
|
|
468 |
"
|
|
469 |
|
|
470 |
<resource: #tableColumns>
|
|
471 |
|
|
472 |
^#(
|
|
473 |
(DataSetColumnSpec
|
|
474 |
label: 'Enabled'
|
|
475 |
activeHelpKey: ''
|
|
476 |
activeHelpKeyForLabel: ''
|
|
477 |
labelButtonType: Button
|
|
478 |
width: 50
|
|
479 |
editorType: CheckToggle
|
|
480 |
rendererType: CheckToggle
|
|
481 |
model: enabled
|
|
482 |
)
|
|
483 |
(DataSetColumnSpec
|
|
484 |
label: 'Type'
|
|
485 |
activeHelpKey: ''
|
|
486 |
activeHelpKeyForLabel: ''
|
|
487 |
labelButtonType: Button
|
|
488 |
labelActionSelector: sortBy:
|
|
489 |
labelActionArgument: 'type'
|
|
490 |
width: 60
|
|
491 |
model: type
|
|
492 |
canSelect: false
|
|
493 |
)
|
|
494 |
(DataSetColumnSpec
|
|
495 |
label: 'Arg'
|
|
496 |
activeHelpKey: ''
|
|
497 |
activeHelpKeyForLabel: ''
|
|
498 |
labelButtonType: Button
|
|
499 |
labelActionSelector: sortBy:
|
|
500 |
labelActionArgument: 'type'
|
|
501 |
width: 50
|
|
502 |
model: arg
|
|
503 |
canSelect: false
|
|
504 |
)
|
|
505 |
(DataSetColumnSpec
|
|
506 |
label: 'Class'
|
|
507 |
activeHelpKey: ''
|
|
508 |
activeHelpKeyForLabel: ''
|
|
509 |
labelButtonType: Button
|
|
510 |
labelActionSelector: sortBy:
|
|
511 |
labelActionArgument: 'className'
|
|
512 |
width: 150
|
|
513 |
model: className
|
|
514 |
canSelect: false
|
|
515 |
)
|
|
516 |
(DataSetColumnSpec
|
|
517 |
label: 'Method'
|
|
518 |
labelAlignment: left
|
|
519 |
activeHelpKey: ''
|
|
520 |
activeHelpKeyForLabel: ''
|
|
521 |
labelButtonType: Button
|
|
522 |
labelActionSelector: sortBy:
|
|
523 |
labelActionArgument: 'selector'
|
|
524 |
width: 200
|
|
525 |
model: selector
|
|
526 |
canSelect: false
|
|
527 |
)
|
|
528 |
(DataSetColumnSpec
|
|
529 |
label: 'Line'
|
|
530 |
labelAlignment: left
|
|
531 |
activeHelpKey: ''
|
|
532 |
activeHelpKeyForLabel: ''
|
|
533 |
labelButtonType: Button
|
|
534 |
labelActionSelector: sortBy:
|
|
535 |
labelActionArgument: 'lineNumber'
|
|
536 |
width: 35
|
|
537 |
model: lineNumber
|
|
538 |
canSelect: false
|
|
539 |
)
|
|
540 |
(DataSetColumnSpec
|
|
541 |
label: 'Info'
|
|
542 |
labelAlignment: left
|
|
543 |
activeHelpKey: ''
|
|
544 |
activeHelpKeyForLabel: ''
|
|
545 |
labelButtonType: Button
|
|
546 |
labelActionSelector: sortBy:
|
|
547 |
labelActionArgument: 'info'
|
|
548 |
model: info
|
|
549 |
canSelect: false
|
|
550 |
)
|
|
551 |
)
|
|
552 |
! !
|
|
553 |
|
|
554 |
!BreakpointBrowser methodsFor:'accessing'!
|
|
555 |
|
|
556 |
breakpointListEntryAtIndex:idx
|
|
557 |
^ shownCopyOfBreakpointList at:idx ifAbsent:nil
|
|
558 |
|
|
559 |
|
|
560 |
|
|
561 |
|
|
562 |
|
|
563 |
!
|
|
564 |
|
|
565 |
selectedBreakpointListEntry
|
|
566 |
^ self breakpointListEntryAtIndex:(self selectionIndex).
|
|
567 |
!
|
|
568 |
|
|
569 |
selectionIndex
|
|
570 |
^ self selectionIndexHolder value
|
|
571 |
!
|
|
572 |
|
|
573 |
shownCopyOfBreakpointList
|
|
574 |
shownCopyOfBreakpointList isNil ifTrue:[
|
|
575 |
shownCopyOfBreakpointList := List new
|
|
576 |
].
|
|
577 |
^ shownCopyOfBreakpointList
|
|
578 |
|
|
579 |
"Created: / 18-02-2007 / 12:53:01 / cg"
|
|
580 |
!
|
|
581 |
|
|
582 |
updatingLabelShown
|
|
583 |
updatingLabelShown isNil ifTrue:[
|
|
584 |
updatingLabelShown := true asValue
|
|
585 |
].
|
|
586 |
^ updatingLabelShown
|
|
587 |
! !
|
|
588 |
|
|
589 |
!BreakpointBrowser methodsFor:'aspects'!
|
|
590 |
|
|
591 |
enableAssertions
|
|
592 |
^ (Smalltalk at:#IgnoreAssertion ifAbsent:false) not
|
|
593 |
!
|
|
594 |
|
|
595 |
enableAssertions:aBoolean
|
|
596 |
^ Smalltalk at:#IgnoreAssertion put:aBoolean not
|
|
597 |
!
|
|
598 |
|
|
599 |
enableHalts
|
|
600 |
^ (Smalltalk at:#IgnoreHalt ifAbsent:false) not
|
|
601 |
!
|
|
602 |
|
|
603 |
enableHalts:aBoolean
|
|
604 |
^ Smalltalk at:#IgnoreHalt put:aBoolean not
|
|
605 |
!
|
|
606 |
|
|
607 |
hasSelectionHolder
|
|
608 |
^ BlockValue
|
|
609 |
with:[:selIndex | selIndex notNil and:[selIndex ~~ 0]]
|
|
610 |
argument:self selectionIndexHolder
|
|
611 |
!
|
|
612 |
|
|
613 |
selectionIndexHolder
|
|
614 |
selectionIndexHolder isNil ifTrue:[
|
|
615 |
selectionIndexHolder := nil asValue.
|
|
616 |
selectionIndexHolder onChangeSend:#updateCode to:self
|
|
617 |
].
|
|
618 |
^ selectionIndexHolder
|
|
619 |
|
|
620 |
"Created: / 22-10-2006 / 02:00:41 / cg"
|
|
621 |
!
|
|
622 |
|
|
623 |
showAssertions
|
|
624 |
^ showAssertions ? true
|
|
625 |
!
|
|
626 |
|
|
627 |
showAssertions:aBoolean
|
|
628 |
showAssertions := aBoolean.
|
|
629 |
self updateShownBreakpointList
|
|
630 |
!
|
|
631 |
|
|
632 |
showCodeBreakpoints
|
|
633 |
^ showCodeBreakpoints ? true
|
|
634 |
!
|
|
635 |
|
|
636 |
showCodeBreakpoints:aBoolean
|
|
637 |
showCodeBreakpoints := aBoolean.
|
|
638 |
self updateShownBreakpointList
|
|
639 |
!
|
|
640 |
|
|
641 |
showHalts
|
|
642 |
^ showHalts ? true
|
|
643 |
!
|
|
644 |
|
|
645 |
showHalts:aBoolean
|
|
646 |
showHalts := aBoolean.
|
|
647 |
self updateShownBreakpointList
|
|
648 |
!
|
|
649 |
|
|
650 |
showMethodBreakpoints
|
|
651 |
^ showMethodBreakpoints ? true
|
|
652 |
!
|
|
653 |
|
|
654 |
showMethodBreakpoints:aBoolean
|
|
655 |
showMethodBreakpoints := aBoolean.
|
|
656 |
self updateShownBreakpointList
|
|
657 |
! !
|
|
658 |
|
|
659 |
!BreakpointBrowser methodsFor:'change & update'!
|
|
660 |
|
|
661 |
delayedUpdate:something with:aParameter from:changedObject
|
|
662 |
"/ changedObject == toDoList ifTrue:[
|
|
663 |
"/ self updateShownToDoList.
|
|
664 |
"/ ^ self
|
|
665 |
"/ ].
|
|
666 |
!
|
|
667 |
|
|
668 |
filter
|
|
669 |
|newList|
|
|
670 |
|
|
671 |
newList := breakpointList.
|
|
672 |
self showHalts ifFalse:[
|
|
673 |
newList := newList reject:[:entry | entry isHalt].
|
|
674 |
].
|
|
675 |
self showCodeBreakpoints ifFalse:[
|
|
676 |
newList := newList reject:[:entry | entry isCodeBreakpoint].
|
|
677 |
] ifTrue:[
|
|
678 |
newList := newList reject:[:entry |
|
|
679 |
|flag|
|
|
680 |
|
|
681 |
flag := (showCodeBreakpointsFor at:(entry arg ? '<nil>') ifAbsentPut:[true asValue]) value.
|
|
682 |
entry isCodeBreakpoint
|
|
683 |
and:[ flag not ]
|
|
684 |
].
|
|
685 |
].
|
|
686 |
self showMethodBreakpoints ifFalse:[
|
|
687 |
newList := newList reject:[:entry | entry isMethodBreakpoint].
|
|
688 |
].
|
|
689 |
self showAssertions ifFalse:[
|
|
690 |
newList := newList reject:[:entry | entry isAssertion].
|
|
691 |
].
|
|
692 |
shownCopyOfBreakpointList contents:newList.
|
|
693 |
!
|
|
694 |
|
|
695 |
update:something with:aParameter from:changedObject
|
|
696 |
^ super update:something with:aParameter from:changedObject
|
|
697 |
|
|
698 |
"Created: / 18-02-2007 / 12:54:32 / cg"
|
|
699 |
!
|
|
700 |
|
|
701 |
updateBreakpointList
|
|
702 |
|newShowCodeBreakpointsFor messages update |
|
|
703 |
|
|
704 |
breakpointList removeAll.
|
|
705 |
newShowCodeBreakpointsFor := Dictionary new.
|
|
706 |
|
|
707 |
messages := #(
|
|
708 |
(#breakPoint: #breakpoint)
|
|
709 |
(#breakPoint:info: #breakpoint)
|
|
710 |
(#halt #halt)
|
|
711 |
(#halt: #halt)
|
|
712 |
(#assert: #assertion)
|
|
713 |
(#assert:message: #assertion)
|
|
714 |
).
|
|
715 |
|
|
716 |
update := [:cls :mthd :sel |
|
|
717 |
|entry type|
|
|
718 |
|
|
719 |
mthd isWrapped ifTrue:[
|
|
720 |
mthd isBreakpointed ifTrue:[
|
|
721 |
type := #trap
|
|
722 |
] ifFalse:[
|
|
723 |
mthd isTraced ifTrue:[
|
|
724 |
type := #trace
|
|
725 |
] ifFalse:[
|
|
726 |
type := #probe
|
|
727 |
].
|
|
728 |
].
|
|
729 |
entry := BreakpointListEntry new.
|
|
730 |
entry
|
|
731 |
type:#wrap
|
|
732 |
arg:type
|
|
733 |
className:cls name
|
|
734 |
selector:sel
|
|
735 |
lineNumber:nil
|
|
736 |
info:nil
|
|
737 |
enabled:true.
|
|
738 |
breakpointList add:entry.
|
|
739 |
].
|
|
740 |
|
|
741 |
messages pairsDo:[:bpSel :type|
|
|
742 |
|tree extractor|
|
|
743 |
|
|
744 |
(mthd sends:bpSel) ifTrue:[
|
|
745 |
tree := mthd parseTree.
|
|
746 |
tree isNil ifTrue:[
|
|
747 |
entry := BreakpointListEntry new.
|
|
748 |
entry
|
|
749 |
type:type
|
|
750 |
arg:nil
|
|
751 |
className:cls name
|
|
752 |
selector:sel
|
|
753 |
lineNumber:nil
|
|
754 |
info:nil
|
|
755 |
enabled:true.
|
|
756 |
breakpointList add:entry.
|
|
757 |
] ifFalse:[
|
|
758 |
extractor := MessageArgumentExtractor new.
|
|
759 |
extractor selectorToSearch:bpSel.
|
|
760 |
extractor callBack:[:lineNo :argument :infoMessage |
|
|
761 |
argument notNil ifTrue:[
|
|
762 |
newShowCodeBreakpointsFor
|
|
763 |
at:argument
|
|
764 |
put:(showCodeBreakpointsFor
|
|
765 |
at:argument
|
|
766 |
ifAbsent:[true asValue])
|
|
767 |
].
|
|
768 |
entry := BreakpointListEntry new.
|
|
769 |
entry
|
|
770 |
type:type
|
|
771 |
arg:argument
|
|
772 |
className:cls name
|
|
773 |
selector:sel
|
|
774 |
lineNumber:lineNo
|
|
775 |
info:infoMessage
|
|
776 |
enabled:true.
|
|
777 |
breakpointList add:entry.
|
|
778 |
].
|
|
779 |
tree acceptVisitor:extractor.
|
|
780 |
]
|
|
781 |
].
|
|
782 |
].
|
|
783 |
].
|
|
784 |
|
|
785 |
Smalltalk allClassesDo:[:cls |
|
|
786 |
cls selectorsAndMethodsDo:[:sel :mthd |
|
|
787 |
update value:cls value:mthd value:sel
|
|
788 |
].
|
|
789 |
cls class selectorsAndMethodsDo:[:sel :mthd |
|
|
790 |
update value:cls class value:mthd value:sel
|
|
791 |
].
|
|
792 |
].
|
|
793 |
|
|
794 |
showCodeBreakpointsFor := newShowCodeBreakpointsFor.
|
|
795 |
!
|
|
796 |
|
|
797 |
updateCode
|
|
798 |
|entry method|
|
|
799 |
|
|
800 |
entry := self selectedBreakpointListEntry.
|
|
801 |
entry isNil ifTrue:[
|
|
802 |
codeView contents:nil.
|
|
803 |
^ self
|
|
804 |
].
|
|
805 |
method := entry method.
|
|
806 |
method isNil ifTrue:[
|
|
807 |
codeView contents:'OOPS - no source found'.
|
|
808 |
] ifFalse:[
|
|
809 |
codeView contents:(method source).
|
|
810 |
entry lineNumber notNil ifTrue:[
|
|
811 |
codeView cursorLine:entry lineNumber col:1.
|
|
812 |
codeView selectLine:entry lineNumber.
|
|
813 |
].
|
|
814 |
].
|
|
815 |
|
|
816 |
|
|
817 |
|
|
818 |
!
|
|
819 |
|
|
820 |
updateShownBreakpointList
|
|
821 |
|
|
822 |
self shownCopyOfBreakpointList contents:breakpointList.
|
|
823 |
self filter.
|
|
824 |
self resort.
|
|
825 |
|
|
826 |
|
|
827 |
! !
|
|
828 |
|
|
829 |
!BreakpointBrowser methodsFor:'initialization & release'!
|
|
830 |
|
|
831 |
initialize
|
|
832 |
super initialize.
|
|
833 |
|
|
834 |
showCodeBreakpointsFor := Dictionary new.
|
|
835 |
breakpointList := List new.
|
|
836 |
|
|
837 |
currentSortColumn := #type.
|
|
838 |
currentSortIsReverse := false.
|
|
839 |
!
|
|
840 |
|
|
841 |
postBuildCodeView:aView
|
|
842 |
codeView := aView
|
|
843 |
!
|
|
844 |
|
|
845 |
postOpenWith:aBuilder
|
|
846 |
super postOpenWith:aBuilder.
|
|
847 |
|
|
848 |
self enqueueMessage:#updateList for:self arguments:#().
|
|
849 |
|
|
850 |
"Modified: / 18-02-2007 / 12:55:57 / cg"
|
|
851 |
! !
|
|
852 |
|
|
853 |
!BreakpointBrowser methodsFor:'menu actions'!
|
|
854 |
|
|
855 |
openAboutThisApplication
|
|
856 |
super openAboutThisApplication
|
|
857 |
!
|
|
858 |
|
|
859 |
openDocumentation
|
|
860 |
HTMLDocumentView openFullOnDocumentationFile:'tools/misc/TOP.html#BREAKPOINTLIST'.
|
|
861 |
|
|
862 |
"/ add application-specific help files under the 'doc/online/<language>/help/appName'
|
|
863 |
"/ directory, and open a viewer with:
|
|
864 |
"/ HTMLDocumentView openFullOnDocumentationFile:'help/<MyApplication>/TOP.html'.
|
|
865 |
! !
|
|
866 |
|
|
867 |
!BreakpointBrowser methodsFor:'menu actions-item'!
|
|
868 |
|
|
869 |
browseItem
|
|
870 |
(self breakpointListEntryAtIndex:self selectionIndexHolder value) browse
|
|
871 |
!
|
|
872 |
|
|
873 |
removeItem
|
|
874 |
breakpointList remove:(self selectedBreakpointListEntry)
|
|
875 |
|
|
876 |
"Created: / 22-10-2006 / 10:45:52 / cg"
|
|
877 |
"Modified: / 18-02-2007 / 12:57:58 / cg"
|
|
878 |
!
|
|
879 |
|
|
880 |
removeItems:entriesToRemove
|
|
881 |
entriesToRemove do:[:entryToRemove |
|
|
882 |
toDoList remove:entryToRemove
|
|
883 |
].
|
|
884 |
! !
|
|
885 |
|
|
886 |
!BreakpointBrowser methodsFor:'menus-dynamic'!
|
|
887 |
|
|
888 |
codeBreakpointMenu
|
|
889 |
<resource: #programMenu >
|
|
890 |
|
|
891 |
|breakpointArgs menu|
|
|
892 |
|
|
893 |
breakpointArgs := Set new.
|
|
894 |
breakpointList
|
|
895 |
select:[:entry | entry arg notNil]
|
|
896 |
thenDo:[:entry | breakpointArgs add:entry arg].
|
|
897 |
(breakpointList contains:[:entry | entry arg isNil]) ifTrue:[
|
|
898 |
breakpointArgs add:'<nil>'.
|
|
899 |
].
|
|
900 |
breakpointArgs := breakpointArgs asSortedCollection.
|
|
901 |
|
|
902 |
menu := Menu new.
|
|
903 |
breakpointArgs do:[:arg|
|
|
904 |
| menuItem |
|
|
905 |
|
|
906 |
menuItem := MenuItem new.
|
|
907 |
menuItem label:arg.
|
|
908 |
menuItem translateLabel:false.
|
|
909 |
menuItem indication:(showCodeBreakpointsFor at:arg ifAbsentPut:[true asValue]).
|
|
910 |
menuItem hideMenuOnActivated:false.
|
|
911 |
menuItem value:[:onOff |
|
|
912 |
(showCodeBreakpointsFor at:arg ifAbsentPut:[true asValue]) value:onOff.
|
|
913 |
self updateShownBreakpointList
|
|
914 |
].
|
|
915 |
menu addItem:menuItem.
|
|
916 |
].
|
|
917 |
menu findGuiResourcesIn:self.
|
|
918 |
^ menu
|
|
919 |
|
|
920 |
"Modified: / 27-03-2007 / 10:54:29 / cg"
|
|
921 |
!
|
|
922 |
|
|
923 |
enabledCodeBreakpointMenu
|
|
924 |
<resource: #programMenu >
|
|
925 |
|
|
926 |
|breakpointArgs menu enabledCodeBreakpointHolders|
|
|
927 |
|
|
928 |
enabledCodeBreakpointHolders := Dictionary new.
|
|
929 |
|
|
930 |
breakpointArgs := Set new.
|
|
931 |
breakpointList
|
|
932 |
select:[:entry | entry arg notNil]
|
|
933 |
thenDo:[:entry | breakpointArgs add:entry arg].
|
|
934 |
(breakpointList contains:[:entry | entry arg isNil]) ifTrue:[
|
|
935 |
breakpointArgs add:'<nil>'.
|
|
936 |
].
|
|
937 |
breakpointArgs := breakpointArgs asSortedCollection.
|
|
938 |
|
|
939 |
menu := Menu new.
|
|
940 |
breakpointArgs do:[:arg|
|
|
941 |
| menuItem |
|
|
942 |
|
|
943 |
menuItem := MenuItem new.
|
|
944 |
menuItem label:arg.
|
|
945 |
menuItem translateLabel:false.
|
|
946 |
menuItem indication:(enabledCodeBreakpointHolders at:arg ifAbsentPut:[ (Object isBreakPointEnabled:arg) asValue ]).
|
|
947 |
menuItem hideMenuOnActivated:false.
|
|
948 |
menuItem value:[:onOff |
|
|
949 |
(enabledCodeBreakpointHolders at:arg ifAbsentPut:[(Object isBreakPointEnabled:arg) asValue]) value:onOff.
|
|
950 |
onOff ifFalse:[
|
|
951 |
Object disableBreakPoint:arg
|
|
952 |
] ifTrue:[
|
|
953 |
Object enableBreakPoint:arg
|
|
954 |
].
|
|
955 |
].
|
|
956 |
menu addItem:menuItem.
|
|
957 |
].
|
|
958 |
menu findGuiResourcesIn:self.
|
|
959 |
^ menu
|
|
960 |
|
|
961 |
"Modified: / 27-03-2007 / 10:54:29 / cg"
|
|
962 |
! !
|
|
963 |
|
|
964 |
!BreakpointBrowser methodsFor:'user actions'!
|
|
965 |
|
|
966 |
browseSelectedItem
|
|
967 |
(self selectedBreakpointListEntry) browse
|
|
968 |
|
|
969 |
"Created: / 22-10-2006 / 01:49:13 / cg"
|
|
970 |
"Modified: / 18-02-2007 / 12:56:30 / cg"
|
|
971 |
!
|
|
972 |
|
|
973 |
itemDoubleClicked:itemIndex
|
|
974 |
self browseSelectedItem
|
|
975 |
|
|
976 |
"Created: / 22-10-2006 / 01:49:13 / cg"
|
|
977 |
"Modified: / 18-02-2007 / 12:56:30 / cg"
|
|
978 |
!
|
|
979 |
|
|
980 |
resort
|
|
981 |
|sortBlock sortBlock1|
|
|
982 |
|
|
983 |
currentSortColumn isNil ifTrue:[^ self ].
|
|
984 |
|
|
985 |
sortBlock := sortBlock1 := [:a :b |
|
|
986 |
|vA vB|
|
|
987 |
|
|
988 |
vA := (a perform:currentSortColumn).
|
|
989 |
vB := (b perform:currentSortColumn).
|
|
990 |
vA = vB ifTrue:[
|
|
991 |
currentSortColumn == #type ifTrue:[
|
|
992 |
vA := a arg.
|
|
993 |
vB := b arg.
|
|
994 |
vA = vB ifTrue:[
|
|
995 |
vA := a className.
|
|
996 |
vB := b className.
|
|
997 |
vA = vB ifTrue:[
|
|
998 |
vA := a selector.
|
|
999 |
vB := b selector.
|
|
1000 |
vA = vB ifTrue:[
|
|
1001 |
vA := a lineNumber.
|
|
1002 |
vB := b lineNumber.
|
|
1003 |
]
|
|
1004 |
]
|
|
1005 |
]
|
|
1006 |
]
|
|
1007 |
].
|
|
1008 |
(vA ? '') < (vB ? '')
|
|
1009 |
].
|
|
1010 |
|
|
1011 |
currentSortIsReverse ifTrue:[
|
|
1012 |
sortBlock := [:a :b | (sortBlock1 value:a value:b) not ].
|
|
1013 |
].
|
|
1014 |
|
|
1015 |
"/ temporary hack - should make a copy of the real list
|
|
1016 |
self shownCopyOfBreakpointList sort:sortBlock
|
|
1017 |
|
|
1018 |
"Created: / 25-10-2006 / 01:01:26 / cg"
|
|
1019 |
"Modified: / 18-02-2007 / 13:02:19 / cg"
|
|
1020 |
!
|
|
1021 |
|
|
1022 |
sortBy:instanceName
|
|
1023 |
self sortBy:instanceName withReverse:true
|
|
1024 |
|
|
1025 |
"Created: / 25-10-2006 / 00:53:55 / cg"
|
|
1026 |
!
|
|
1027 |
|
|
1028 |
sortBy:instanceName withReverse:aBoolean
|
|
1029 |
|aSymbol|
|
|
1030 |
|
|
1031 |
aSymbol := instanceName asSymbol.
|
|
1032 |
|
|
1033 |
currentSortColumn isNil ifTrue:[
|
|
1034 |
currentSortColumn := aSymbol.
|
|
1035 |
currentSortIsReverse := false.
|
|
1036 |
] ifFalse:[
|
|
1037 |
currentSortColumn = aSymbol ifTrue:[
|
|
1038 |
"/ same column like before - change sort order ifReverse is true
|
|
1039 |
aBoolean ifTrue:[
|
|
1040 |
currentSortIsReverse := currentSortIsReverse not.
|
|
1041 |
].
|
|
1042 |
] ifFalse:[
|
|
1043 |
"/ another column - remark column
|
|
1044 |
currentSortColumn := aSymbol.
|
|
1045 |
]
|
|
1046 |
].
|
|
1047 |
self resort.
|
|
1048 |
|
|
1049 |
"Created: / 25-10-2006 / 00:54:59 / cg"
|
|
1050 |
!
|
|
1051 |
|
|
1052 |
updateList
|
|
1053 |
self updatingLabelShown value:true.
|
|
1054 |
"/ cg: mhmh why is this needed ????
|
|
1055 |
Delay waitForSeconds:0.1.
|
|
1056 |
self windowGroup repairDamage.
|
|
1057 |
|
|
1058 |
self withWaitCursorDo:[
|
|
1059 |
self updateBreakpointList.
|
|
1060 |
self updateShownBreakpointList.
|
|
1061 |
].
|
|
1062 |
self updatingLabelShown value:false.
|
|
1063 |
! !
|
|
1064 |
|
|
1065 |
!BreakpointBrowser::BreakpointListEntry methodsFor:'accessing'!
|
|
1066 |
|
|
1067 |
arg
|
|
1068 |
^ arg
|
|
1069 |
!
|
|
1070 |
|
|
1071 |
className
|
|
1072 |
^ className
|
|
1073 |
!
|
|
1074 |
|
|
1075 |
enabled
|
|
1076 |
^ enabled
|
|
1077 |
!
|
|
1078 |
|
|
1079 |
info
|
|
1080 |
^ info
|
|
1081 |
!
|
|
1082 |
|
|
1083 |
lineNumber
|
|
1084 |
^ lineNumber
|
|
1085 |
!
|
|
1086 |
|
|
1087 |
selector
|
|
1088 |
^ selector
|
|
1089 |
!
|
|
1090 |
|
|
1091 |
type
|
|
1092 |
^ type
|
|
1093 |
!
|
|
1094 |
|
|
1095 |
type:typeArg arg:argArg className:classNameArg selector:selectorArg lineNumber:lineNumberArg info:infoArg enabled:enabledArg
|
|
1096 |
type := typeArg.
|
|
1097 |
arg := argArg.
|
|
1098 |
className := classNameArg.
|
|
1099 |
selector := selectorArg.
|
|
1100 |
lineNumber := lineNumberArg.
|
|
1101 |
info := infoArg.
|
|
1102 |
enabled := enabledArg.
|
|
1103 |
! !
|
|
1104 |
|
|
1105 |
!BreakpointBrowser::BreakpointListEntry methodsFor:'actions'!
|
|
1106 |
|
|
1107 |
browse
|
|
1108 |
|browser|
|
|
1109 |
|
|
1110 |
browser := UserPreferences systemBrowserClass
|
|
1111 |
openInClass:(Smalltalk classNamed:className) selector:selector.
|
|
1112 |
|
|
1113 |
lineNumber notNil ifTrue:[
|
|
1114 |
browser codeView cursorLine:lineNumber col:1.
|
|
1115 |
browser codeView selectLine:lineNumber.
|
|
1116 |
].
|
|
1117 |
|
|
1118 |
!
|
|
1119 |
|
|
1120 |
method
|
|
1121 |
^ (Smalltalk classNamed:className) compiledMethodAt:selector.
|
|
1122 |
! !
|
|
1123 |
|
|
1124 |
!BreakpointBrowser::BreakpointListEntry methodsFor:'testing'!
|
|
1125 |
|
|
1126 |
isAssertion
|
|
1127 |
^ type == #assertion
|
|
1128 |
!
|
|
1129 |
|
|
1130 |
isCodeBreakpoint
|
|
1131 |
^ type == #breakpoint
|
|
1132 |
!
|
|
1133 |
|
|
1134 |
isHalt
|
|
1135 |
^ type == #halt
|
|
1136 |
!
|
|
1137 |
|
|
1138 |
isMethodBreakpoint
|
|
1139 |
^ type == #wrap
|
|
1140 |
! !
|
|
1141 |
|
|
1142 |
!BreakpointBrowser::MessageArgumentExtractor methodsFor:'accessing'!
|
|
1143 |
|
|
1144 |
callBack:something
|
|
1145 |
callBack := something.
|
|
1146 |
!
|
|
1147 |
|
|
1148 |
selectorToSearch:something
|
|
1149 |
selectorToSearch := something.
|
|
1150 |
! !
|
|
1151 |
|
|
1152 |
!BreakpointBrowser::MessageArgumentExtractor methodsFor:'visiting'!
|
|
1153 |
|
|
1154 |
acceptMessageNode: aMessageNode
|
|
1155 |
|arg1Node arg1 arg2Node arg2 argument infoMessage|
|
|
1156 |
|
|
1157 |
aMessageNode selector == selectorToSearch ifTrue:[
|
|
1158 |
aMessageNode arguments size > 0 ifTrue:[
|
|
1159 |
arg1Node := aMessageNode arguments first.
|
|
1160 |
arg1Node isLiteral ifTrue:[
|
|
1161 |
arg1 := arg1Node value.
|
|
1162 |
].
|
|
1163 |
aMessageNode arguments size > 1 ifTrue:[
|
|
1164 |
arg2Node := aMessageNode arguments second.
|
|
1165 |
arg2Node isLiteral ifTrue:[
|
|
1166 |
arg2 := arg2Node value.
|
|
1167 |
].
|
|
1168 |
].
|
|
1169 |
].
|
|
1170 |
|
|
1171 |
selectorToSearch == #halt: ifTrue:[
|
|
1172 |
infoMessage := arg1.
|
|
1173 |
].
|
|
1174 |
selectorToSearch == #breakPoint: ifTrue:[
|
|
1175 |
argument := arg1.
|
|
1176 |
].
|
|
1177 |
selectorToSearch == #breakPoint:info: ifTrue:[
|
|
1178 |
argument := arg1.
|
|
1179 |
infoMessage := arg2.
|
|
1180 |
].
|
|
1181 |
selectorToSearch == #assert: ifTrue:[
|
|
1182 |
].
|
|
1183 |
selectorToSearch == #assert:message: ifTrue:[
|
|
1184 |
infoMessage := arg2.
|
|
1185 |
].
|
|
1186 |
|
|
1187 |
callBack
|
|
1188 |
value:aMessageNode firstLineNumber
|
|
1189 |
value:argument
|
|
1190 |
value:infoMessage
|
|
1191 |
].
|
|
1192 |
super acceptMessageNode: aMessageNode
|
|
1193 |
! !
|
|
1194 |
|
|
1195 |
!BreakpointBrowser class methodsFor:'documentation'!
|
|
1196 |
|
|
1197 |
version
|
8234
|
1198 |
^ '$Header: /cvs/stx/stx/libtool/Tools__BreakpointBrowser.st,v 1.2 2008-08-20 19:40:26 cg Exp $'
|
8233
|
1199 |
! !
|