author | Claus Gittinger <cg@exept.de> |
Tue, 03 Feb 2009 11:41:37 +0100 | |
changeset 8530 | 10e17ee2b59c |
parent 8398 | f90fc6048ed4 |
child 8767 | 00f1c865aaea |
permissions | -rw-r--r-- |
8234 | 1 |
" |
2 |
COPYRIGHT (c) 2008 by eXept Software AG |
|
8241 | 3 |
All Rights Reserved |
8234 | 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 |
|
8365 | 20 |
showCodeBreakpointsFor showMethodBreakpoints codeView infoHolder' |
8233 | 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:'' |
|
8302 | 30 |
privateIn:BreakpointBrowser |
8233 | 31 |
! |
32 |
||
33 |
RBProgramNodeVisitor subclass:#MessageArgumentExtractor |
|
34 |
instanceVariableNames:'callBack selectorToSearch' |
|
35 |
classVariableNames:'' |
|
36 |
poolDictionaries:'' |
|
8302 | 37 |
privateIn:BreakpointBrowser |
8233 | 38 |
! |
39 |
||
40 |
!BreakpointBrowser class methodsFor:'documentation'! |
|
41 |
||
8234 | 42 |
copyright |
43 |
" |
|
44 |
COPYRIGHT (c) 2008 by eXept Software AG |
|
8241 | 45 |
All Rights Reserved |
8234 | 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:] |
|
8241 | 61 |
cg (cg@FUSI) |
8233 | 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 |
||
8357 | 82 |
^ |
8233 | 83 |
#(FullSpec |
8357 | 84 |
name: windowSpec |
85 |
window: |
|
8233 | 86 |
(WindowSpec |
8357 | 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: |
|
8233 | 95 |
(SpecCollection |
8357 | 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 - Please Wait...' |
|
135 |
name: 'Label1' |
|
136 |
layout: (LayoutFrame 0 0 40 0 0 1 0 1) |
|
137 |
visibilityChannel: updatingLabelShown |
|
138 |
backgroundColor: (Color 100.0 49.999237048905 49.999237048905) |
|
139 |
translateLabel: true |
|
140 |
) |
|
8365 | 141 |
(ViewSpec |
142 |
name: 'InfoBox' |
|
143 |
layout: (LayoutFrame 0 0 -30 1 0 1 0 1) |
|
144 |
visibilityChannel: updatingLabelShown |
|
145 |
component: |
|
146 |
(SpecCollection |
|
147 |
collection: ( |
|
148 |
(LabelSpec |
|
149 |
label: 'Label' |
|
150 |
name: 'Label2' |
|
151 |
layout: (LayoutFrame 2 0 2 0 680 0 30 0) |
|
152 |
level: -1 |
|
153 |
translateLabel: true |
|
154 |
labelChannel: infoHolder |
|
155 |
adjust: left |
|
156 |
) |
|
157 |
) |
|
158 |
||
159 |
) |
|
160 |
) |
|
8357 | 161 |
) |
162 |
||
163 |
) |
|
8233 | 164 |
) |
165 |
! ! |
|
166 |
||
167 |
!BreakpointBrowser class methodsFor:'menu specs'! |
|
168 |
||
169 |
itemMenu |
|
170 |
"This resource specification was automatically generated |
|
171 |
by the MenuEditor of ST/X." |
|
172 |
||
173 |
"Do not manually edit this!! If it is corrupted, |
|
174 |
the MenuEditor may not be able to read the specification." |
|
175 |
||
176 |
" |
|
177 |
MenuEditor new openOnClass:Tools::BreakpointBrowser andSelector:#itemMenu |
|
178 |
(Menu new fromLiteralArrayEncoding:(Tools::BreakpointBrowser itemMenu)) startUp |
|
179 |
" |
|
180 |
||
181 |
<resource: #menu> |
|
182 |
||
8241 | 183 |
^ |
8233 | 184 |
#(Menu |
8362 | 185 |
( |
186 |
(MenuItem |
|
187 |
label: 'Browse' |
|
188 |
itemValue: browseSelectedItem |
|
189 |
translateLabel: true |
|
190 |
) |
|
191 |
) |
|
192 |
nil |
|
193 |
nil |
|
8233 | 194 |
) |
195 |
! |
|
196 |
||
197 |
mainMenu |
|
198 |
"This resource specification was automatically generated |
|
199 |
by the MenuEditor of ST/X." |
|
200 |
||
201 |
"Do not manually edit this!! If it is corrupted, |
|
202 |
the MenuEditor may not be able to read the specification." |
|
203 |
||
204 |
" |
|
205 |
MenuEditor new openOnClass:Tools::BreakpointBrowser andSelector:#mainMenu |
|
206 |
(Menu new fromLiteralArrayEncoding:(Tools::BreakpointBrowser mainMenu)) startUp |
|
207 |
" |
|
208 |
||
209 |
<resource: #menu> |
|
210 |
||
8241 | 211 |
^ |
8233 | 212 |
#(Menu |
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
213 |
( |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
214 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
215 |
label: 'File' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
216 |
translateLabel: true |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
217 |
submenu: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
218 |
(Menu |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
219 |
( |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
220 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
221 |
label: 'Exit' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
222 |
itemValue: closeRequest |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
223 |
translateLabel: true |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
224 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
225 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
226 |
nil |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
227 |
nil |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
228 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
229 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
230 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
231 |
label: 'Selection' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
232 |
translateLabel: true |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
233 |
submenu: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
234 |
(Menu |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
235 |
( |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
236 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
237 |
label: 'Browse' |
8362 | 238 |
itemValue: browseSelectedItem |
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
239 |
translateLabel: true |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
240 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
241 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
242 |
nil |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
243 |
nil |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
244 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
245 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
246 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
247 |
label: 'View' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
248 |
translateLabel: true |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
249 |
submenu: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
250 |
(Menu |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
251 |
( |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
252 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
253 |
label: 'Update List' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
254 |
itemValue: updateList |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
255 |
translateLabel: true |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
256 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
257 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
258 |
label: '-' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
259 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
260 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
261 |
label: 'Assertions' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
262 |
itemValue: showAssertions: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
263 |
translateLabel: true |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
264 |
hideMenuOnActivated: false |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
265 |
indication: showAssertions |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
266 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
267 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
268 |
label: 'Halts' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
269 |
itemValue: showHalts: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
270 |
translateLabel: true |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
271 |
hideMenuOnActivated: false |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
272 |
indication: showHalts |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
273 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
274 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
275 |
label: '-' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
276 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
277 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
278 |
label: 'Code Breakpoints' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
279 |
itemValue: showCodeBreakpoints: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
280 |
translateLabel: true |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
281 |
hideMenuOnActivated: false |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
282 |
indication: showCodeBreakpoints |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
283 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
284 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
285 |
enabled: showCodeBreakpoints |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
286 |
label: ' ' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
287 |
translateLabel: true |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
288 |
submenuChannel: codeBreakpointMenu |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
289 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
290 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
291 |
label: '-' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
292 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
293 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
294 |
label: 'Method Breakpoints' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
295 |
itemValue: showMethodBreakpoints: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
296 |
translateLabel: true |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
297 |
hideMenuOnActivated: false |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
298 |
indication: showMethodBreakpoints |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
299 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
300 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
301 |
nil |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
302 |
nil |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
303 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
304 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
305 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
306 |
label: 'Enable' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
307 |
translateLabel: true |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
308 |
submenu: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
309 |
(Menu |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
310 |
( |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
311 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
312 |
label: 'Assertions' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
313 |
itemValue: enableAssertions: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
314 |
translateLabel: true |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
315 |
indication: enableAssertions |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
316 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
317 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
318 |
label: 'Halts' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
319 |
itemValue: enableHalts: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
320 |
translateLabel: true |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
321 |
indication: enableHalts |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
322 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
323 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
324 |
label: '-' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
325 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
326 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
327 |
label: 'Code Breakpoints' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
328 |
translateLabel: true |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
329 |
submenuChannel: enabledCodeBreakpointMenu |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
330 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
331 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
332 |
nil |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
333 |
nil |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
334 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
335 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
336 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
337 |
label: 'Help' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
338 |
translateLabel: true |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
339 |
startGroup: right |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
340 |
submenu: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
341 |
(Menu |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
342 |
( |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
343 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
344 |
label: 'Documentation' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
345 |
itemValue: openDocumentation |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
346 |
translateLabel: true |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
347 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
348 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
349 |
label: '-' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
350 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
351 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
352 |
label: 'About this Application...' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
353 |
itemValue: openAboutThisApplication |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
354 |
translateLabel: true |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
355 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
356 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
357 |
nil |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
358 |
nil |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
359 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
360 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
361 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
362 |
nil |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
363 |
nil |
8233 | 364 |
) |
365 |
! |
|
366 |
||
367 |
toolBarMenu |
|
368 |
"This resource specification was automatically generated |
|
369 |
by the MenuEditor of ST/X." |
|
370 |
||
371 |
"Do not manually edit this!! If it is corrupted, |
|
372 |
the MenuEditor may not be able to read the specification." |
|
373 |
||
374 |
" |
|
375 |
MenuEditor new openOnClass:Tools::BreakpointBrowser andSelector:#toolBarMenu |
|
376 |
(Menu new fromLiteralArrayEncoding:(Tools::BreakpointBrowser toolBarMenu)) startUp |
|
377 |
" |
|
378 |
||
379 |
<resource: #menu> |
|
380 |
||
8241 | 381 |
^ |
8233 | 382 |
#(Menu |
8241 | 383 |
( |
384 |
(MenuItem |
|
385 |
label: 'Update List' |
|
386 |
itemValue: updateList |
|
387 |
translateLabel: true |
|
388 |
isButton: true |
|
389 |
labelImage: (ResourceRetriever XPToolbarIconLibrary reloadIcon) |
|
390 |
) |
|
391 |
(MenuItem |
|
392 |
label: '-' |
|
393 |
) |
|
394 |
(MenuItem |
|
395 |
enabled: hasSelectionHolder |
|
396 |
label: 'Browse Selected Method' |
|
397 |
itemValue: browseSelectedItem |
|
398 |
translateLabel: true |
|
399 |
isButton: true |
|
400 |
labelImage: (ResourceRetriever XPToolbarIconLibrary startNewSystemBrowserIcon) |
|
401 |
) |
|
402 |
) |
|
403 |
nil |
|
404 |
nil |
|
8233 | 405 |
) |
406 |
! ! |
|
407 |
||
408 |
!BreakpointBrowser class methodsFor:'tableColumns specs'! |
|
409 |
||
410 |
tableColumns |
|
411 |
"This resource specification was automatically generated |
|
412 |
by the DataSetBuilder of ST/X." |
|
413 |
||
414 |
"Do not manually edit this!! If it is corrupted, |
|
415 |
the DataSetBuilder may not be able to read the specification." |
|
416 |
||
417 |
" |
|
418 |
DataSetBuilder new openOnClass:Tools::BreakpointBrowser andSelector:#tableColumns |
|
419 |
" |
|
420 |
||
421 |
<resource: #tableColumns> |
|
422 |
||
423 |
^#( |
|
424 |
(DataSetColumnSpec |
|
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
425 |
label: 'Type' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
426 |
activeHelpKey: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
427 |
activeHelpKeyForLabel: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
428 |
labelButtonType: Button |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
429 |
labelActionSelector: sortBy: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
430 |
labelActionArgument: 'type' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
431 |
width: 70 |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
432 |
model: type |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
433 |
canSelect: false |
8233 | 434 |
) |
435 |
(DataSetColumnSpec |
|
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
436 |
label: 'Arg' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
437 |
activeHelpKey: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
438 |
activeHelpKeyForLabel: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
439 |
labelButtonType: Button |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
440 |
labelActionSelector: sortBy: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
441 |
labelActionArgument: 'type' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
442 |
width: 50 |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
443 |
model: arg |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
444 |
canSelect: false |
8233 | 445 |
) |
446 |
(DataSetColumnSpec |
|
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
447 |
label: 'Class' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
448 |
activeHelpKey: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
449 |
activeHelpKeyForLabel: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
450 |
labelButtonType: Button |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
451 |
labelActionSelector: sortBy: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
452 |
labelActionArgument: 'className' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
453 |
width: 150 |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
454 |
model: className |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
455 |
canSelect: false |
8233 | 456 |
) |
457 |
(DataSetColumnSpec |
|
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
458 |
label: 'Method' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
459 |
labelAlignment: left |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
460 |
activeHelpKey: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
461 |
activeHelpKeyForLabel: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
462 |
labelButtonType: Button |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
463 |
labelActionSelector: sortBy: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
464 |
labelActionArgument: 'selector' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
465 |
width: 200 |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
466 |
model: selector |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
467 |
canSelect: false |
8233 | 468 |
) |
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
469 |
"/ (DataSetColumnSpec |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
470 |
"/ label: 'Line' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
471 |
"/ labelAlignment: left |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
472 |
"/ activeHelpKey: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
473 |
"/ activeHelpKeyForLabel: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
474 |
"/ labelButtonType: Button |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
475 |
"/ labelActionSelector: sortBy: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
476 |
"/ labelActionArgument: 'lineNumber' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
477 |
"/ width: 35 |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
478 |
"/ model: lineNumber |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
479 |
"/ canSelect: false |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
480 |
"/ ) |
8233 | 481 |
(DataSetColumnSpec |
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
482 |
label: 'Info' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
483 |
labelAlignment: left |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
484 |
activeHelpKey: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
485 |
activeHelpKeyForLabel: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
486 |
labelButtonType: Button |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
487 |
labelActionSelector: sortBy: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
488 |
labelActionArgument: 'info' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
489 |
model: info |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
490 |
canSelect: false |
8233 | 491 |
) |
492 |
) |
|
493 |
! |
|
494 |
||
495 |
tableColumns_v1 |
|
496 |
"This resource specification was automatically generated |
|
497 |
by the DataSetBuilder of ST/X." |
|
498 |
||
499 |
"Do not manually edit this!! If it is corrupted, |
|
500 |
the DataSetBuilder may not be able to read the specification." |
|
501 |
||
502 |
" |
|
503 |
DataSetBuilder new openOnClass:Tools::BreakpointBrowser andSelector:#tableColumns |
|
504 |
" |
|
505 |
||
506 |
<resource: #tableColumns> |
|
507 |
||
508 |
^#( |
|
509 |
(DataSetColumnSpec |
|
8241 | 510 |
label: 'Enabled' |
511 |
activeHelpKey: '' |
|
512 |
activeHelpKeyForLabel: '' |
|
513 |
labelButtonType: Button |
|
514 |
width: 50 |
|
515 |
editorType: CheckToggle |
|
516 |
rendererType: CheckToggle |
|
517 |
model: enabled |
|
8233 | 518 |
) |
519 |
(DataSetColumnSpec |
|
8241 | 520 |
label: 'Type' |
521 |
activeHelpKey: '' |
|
522 |
activeHelpKeyForLabel: '' |
|
523 |
labelButtonType: Button |
|
524 |
labelActionSelector: sortBy: |
|
525 |
labelActionArgument: 'type' |
|
526 |
width: 60 |
|
527 |
model: type |
|
528 |
canSelect: false |
|
8233 | 529 |
) |
530 |
(DataSetColumnSpec |
|
8241 | 531 |
label: 'Arg' |
532 |
activeHelpKey: '' |
|
533 |
activeHelpKeyForLabel: '' |
|
534 |
labelButtonType: Button |
|
535 |
labelActionSelector: sortBy: |
|
536 |
labelActionArgument: 'type' |
|
537 |
width: 50 |
|
538 |
model: arg |
|
539 |
canSelect: false |
|
8233 | 540 |
) |
541 |
(DataSetColumnSpec |
|
8241 | 542 |
label: 'Class' |
543 |
activeHelpKey: '' |
|
544 |
activeHelpKeyForLabel: '' |
|
545 |
labelButtonType: Button |
|
546 |
labelActionSelector: sortBy: |
|
547 |
labelActionArgument: 'className' |
|
548 |
width: 150 |
|
549 |
model: className |
|
550 |
canSelect: false |
|
8233 | 551 |
) |
552 |
(DataSetColumnSpec |
|
8241 | 553 |
label: 'Method' |
554 |
labelAlignment: left |
|
555 |
activeHelpKey: '' |
|
556 |
activeHelpKeyForLabel: '' |
|
557 |
labelButtonType: Button |
|
558 |
labelActionSelector: sortBy: |
|
559 |
labelActionArgument: 'selector' |
|
560 |
width: 200 |
|
561 |
model: selector |
|
562 |
canSelect: false |
|
8233 | 563 |
) |
564 |
(DataSetColumnSpec |
|
8241 | 565 |
label: 'Line' |
566 |
labelAlignment: left |
|
567 |
activeHelpKey: '' |
|
568 |
activeHelpKeyForLabel: '' |
|
569 |
labelButtonType: Button |
|
570 |
labelActionSelector: sortBy: |
|
571 |
labelActionArgument: 'lineNumber' |
|
572 |
width: 35 |
|
573 |
model: lineNumber |
|
574 |
canSelect: false |
|
8233 | 575 |
) |
576 |
(DataSetColumnSpec |
|
8241 | 577 |
label: 'Info' |
578 |
labelAlignment: left |
|
579 |
activeHelpKey: '' |
|
580 |
activeHelpKeyForLabel: '' |
|
581 |
labelButtonType: Button |
|
582 |
labelActionSelector: sortBy: |
|
583 |
labelActionArgument: 'info' |
|
584 |
model: info |
|
585 |
canSelect: false |
|
8233 | 586 |
) |
587 |
) |
|
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
588 |
! |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
589 |
|
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
590 |
tableColumns_v2 |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
591 |
"This resource specification was automatically generated |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
592 |
by the DataSetBuilder of ST/X." |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
593 |
|
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
594 |
"Do not manually edit this!! If it is corrupted, |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
595 |
the DataSetBuilder may not be able to read the specification." |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
596 |
|
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
597 |
" |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
598 |
DataSetBuilder new openOnClass:Tools::BreakpointBrowser andSelector:#tableColumns |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
599 |
" |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
600 |
|
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
601 |
<resource: #tableColumns> |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
602 |
|
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
603 |
^#( |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
604 |
(DataSetColumnSpec |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
605 |
label: 'Type' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
606 |
activeHelpKey: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
607 |
activeHelpKeyForLabel: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
608 |
labelButtonType: Button |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
609 |
labelActionSelector: sortBy: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
610 |
labelActionArgument: 'type' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
611 |
width: 70 |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
612 |
model: type |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
613 |
canSelect: false |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
614 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
615 |
(DataSetColumnSpec |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
616 |
label: 'Arg' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
617 |
activeHelpKey: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
618 |
activeHelpKeyForLabel: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
619 |
labelButtonType: Button |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
620 |
labelActionSelector: sortBy: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
621 |
labelActionArgument: 'type' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
622 |
width: 50 |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
623 |
model: arg |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
624 |
canSelect: false |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
625 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
626 |
(DataSetColumnSpec |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
627 |
label: 'Class' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
628 |
activeHelpKey: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
629 |
activeHelpKeyForLabel: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
630 |
labelButtonType: Button |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
631 |
labelActionSelector: sortBy: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
632 |
labelActionArgument: 'className' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
633 |
width: 150 |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
634 |
model: className |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
635 |
canSelect: false |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
636 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
637 |
(DataSetColumnSpec |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
638 |
label: 'Method' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
639 |
labelAlignment: left |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
640 |
activeHelpKey: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
641 |
activeHelpKeyForLabel: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
642 |
labelButtonType: Button |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
643 |
labelActionSelector: sortBy: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
644 |
labelActionArgument: 'selector' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
645 |
width: 200 |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
646 |
model: selector |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
647 |
canSelect: false |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
648 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
649 |
(DataSetColumnSpec |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
650 |
label: 'Line' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
651 |
labelAlignment: left |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
652 |
activeHelpKey: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
653 |
activeHelpKeyForLabel: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
654 |
labelButtonType: Button |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
655 |
labelActionSelector: sortBy: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
656 |
labelActionArgument: 'lineNumber' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
657 |
width: 35 |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
658 |
model: lineNumber |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
659 |
canSelect: false |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
660 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
661 |
(DataSetColumnSpec |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
662 |
label: 'Info' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
663 |
labelAlignment: left |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
664 |
activeHelpKey: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
665 |
activeHelpKeyForLabel: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
666 |
labelButtonType: Button |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
667 |
labelActionSelector: sortBy: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
668 |
labelActionArgument: 'info' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
669 |
model: info |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
670 |
canSelect: false |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
671 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
672 |
) |
8233 | 673 |
! ! |
674 |
||
675 |
!BreakpointBrowser methodsFor:'accessing'! |
|
676 |
||
8302 | 677 |
aboutThisApplicationText |
678 |
|msg| |
|
679 |
||
680 |
msg := super aboutThisApplicationText. |
|
681 |
msg := msg , '\\Written by Claus Gittinger (cg@exept.de).'. |
|
682 |
^msg withCRs. |
|
683 |
! |
|
684 |
||
8233 | 685 |
breakpointListEntryAtIndex:idx |
686 |
^ shownCopyOfBreakpointList at:idx ifAbsent:nil |
|
687 |
||
688 |
||
689 |
||
690 |
||
691 |
||
692 |
! |
|
693 |
||
694 |
selectedBreakpointListEntry |
|
8398 | 695 |
self selectionIndex isNil ifTrue:[^ nil]. |
8233 | 696 |
^ self breakpointListEntryAtIndex:(self selectionIndex). |
697 |
! |
|
698 |
||
699 |
selectionIndex |
|
700 |
^ self selectionIndexHolder value |
|
701 |
! |
|
702 |
||
703 |
shownCopyOfBreakpointList |
|
704 |
shownCopyOfBreakpointList isNil ifTrue:[ |
|
8241 | 705 |
shownCopyOfBreakpointList := List new |
8233 | 706 |
]. |
707 |
^ shownCopyOfBreakpointList |
|
708 |
||
709 |
"Created: / 18-02-2007 / 12:53:01 / cg" |
|
710 |
! |
|
711 |
||
712 |
updatingLabelShown |
|
713 |
updatingLabelShown isNil ifTrue:[ |
|
8241 | 714 |
updatingLabelShown := true asValue |
8233 | 715 |
]. |
716 |
^ updatingLabelShown |
|
717 |
! ! |
|
718 |
||
719 |
!BreakpointBrowser methodsFor:'aspects'! |
|
720 |
||
721 |
enableAssertions |
|
722 |
^ (Smalltalk at:#IgnoreAssertion ifAbsent:false) not |
|
723 |
! |
|
724 |
||
725 |
enableAssertions:aBoolean |
|
726 |
^ Smalltalk at:#IgnoreAssertion put:aBoolean not |
|
727 |
! |
|
728 |
||
729 |
enableHalts |
|
730 |
^ (Smalltalk at:#IgnoreHalt ifAbsent:false) not |
|
731 |
! |
|
732 |
||
733 |
enableHalts:aBoolean |
|
734 |
^ Smalltalk at:#IgnoreHalt put:aBoolean not |
|
735 |
! |
|
736 |
||
737 |
hasSelectionHolder |
|
738 |
^ BlockValue |
|
8241 | 739 |
with:[:selIndex | selIndex notNil and:[selIndex ~~ 0]] |
740 |
argument:self selectionIndexHolder |
|
8233 | 741 |
! |
742 |
||
8365 | 743 |
infoHolder |
744 |
infoHolder isNil ifTrue:[ |
|
745 |
infoHolder := nil asValue. |
|
746 |
]. |
|
747 |
^ infoHolder |
|
748 |
||
749 |
"Created: / 22-10-2006 / 02:00:41 / cg" |
|
750 |
! |
|
751 |
||
8233 | 752 |
selectionIndexHolder |
753 |
selectionIndexHolder isNil ifTrue:[ |
|
8241 | 754 |
selectionIndexHolder := nil asValue. |
755 |
selectionIndexHolder onChangeSend:#updateCode to:self |
|
8233 | 756 |
]. |
757 |
^ selectionIndexHolder |
|
758 |
||
759 |
"Created: / 22-10-2006 / 02:00:41 / cg" |
|
760 |
! |
|
761 |
||
762 |
showAssertions |
|
763 |
^ showAssertions ? true |
|
764 |
! |
|
765 |
||
766 |
showAssertions:aBoolean |
|
767 |
showAssertions := aBoolean. |
|
768 |
self updateShownBreakpointList |
|
769 |
! |
|
770 |
||
771 |
showCodeBreakpoints |
|
772 |
^ showCodeBreakpoints ? true |
|
773 |
! |
|
774 |
||
775 |
showCodeBreakpoints:aBoolean |
|
776 |
showCodeBreakpoints := aBoolean. |
|
777 |
self updateShownBreakpointList |
|
778 |
! |
|
779 |
||
780 |
showHalts |
|
781 |
^ showHalts ? true |
|
782 |
! |
|
783 |
||
784 |
showHalts:aBoolean |
|
785 |
showHalts := aBoolean. |
|
786 |
self updateShownBreakpointList |
|
787 |
! |
|
788 |
||
789 |
showMethodBreakpoints |
|
790 |
^ showMethodBreakpoints ? true |
|
791 |
! |
|
792 |
||
793 |
showMethodBreakpoints:aBoolean |
|
794 |
showMethodBreakpoints := aBoolean. |
|
795 |
self updateShownBreakpointList |
|
796 |
! ! |
|
797 |
||
798 |
!BreakpointBrowser methodsFor:'change & update'! |
|
799 |
||
800 |
delayedUpdate:something with:aParameter from:changedObject |
|
801 |
"/ changedObject == toDoList ifTrue:[ |
|
802 |
"/ self updateShownToDoList. |
|
803 |
"/ ^ self |
|
804 |
"/ ]. |
|
805 |
! |
|
806 |
||
807 |
filter |
|
808 |
|newList| |
|
809 |
||
810 |
newList := breakpointList. |
|
811 |
self showHalts ifFalse:[ |
|
8241 | 812 |
newList := newList reject:[:entry | entry isHalt]. |
8233 | 813 |
]. |
814 |
self showCodeBreakpoints ifFalse:[ |
|
8241 | 815 |
newList := newList reject:[:entry | entry isCodeBreakpoint]. |
8233 | 816 |
] ifTrue:[ |
8241 | 817 |
newList := newList reject:[:entry | |
818 |
|flag| |
|
8233 | 819 |
|
8241 | 820 |
flag := (showCodeBreakpointsFor at:(entry arg ? '<nil>') ifAbsentPut:[true asValue]) value. |
821 |
entry isCodeBreakpoint |
|
822 |
and:[ flag not ] |
|
823 |
]. |
|
8233 | 824 |
]. |
825 |
self showMethodBreakpoints ifFalse:[ |
|
8241 | 826 |
newList := newList reject:[:entry | entry isMethodBreakpoint]. |
8233 | 827 |
]. |
828 |
self showAssertions ifFalse:[ |
|
8241 | 829 |
newList := newList reject:[:entry | entry isAssertion]. |
8233 | 830 |
]. |
831 |
shownCopyOfBreakpointList contents:newList. |
|
832 |
! |
|
833 |
||
8365 | 834 |
messageSelectors |
835 |
^ (self messagesAndTypes collect:[:each | each first]) asSet. |
|
836 |
! |
|
837 |
||
838 |
messagesAndTypes |
|
839 |
^ #( |
|
840 |
(#breakPoint: #breakPoint) |
|
841 |
(#breakPoint:info: #breakPoint) |
|
842 |
(#debuggingCodeFor:is: #debugCode) |
|
843 |
(#halt #halt) |
|
844 |
(#halt: #halt) |
|
845 |
(#assert: #assertion) |
|
846 |
(#assert:message: #assertion) |
|
847 |
). |
|
848 |
! |
|
849 |
||
8233 | 850 |
update:something with:aParameter from:changedObject |
8365 | 851 |
changedObject == Smalltalk ifTrue:[ |
852 |
something == #methodInClass ifTrue:[ |
|
853 |
self updateForClass:(aParameter first) selector:(aParameter second). |
|
854 |
^ self. |
|
855 |
]. |
|
856 |
something == #methodInClassRemoved ifTrue:[ |
|
857 |
self updateForClass:(aParameter first) selector:(aParameter second). |
|
858 |
^ self. |
|
859 |
]. |
|
860 |
]. |
|
861 |
||
8233 | 862 |
^ super update:something with:aParameter from:changedObject |
863 |
||
864 |
"Created: / 18-02-2007 / 12:54:32 / cg" |
|
8365 | 865 |
|
866 |
||
867 |
||
868 |
||
869 |
||
870 |
||
871 |
||
872 |
||
873 |
||
874 |
||
875 |
||
8233 | 876 |
! |
877 |
||
878 |
updateBreakpointList |
|
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
879 |
|newShowCodeBreakpointsFor messages messageSelectors update | |
8233 | 880 |
|
881 |
breakpointList removeAll. |
|
882 |
newShowCodeBreakpointsFor := Dictionary new. |
|
883 |
||
8365 | 884 |
messages := self messagesAndTypes. |
885 |
messageSelectors := self messageSelectors. |
|
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
886 |
|
8233 | 887 |
update := [:cls :mthd :sel | |
8365 | 888 |
self |
889 |
withBreakpointListEntriesFor:mthd class:cls selector:sel |
|
890 |
messages:messages |
|
891 |
messageSelectors:messageSelectors |
|
892 |
rememberingCodeBreakpointTypesIn:newShowCodeBreakpointsFor |
|
893 |
do:[:newEntry | breakpointList add:newEntry ]. |
|
8233 | 894 |
]. |
895 |
||
896 |
Smalltalk allClassesDo:[:cls | |
|
8302 | 897 |
cls selectorsAndMethodsDo:[:sel :mthd | |
898 |
update value:cls value:mthd value:sel |
|
899 |
]. |
|
900 |
cls class selectorsAndMethodsDo:[:sel :mthd | |
|
901 |
update value:cls class value:mthd value:sel |
|
902 |
]. |
|
8233 | 903 |
]. |
904 |
||
905 |
showCodeBreakpointsFor := newShowCodeBreakpointsFor. |
|
906 |
! |
|
907 |
||
908 |
updateCode |
|
8365 | 909 |
|entry method class| |
8233 | 910 |
|
911 |
entry := self selectedBreakpointListEntry. |
|
912 |
entry isNil ifTrue:[ |
|
8365 | 913 |
codeView contents:nil. |
914 |
^ self |
|
8233 | 915 |
]. |
916 |
method := entry method. |
|
917 |
method isNil ifTrue:[ |
|
8365 | 918 |
codeView contents:'OOPS - no source found'. |
8241 | 919 |
] ifFalse:[ |
8365 | 920 |
codeView contents:(method source). |
921 |
entry lineNumber notNil ifTrue:[ |
|
922 |
codeView cursorLine:entry lineNumber col:1. |
|
923 |
codeView selectLine:entry lineNumber. |
|
924 |
]. |
|
925 |
codeView |
|
926 |
acceptAction:[:newText | |
|
927 |
class := method mclass ? (Smalltalk classNamed:entry className). |
|
928 |
class |
|
929 |
compilerClass |
|
930 |
compile:newText asString |
|
931 |
forClass:class |
|
932 |
inCategory:method category |
|
933 |
notifying:codeView. |
|
934 |
] |
|
935 |
]. |
|
936 |
! |
|
937 |
||
938 |
updateEntry:entry |
|
939 |
"after a change, update the list entry. |
|
940 |
(or remove it if required)" |
|
941 |
||
942 |
|mthd cls sel newShowCodeBreakpointsFor any| |
|
943 |
||
944 |
newShowCodeBreakpointsFor := Dictionary new. |
|
945 |
||
946 |
breakpointList remove:entry ifAbsent:[]. |
|
947 |
||
948 |
mthd := entry method. |
|
949 |
cls := Smalltalk classNamed:entry className. |
|
950 |
sel := entry selector. |
|
951 |
||
952 |
any := false. |
|
953 |
self |
|
954 |
withBreakpointListEntriesFor:mthd class:cls selector:sel |
|
955 |
messages:(self messagesAndTypes) |
|
956 |
messageSelectors:(self messageSelectors) |
|
957 |
rememberingCodeBreakpointTypesIn:newShowCodeBreakpointsFor |
|
958 |
do:[:newEntry | |
|
959 |
any := true. |
|
960 |
breakpointList add:newEntry. |
|
961 |
]. |
|
962 |
! |
|
963 |
||
964 |
updateForClass:aClass selector:selector |
|
965 |
|selectionIndexBefore mthd affectedEntries newShowCodeBreakpointsFor| |
|
966 |
||
967 |
selectionIndexBefore := selectionIndexHolder value. |
|
968 |
||
969 |
affectedEntries := breakpointList select:[:entry | |
|
970 |
entry selector = selector |
|
971 |
and:[ entry className = aClass name ] |
|
972 |
]. |
|
973 |
affectedEntries do:[:eachEntry | |
|
974 |
breakpointList remove:eachEntry ifAbsent:[]. |
|
8233 | 975 |
]. |
976 |
||
8365 | 977 |
mthd := aClass compiledMethodAt:selector. |
978 |
mthd notNil ifTrue:[ |
|
979 |
newShowCodeBreakpointsFor := Dictionary new. |
|
8233 | 980 |
|
8365 | 981 |
self |
982 |
withBreakpointListEntriesFor:mthd class:aClass selector:selector |
|
983 |
messages:(self messagesAndTypes) |
|
984 |
messageSelectors:(self messageSelectors) |
|
985 |
rememberingCodeBreakpointTypesIn:newShowCodeBreakpointsFor |
|
986 |
do:[:newEntry | |
|
987 |
breakpointList add:newEntry. |
|
988 |
]. |
|
989 |
]. |
|
8233 | 990 |
|
8365 | 991 |
self updateShownBreakpointList. |
992 |
self selectionIndexHolder value:selectionIndexBefore. |
|
993 |
self updateCode |
|
8233 | 994 |
! |
995 |
||
996 |
updateShownBreakpointList |
|
997 |
||
998 |
self shownCopyOfBreakpointList contents:breakpointList. |
|
999 |
self filter. |
|
1000 |
self resort. |
|
1001 |
||
1002 |
||
8365 | 1003 |
! |
1004 |
||
1005 |
withBreakpointListEntriesFor:mthd class:cls selector:sel |
|
1006 |
messages:messages |
|
1007 |
messageSelectors:messageSelectors |
|
1008 |
rememberingCodeBreakpointTypesIn:newShowCodeBreakpointsFor |
|
1009 |
do:aBlock |
|
1010 |
||
1011 |
|entry type messagesSent| |
|
1012 |
||
1013 |
mthd isWrapped ifTrue:[ |
|
1014 |
mthd isBreakpointed ifTrue:[ |
|
1015 |
type := #trap |
|
1016 |
] ifFalse:[ |
|
1017 |
mthd isTraced ifTrue:[ |
|
1018 |
type := #trace |
|
1019 |
] ifFalse:[ |
|
1020 |
type := #probe |
|
1021 |
]. |
|
1022 |
]. |
|
1023 |
entry := BreakpointListEntry new. |
|
1024 |
entry |
|
1025 |
type:#wrap |
|
1026 |
arg:type |
|
1027 |
className:cls name |
|
1028 |
selector:sel |
|
1029 |
lineNumber:nil |
|
1030 |
info:nil |
|
1031 |
enabled:true. |
|
1032 |
aBlock value:entry |
|
1033 |
]. |
|
1034 |
||
1035 |
(mthd literalsDetect:[:lit |messageSelectors includes:lit] ifNone:nil) notNil ifTrue:[ |
|
1036 |
messagesSent isNil ifTrue:[ |
|
1037 |
messagesSent := mthd messagesSent. |
|
1038 |
]. |
|
1039 |
||
1040 |
messages pairsDo:[:bpSel :type| |
|
1041 |
|tree extractor| |
|
1042 |
||
1043 |
"/ used to be (mthd sends:bpSel); |
|
1044 |
"/ however, the sends requires an expensive parse of the methods source |
|
1045 |
"/ to fetch all message selectors. This should be done only once, |
|
1046 |
"/ and not for every selector we look for) |
|
1047 |
(messagesSent includesIdentical:bpSel) ifTrue:[ |
|
1048 |
tree := mthd parseTree. |
|
1049 |
tree isNil ifTrue:[ |
|
1050 |
entry := BreakpointListEntry new. |
|
1051 |
entry |
|
1052 |
type:type |
|
1053 |
arg:nil |
|
1054 |
className:cls name |
|
1055 |
selector:sel |
|
1056 |
lineNumber:nil |
|
1057 |
info:nil |
|
1058 |
enabled:true. |
|
1059 |
aBlock value:entry |
|
1060 |
] ifFalse:[ |
|
1061 |
extractor := MessageArgumentExtractor new. |
|
1062 |
extractor selectorToSearch:bpSel. |
|
1063 |
extractor callBack:[:lineNo :argument :infoMessage | |
|
1064 |
argument notNil ifTrue:[ |
|
1065 |
newShowCodeBreakpointsFor |
|
1066 |
at:argument |
|
1067 |
put:(showCodeBreakpointsFor |
|
1068 |
at:argument |
|
1069 |
ifAbsent:[true asValue]) |
|
1070 |
]. |
|
1071 |
entry := BreakpointListEntry new. |
|
1072 |
entry |
|
1073 |
type:type |
|
1074 |
arg:argument |
|
1075 |
className:cls name |
|
1076 |
selector:sel |
|
1077 |
lineNumber:lineNo |
|
1078 |
info:infoMessage |
|
1079 |
enabled:true. |
|
1080 |
aBlock value:entry |
|
1081 |
]. |
|
1082 |
tree acceptVisitor:extractor. |
|
1083 |
] |
|
1084 |
]. |
|
1085 |
]. |
|
1086 |
]. |
|
8233 | 1087 |
! ! |
1088 |
||
1089 |
!BreakpointBrowser methodsFor:'initialization & release'! |
|
1090 |
||
1091 |
initialize |
|
1092 |
super initialize. |
|
1093 |
||
1094 |
showCodeBreakpointsFor := Dictionary new. |
|
1095 |
breakpointList := List new. |
|
1096 |
||
1097 |
currentSortColumn := #type. |
|
1098 |
currentSortIsReverse := false. |
|
8365 | 1099 |
|
1100 |
Smalltalk addDependent:self. |
|
8233 | 1101 |
! |
1102 |
||
1103 |
postBuildCodeView:aView |
|
1104 |
codeView := aView |
|
1105 |
! |
|
1106 |
||
1107 |
postOpenWith:aBuilder |
|
1108 |
super postOpenWith:aBuilder. |
|
1109 |
||
1110 |
self enqueueMessage:#updateList for:self arguments:#(). |
|
1111 |
||
1112 |
"Modified: / 18-02-2007 / 12:55:57 / cg" |
|
8365 | 1113 |
! |
1114 |
||
1115 |
release |
|
1116 |
Smalltalk removeDependent:self. |
|
1117 |
super release |
|
8233 | 1118 |
! ! |
1119 |
||
1120 |
!BreakpointBrowser methodsFor:'menu actions'! |
|
1121 |
||
1122 |
openDocumentation |
|
1123 |
HTMLDocumentView openFullOnDocumentationFile:'tools/misc/TOP.html#BREAKPOINTLIST'. |
|
1124 |
||
1125 |
"/ add application-specific help files under the 'doc/online/<language>/help/appName' |
|
1126 |
"/ directory, and open a viewer with: |
|
1127 |
"/ HTMLDocumentView openFullOnDocumentationFile:'help/<MyApplication>/TOP.html'. |
|
1128 |
! ! |
|
1129 |
||
1130 |
!BreakpointBrowser methodsFor:'menu actions-item'! |
|
1131 |
||
1132 |
browseItem |
|
8362 | 1133 |
self withWaitCursorDo:[ |
1134 |
(self breakpointListEntryAtIndex:self selectionIndexHolder value) browse |
|
1135 |
]. |
|
8233 | 1136 |
! |
1137 |
||
1138 |
removeItem |
|
1139 |
breakpointList remove:(self selectedBreakpointListEntry) |
|
1140 |
||
1141 |
"Created: / 22-10-2006 / 10:45:52 / cg" |
|
1142 |
"Modified: / 18-02-2007 / 12:57:58 / cg" |
|
1143 |
! ! |
|
1144 |
||
1145 |
!BreakpointBrowser methodsFor:'menus-dynamic'! |
|
1146 |
||
1147 |
codeBreakpointMenu |
|
1148 |
<resource: #programMenu > |
|
1149 |
||
1150 |
|breakpointArgs menu| |
|
1151 |
||
1152 |
breakpointArgs := Set new. |
|
8241 | 1153 |
breakpointList |
1154 |
select:[:entry | entry arg notNil] |
|
1155 |
thenDo:[:entry | breakpointArgs add:entry arg]. |
|
8233 | 1156 |
(breakpointList contains:[:entry | entry arg isNil]) ifTrue:[ |
8241 | 1157 |
breakpointArgs add:'<nil>'. |
8233 | 1158 |
]. |
1159 |
breakpointArgs := breakpointArgs asSortedCollection. |
|
1160 |
||
1161 |
menu := Menu new. |
|
8241 | 1162 |
breakpointArgs do:[:arg| |
1163 |
| menuItem | |
|
8233 | 1164 |
|
8241 | 1165 |
menuItem := MenuItem new. |
1166 |
menuItem label:arg. |
|
1167 |
menuItem translateLabel:false. |
|
1168 |
menuItem indication:(showCodeBreakpointsFor at:arg ifAbsentPut:[true asValue]). |
|
1169 |
menuItem hideMenuOnActivated:false. |
|
1170 |
menuItem value:[:onOff | |
|
1171 |
(showCodeBreakpointsFor at:arg ifAbsentPut:[true asValue]) value:onOff. |
|
1172 |
self updateShownBreakpointList |
|
1173 |
]. |
|
1174 |
menu addItem:menuItem. |
|
8233 | 1175 |
]. |
1176 |
menu findGuiResourcesIn:self. |
|
1177 |
^ menu |
|
1178 |
||
1179 |
"Modified: / 27-03-2007 / 10:54:29 / cg" |
|
1180 |
! |
|
1181 |
||
1182 |
enabledCodeBreakpointMenu |
|
1183 |
<resource: #programMenu > |
|
1184 |
||
1185 |
|breakpointArgs menu enabledCodeBreakpointHolders| |
|
1186 |
||
1187 |
enabledCodeBreakpointHolders := Dictionary new. |
|
1188 |
||
1189 |
breakpointArgs := Set new. |
|
8241 | 1190 |
breakpointList |
1191 |
select:[:entry | entry arg notNil] |
|
1192 |
thenDo:[:entry | breakpointArgs add:entry arg]. |
|
8233 | 1193 |
(breakpointList contains:[:entry | entry arg isNil]) ifTrue:[ |
8241 | 1194 |
breakpointArgs add:'<nil>'. |
8233 | 1195 |
]. |
1196 |
breakpointArgs := breakpointArgs asSortedCollection. |
|
1197 |
||
1198 |
menu := Menu new. |
|
8241 | 1199 |
breakpointArgs do:[:arg| |
1200 |
| menuItem | |
|
8233 | 1201 |
|
8241 | 1202 |
menuItem := MenuItem new. |
1203 |
menuItem label:arg. |
|
1204 |
menuItem translateLabel:false. |
|
1205 |
menuItem indication:(enabledCodeBreakpointHolders at:arg ifAbsentPut:[ (Object isBreakPointEnabled:arg) asValue ]). |
|
1206 |
menuItem hideMenuOnActivated:false. |
|
1207 |
menuItem value:[:onOff | |
|
1208 |
(enabledCodeBreakpointHolders at:arg ifAbsentPut:[(Object isBreakPointEnabled:arg) asValue]) value:onOff. |
|
1209 |
onOff ifFalse:[ |
|
1210 |
Object disableBreakPoint:arg |
|
1211 |
] ifTrue:[ |
|
1212 |
Object enableBreakPoint:arg |
|
1213 |
]. |
|
1214 |
]. |
|
1215 |
menu addItem:menuItem. |
|
8233 | 1216 |
]. |
1217 |
menu findGuiResourcesIn:self. |
|
1218 |
^ menu |
|
1219 |
||
1220 |
"Modified: / 27-03-2007 / 10:54:29 / cg" |
|
1221 |
! ! |
|
1222 |
||
1223 |
!BreakpointBrowser methodsFor:'user actions'! |
|
1224 |
||
1225 |
browseSelectedItem |
|
8362 | 1226 |
self withWaitCursorDo:[ |
1227 |
(self selectedBreakpointListEntry) browse |
|
1228 |
]. |
|
8233 | 1229 |
|
1230 |
"Created: / 22-10-2006 / 01:49:13 / cg" |
|
1231 |
"Modified: / 18-02-2007 / 12:56:30 / cg" |
|
1232 |
! |
|
1233 |
||
1234 |
itemDoubleClicked:itemIndex |
|
1235 |
self browseSelectedItem |
|
1236 |
||
1237 |
"Created: / 22-10-2006 / 01:49:13 / cg" |
|
1238 |
"Modified: / 18-02-2007 / 12:56:30 / cg" |
|
1239 |
! |
|
1240 |
||
1241 |
resort |
|
1242 |
|sortBlock sortBlock1| |
|
1243 |
||
1244 |
currentSortColumn isNil ifTrue:[^ self ]. |
|
1245 |
||
1246 |
sortBlock := sortBlock1 := [:a :b | |
|
8241 | 1247 |
|vA vB| |
8233 | 1248 |
|
8241 | 1249 |
vA := (a perform:currentSortColumn). |
1250 |
vB := (b perform:currentSortColumn). |
|
1251 |
vA = vB ifTrue:[ |
|
1252 |
currentSortColumn == #type ifTrue:[ |
|
1253 |
vA := a arg. |
|
1254 |
vB := b arg. |
|
1255 |
vA = vB ifTrue:[ |
|
1256 |
vA := a className. |
|
1257 |
vB := b className. |
|
1258 |
vA = vB ifTrue:[ |
|
1259 |
vA := a selector. |
|
1260 |
vB := b selector. |
|
1261 |
vA = vB ifTrue:[ |
|
1262 |
vA := a lineNumber. |
|
1263 |
vB := b lineNumber. |
|
1264 |
] |
|
1265 |
] |
|
1266 |
] |
|
1267 |
] |
|
1268 |
]. |
|
1269 |
(vA ? '') < (vB ? '') |
|
1270 |
]. |
|
8233 | 1271 |
|
1272 |
currentSortIsReverse ifTrue:[ |
|
8241 | 1273 |
sortBlock := [:a :b | (sortBlock1 value:a value:b) not ]. |
8233 | 1274 |
]. |
1275 |
||
1276 |
"/ temporary hack - should make a copy of the real list |
|
1277 |
self shownCopyOfBreakpointList sort:sortBlock |
|
1278 |
||
1279 |
"Created: / 25-10-2006 / 01:01:26 / cg" |
|
1280 |
"Modified: / 18-02-2007 / 13:02:19 / cg" |
|
1281 |
! |
|
1282 |
||
1283 |
sortBy:instanceName |
|
1284 |
self sortBy:instanceName withReverse:true |
|
1285 |
||
1286 |
"Created: / 25-10-2006 / 00:53:55 / cg" |
|
1287 |
! |
|
1288 |
||
1289 |
sortBy:instanceName withReverse:aBoolean |
|
1290 |
|aSymbol| |
|
1291 |
||
1292 |
aSymbol := instanceName asSymbol. |
|
1293 |
||
1294 |
currentSortColumn isNil ifTrue:[ |
|
8241 | 1295 |
currentSortColumn := aSymbol. |
1296 |
currentSortIsReverse := false. |
|
8233 | 1297 |
] ifFalse:[ |
8241 | 1298 |
currentSortColumn = aSymbol ifTrue:[ |
1299 |
"/ same column like before - change sort order ifReverse is true |
|
1300 |
aBoolean ifTrue:[ |
|
1301 |
currentSortIsReverse := currentSortIsReverse not. |
|
1302 |
]. |
|
1303 |
] ifFalse:[ |
|
1304 |
"/ another column - remark column |
|
1305 |
currentSortColumn := aSymbol. |
|
1306 |
] |
|
8233 | 1307 |
]. |
1308 |
self resort. |
|
1309 |
||
1310 |
"Created: / 25-10-2006 / 00:54:59 / cg" |
|
1311 |
! |
|
1312 |
||
1313 |
updateList |
|
1314 |
self updatingLabelShown value:true. |
|
1315 |
"/ cg: mhmh why is this needed ???? |
|
1316 |
Delay waitForSeconds:0.1. |
|
1317 |
self windowGroup repairDamage. |
|
1318 |
||
1319 |
self withWaitCursorDo:[ |
|
8365 | 1320 |
ActivityNotification handle:[:ex | |
1321 |
self infoHolder value:ex errorString. |
|
1322 |
self windowGroup processExposeEvents. |
|
1323 |
ex proceed. |
|
1324 |
] do:[ |
|
1325 |
self updateBreakpointList. |
|
1326 |
self updateShownBreakpointList. |
|
1327 |
] |
|
8233 | 1328 |
]. |
1329 |
self updatingLabelShown value:false. |
|
1330 |
! ! |
|
1331 |
||
1332 |
!BreakpointBrowser::BreakpointListEntry methodsFor:'accessing'! |
|
1333 |
||
1334 |
arg |
|
1335 |
^ arg |
|
1336 |
! |
|
1337 |
||
1338 |
className |
|
1339 |
^ className |
|
1340 |
! |
|
1341 |
||
1342 |
enabled |
|
1343 |
^ enabled |
|
1344 |
! |
|
1345 |
||
1346 |
info |
|
1347 |
^ info |
|
1348 |
! |
|
1349 |
||
1350 |
lineNumber |
|
1351 |
^ lineNumber |
|
1352 |
! |
|
1353 |
||
1354 |
selector |
|
1355 |
^ selector |
|
1356 |
! |
|
1357 |
||
1358 |
type |
|
1359 |
^ type |
|
1360 |
! |
|
1361 |
||
8241 | 1362 |
type:typeArg arg:argArg className:classNameArg selector:selectorArg lineNumber:lineNumberArg info:infoArg enabled:enabledArg |
8233 | 1363 |
type := typeArg. |
1364 |
arg := argArg. |
|
1365 |
className := classNameArg. |
|
1366 |
selector := selectorArg. |
|
1367 |
lineNumber := lineNumberArg. |
|
1368 |
info := infoArg. |
|
1369 |
enabled := enabledArg. |
|
1370 |
! ! |
|
1371 |
||
1372 |
!BreakpointBrowser::BreakpointListEntry methodsFor:'actions'! |
|
1373 |
||
1374 |
browse |
|
1375 |
|browser| |
|
1376 |
||
1377 |
browser := UserPreferences systemBrowserClass |
|
8241 | 1378 |
openInClass:(Smalltalk classNamed:className) selector:selector. |
8233 | 1379 |
|
1380 |
lineNumber notNil ifTrue:[ |
|
8241 | 1381 |
browser codeView cursorLine:lineNumber col:1. |
1382 |
browser codeView selectLine:lineNumber. |
|
8233 | 1383 |
]. |
1384 |
||
1385 |
! |
|
1386 |
||
1387 |
method |
|
1388 |
^ (Smalltalk classNamed:className) compiledMethodAt:selector. |
|
1389 |
! ! |
|
1390 |
||
1391 |
!BreakpointBrowser::BreakpointListEntry methodsFor:'testing'! |
|
1392 |
||
1393 |
isAssertion |
|
1394 |
^ type == #assertion |
|
1395 |
! |
|
1396 |
||
1397 |
isCodeBreakpoint |
|
8365 | 1398 |
^ type == #breakPoint |
8233 | 1399 |
! |
1400 |
||
1401 |
isHalt |
|
1402 |
^ type == #halt |
|
1403 |
! |
|
1404 |
||
1405 |
isMethodBreakpoint |
|
1406 |
^ type == #wrap |
|
1407 |
! ! |
|
1408 |
||
1409 |
!BreakpointBrowser::MessageArgumentExtractor methodsFor:'accessing'! |
|
1410 |
||
1411 |
callBack:something |
|
1412 |
callBack := something. |
|
1413 |
! |
|
1414 |
||
1415 |
selectorToSearch:something |
|
1416 |
selectorToSearch := something. |
|
1417 |
! ! |
|
1418 |
||
1419 |
!BreakpointBrowser::MessageArgumentExtractor methodsFor:'visiting'! |
|
1420 |
||
1421 |
acceptMessageNode: aMessageNode |
|
1422 |
|arg1Node arg1 arg2Node arg2 argument infoMessage| |
|
1423 |
||
1424 |
aMessageNode selector == selectorToSearch ifTrue:[ |
|
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1425 |
aMessageNode arguments size > 0 ifTrue:[ |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1426 |
arg1Node := aMessageNode arguments first. |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1427 |
arg1Node isLiteral ifTrue:[ |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1428 |
arg1 := arg1Node value. |
8365 | 1429 |
] ifFalse:[ |
1430 |
arg1 := '(...)'. |
|
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1431 |
]. |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1432 |
aMessageNode arguments size > 1 ifTrue:[ |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1433 |
arg2Node := aMessageNode arguments second. |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1434 |
arg2Node isLiteral ifTrue:[ |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1435 |
arg2 := arg2Node value. |
8365 | 1436 |
] ifFalse:[ |
1437 |
arg2 := '(...)'. |
|
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1438 |
]. |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1439 |
]. |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1440 |
]. |
8233 | 1441 |
|
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1442 |
selectorToSearch == #halt: ifTrue:[ |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1443 |
infoMessage := arg1. |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1444 |
]. |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1445 |
selectorToSearch == #breakPoint: ifTrue:[ |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1446 |
argument := arg1. |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1447 |
]. |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1448 |
selectorToSearch == #breakPoint:info: ifTrue:[ |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1449 |
argument := arg1. |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1450 |
infoMessage := arg2. |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1451 |
]. |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1452 |
selectorToSearch == #debuggingCodeFor:is: ifTrue:[ |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1453 |
argument := arg1. |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1454 |
]. |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1455 |
selectorToSearch == #assert: ifTrue:[ |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1456 |
]. |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1457 |
selectorToSearch == #assert:message: ifTrue:[ |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1458 |
infoMessage := arg2. |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1459 |
]. |
8233 | 1460 |
|
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1461 |
callBack |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1462 |
value:aMessageNode firstLineNumber |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1463 |
value:argument |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1464 |
value:infoMessage |
8233 | 1465 |
]. |
1466 |
super acceptMessageNode: aMessageNode |
|
1467 |
! ! |
|
1468 |
||
1469 |
!BreakpointBrowser class methodsFor:'documentation'! |
|
1470 |
||
1471 |
version |
|
8530 | 1472 |
^ '$Header: /cvs/stx/stx/libtool/Tools__BreakpointBrowser.st,v 1.11 2009-02-03 10:41:37 cg Exp $' |
8233 | 1473 |
! ! |