author | Claus Gittinger <cg@exept.de> |
Tue, 26 Mar 2013 01:43:36 +0100 | |
changeset 12526 | dc89c5a91cfc |
parent 12022 | e17a81add015 |
child 12561 | 0766dc3e8079 |
child 12571 | b2e5fdb702cb |
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 |
|
12526
dc89c5a91cfc
class: Tools::BreakpointBrowser
Claus Gittinger <cg@exept.de>
parents:
12022
diff
changeset
|
19 |
showHalts showOthers showAssertions showAssertionsInTests |
dc89c5a91cfc
class: Tools::BreakpointBrowser
Claus Gittinger <cg@exept.de>
parents:
12022
diff
changeset
|
20 |
showCodeBreakpoints showCodeBreakpointsFor showMethodBreakpoints |
dc89c5a91cfc
class: Tools::BreakpointBrowser
Claus Gittinger <cg@exept.de>
parents:
12022
diff
changeset
|
21 |
showLineBreakpoints showDebugCode codeView infoHolder |
dc89c5a91cfc
class: Tools::BreakpointBrowser
Claus Gittinger <cg@exept.de>
parents:
12022
diff
changeset
|
22 |
updateProcess showWhichHaltsHolder' |
9077 | 23 |
classVariableNames:'MessagesAndTypes' |
8233 | 24 |
poolDictionaries:'' |
25 |
category:'Interface-Smalltalk-Breakpoints' |
|
26 |
! |
|
27 |
||
28 |
Object subclass:#BreakpointListEntry |
|
9079 | 29 |
instanceVariableNames:'type ignoredInfo arg className selector lineNumber info enabled' |
8233 | 30 |
classVariableNames:'' |
31 |
poolDictionaries:'' |
|
8302 | 32 |
privateIn:BreakpointBrowser |
8233 | 33 |
! |
34 |
||
12012 | 35 |
BreakpointBrowser::BreakpointListEntry subclass:#BreakpointListEntryForLineBreak |
36 |
instanceVariableNames:'breakPoint' |
|
37 |
classVariableNames:'' |
|
38 |
poolDictionaries:'' |
|
39 |
privateIn:BreakpointBrowser |
|
40 |
! |
|
41 |
||
8233 | 42 |
RBProgramNodeVisitor subclass:#MessageArgumentExtractor |
43 |
instanceVariableNames:'callBack selectorToSearch' |
|
44 |
classVariableNames:'' |
|
45 |
poolDictionaries:'' |
|
8302 | 46 |
privateIn:BreakpointBrowser |
8233 | 47 |
! |
48 |
||
49 |
!BreakpointBrowser class methodsFor:'documentation'! |
|
50 |
||
8234 | 51 |
copyright |
52 |
" |
|
53 |
COPYRIGHT (c) 2008 by eXept Software AG |
|
8241 | 54 |
All Rights Reserved |
8234 | 55 |
|
56 |
This software is furnished under a license and may be used |
|
57 |
only in accordance with the terms of that license and with the |
|
58 |
inclusion of the above copyright notice. This software may not |
|
59 |
be provided or otherwise made available to, or used by, any |
|
60 |
other person. No title to or ownership of the software is |
|
61 |
hereby transferred. |
|
62 |
" |
|
63 |
! |
|
64 |
||
8233 | 65 |
documentation |
66 |
" |
|
8234 | 67 |
tool to list breakpoints (breakPoint/halt/assert) |
8233 | 68 |
|
69 |
[author:] |
|
8241 | 70 |
cg (cg@FUSI) |
8233 | 71 |
" |
72 |
! ! |
|
73 |
||
9077 | 74 |
!BreakpointBrowser class methodsFor:'initialization'! |
75 |
||
76 |
defaultListOfMessagesAndTypes |
|
77 |
"the set of messages which are shown; |
|
78 |
you can add your own one's with a #other categorization" |
|
79 |
||
80 |
^ #( |
|
81 |
(#breakPoint: #breakPoint) |
|
82 |
(#breakPoint:info: #breakPoint) |
|
83 |
(#debuggingCodeFor:is: #debugCode) |
|
84 |
(#halt #halt) |
|
85 |
(#halt: #halt) |
|
86 |
(#assert: #assertion) |
|
87 |
(#assert:message: #assertion) |
|
88 |
(#todo #other) |
|
89 |
(#todo: #other) |
|
90 |
). |
|
91 |
! |
|
92 |
||
93 |
initialize |
|
94 |
MessagesAndTypes := self defaultListOfMessagesAndTypes |
|
95 |
! ! |
|
96 |
||
9335 | 97 |
!BreakpointBrowser class methodsFor:'defaults'! |
98 |
||
99 |
defaultIcon |
|
9804 | 100 |
<resource: #programImage> |
101 |
||
9335 | 102 |
^ ToolbarIconLibrary openBreakpointBrowserIcon |
103 |
! ! |
|
104 |
||
8233 | 105 |
!BreakpointBrowser class methodsFor:'interface specs'! |
106 |
||
107 |
windowSpec |
|
108 |
"This resource specification was automatically generated |
|
109 |
by the UIPainter of ST/X." |
|
110 |
||
111 |
"Do not manually edit this!! If it is corrupted, |
|
112 |
the UIPainter may not be able to read the specification." |
|
113 |
||
114 |
" |
|
115 |
UIPainter new openOnClass:Tools::BreakpointBrowser andSelector:#windowSpec |
|
116 |
Tools::BreakpointBrowser new openInterface:#windowSpec |
|
117 |
Tools::BreakpointBrowser open |
|
118 |
" |
|
119 |
||
120 |
<resource: #canvas> |
|
121 |
||
8357 | 122 |
^ |
8233 | 123 |
#(FullSpec |
8357 | 124 |
name: windowSpec |
125 |
window: |
|
8233 | 126 |
(WindowSpec |
8357 | 127 |
label: 'Breakpoint Browser' |
128 |
name: 'Breakpoint Browser' |
|
129 |
min: (Point 10 10) |
|
130 |
bounds: (Rectangle 0 0 680 691) |
|
131 |
menu: mainMenu |
|
9335 | 132 |
icon: defaultIcon |
8357 | 133 |
) |
134 |
component: |
|
8233 | 135 |
(SpecCollection |
8357 | 136 |
collection: ( |
137 |
(MenuPanelSpec |
|
138 |
name: 'ToolBar1' |
|
139 |
layout: (LayoutFrame 0 0.0 0 0 0 1.0 40 0) |
|
140 |
menu: toolBarMenu |
|
141 |
textDefault: true |
|
142 |
) |
|
143 |
(VariableVerticalPanelSpec |
|
144 |
name: 'VariableVerticalPanel1' |
|
145 |
layout: (LayoutFrame 0 0 40 0 0 1 0 1) |
|
146 |
snapMode: both |
|
147 |
component: |
|
148 |
(SpecCollection |
|
149 |
collection: ( |
|
150 |
(DataSetSpec |
|
151 |
name: 'Table' |
|
152 |
model: selectionIndexHolder |
|
153 |
menu: itemMenu |
|
154 |
hasHorizontalScrollBar: true |
|
155 |
hasVerticalScrollBar: true |
|
156 |
dataList: shownCopyOfBreakpointList |
|
157 |
doubleClickSelector: itemDoubleClicked: |
|
158 |
columnHolder: tableColumns |
|
159 |
) |
|
160 |
(TextEditorSpec |
|
161 |
name: 'TextEditor1' |
|
162 |
hasHorizontalScrollBar: true |
|
163 |
hasVerticalScrollBar: true |
|
164 |
hasKeyboardFocusInitially: false |
|
12009
9d2c3ebb1a2d
honor the codeView/codeView2 setting
Claus Gittinger <cg@exept.de>
parents:
12008
diff
changeset
|
165 |
viewClassName: 'codeViewClass' |
8357 | 166 |
postBuildCallback: postBuildCodeView: |
167 |
) |
|
168 |
) |
|
169 |
||
170 |
) |
|
171 |
handles: (Any 0.5 1.0) |
|
172 |
) |
|
173 |
(LabelSpec |
|
174 |
label: 'Updating - Please Wait...' |
|
175 |
name: 'Label1' |
|
176 |
layout: (LayoutFrame 0 0 40 0 0 1 0 1) |
|
177 |
visibilityChannel: updatingLabelShown |
|
12009
9d2c3ebb1a2d
honor the codeView/codeView2 setting
Claus Gittinger <cg@exept.de>
parents:
12008
diff
changeset
|
178 |
backgroundColor: (Color 100.0 49.9992370489052 49.9992370489052) |
8357 | 179 |
translateLabel: true |
180 |
) |
|
8365 | 181 |
(ViewSpec |
182 |
name: 'InfoBox' |
|
183 |
layout: (LayoutFrame 0 0 -30 1 0 1 0 1) |
|
184 |
visibilityChannel: updatingLabelShown |
|
185 |
component: |
|
186 |
(SpecCollection |
|
187 |
collection: ( |
|
188 |
(LabelSpec |
|
189 |
label: 'Label' |
|
190 |
name: 'Label2' |
|
191 |
layout: (LayoutFrame 2 0 2 0 680 0 30 0) |
|
192 |
level: -1 |
|
193 |
translateLabel: true |
|
194 |
labelChannel: infoHolder |
|
195 |
adjust: left |
|
196 |
) |
|
197 |
) |
|
198 |
||
199 |
) |
|
200 |
) |
|
8357 | 201 |
) |
202 |
||
203 |
) |
|
8233 | 204 |
) |
205 |
! ! |
|
206 |
||
207 |
!BreakpointBrowser class methodsFor:'menu specs'! |
|
208 |
||
209 |
itemMenu |
|
210 |
"This resource specification was automatically generated |
|
211 |
by the MenuEditor of ST/X." |
|
212 |
||
213 |
"Do not manually edit this!! If it is corrupted, |
|
214 |
the MenuEditor may not be able to read the specification." |
|
215 |
||
12012 | 216 |
|
8233 | 217 |
" |
218 |
MenuEditor new openOnClass:Tools::BreakpointBrowser andSelector:#itemMenu |
|
219 |
(Menu new fromLiteralArrayEncoding:(Tools::BreakpointBrowser itemMenu)) startUp |
|
220 |
" |
|
221 |
||
222 |
<resource: #menu> |
|
223 |
||
9079 | 224 |
^ |
8233 | 225 |
#(Menu |
8362 | 226 |
( |
227 |
(MenuItem |
|
228 |
label: 'Browse' |
|
229 |
itemValue: browseSelectedItem |
|
230 |
) |
|
9079 | 231 |
(MenuItem |
232 |
label: '-' |
|
233 |
) |
|
234 |
(MenuItem |
|
235 |
enabled: selectedItemIsIgnoredHalt |
|
9795 | 236 |
label: 'Stop Ignoring this Halt' |
9079 | 237 |
itemValue: reenableHalt |
12012 | 238 |
) |
239 |
(MenuItem |
|
240 |
enabled: selectedItemIsEnabledLineBreak |
|
241 |
label: 'Disable this Breakpoint' |
|
242 |
itemValue: disableLineBreak |
|
9079 | 243 |
) |
8362 | 244 |
) |
245 |
nil |
|
246 |
nil |
|
8233 | 247 |
) |
248 |
! |
|
249 |
||
250 |
mainMenu |
|
251 |
"This resource specification was automatically generated |
|
252 |
by the MenuEditor of ST/X." |
|
253 |
||
254 |
"Do not manually edit this!! If it is corrupted, |
|
255 |
the MenuEditor may not be able to read the specification." |
|
256 |
||
12008
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
257 |
|
8233 | 258 |
" |
259 |
MenuEditor new openOnClass:Tools::BreakpointBrowser andSelector:#mainMenu |
|
260 |
(Menu new fromLiteralArrayEncoding:(Tools::BreakpointBrowser mainMenu)) startUp |
|
261 |
" |
|
262 |
||
263 |
<resource: #menu> |
|
264 |
||
9045 | 265 |
^ |
8233 | 266 |
#(Menu |
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
267 |
( |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
268 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
269 |
label: 'File' |
9045 | 270 |
submenu: |
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
271 |
(Menu |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
272 |
( |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
273 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
274 |
label: 'Exit' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
275 |
itemValue: closeRequest |
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 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
278 |
nil |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
279 |
nil |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
280 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
281 |
) |
9045 | 282 |
(MenuItem |
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
283 |
label: 'Selection' |
9045 | 284 |
submenu: |
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
285 |
(Menu |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
286 |
( |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
287 |
(MenuItem |
9077 | 288 |
enabled: hasSelectionHolder |
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
289 |
label: 'Browse' |
8362 | 290 |
itemValue: browseSelectedItem |
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
291 |
) |
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 |
nil |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
294 |
nil |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
295 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
296 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
297 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
298 |
label: 'View' |
9045 | 299 |
submenu: |
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
300 |
(Menu |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
301 |
( |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
302 |
(MenuItem |
12016
3e3d4015fd7b
added: #toggleAllShownTypes
Claus Gittinger <cg@exept.de>
parents:
12012
diff
changeset
|
303 |
label: 'Toggle all' |
3e3d4015fd7b
added: #toggleAllShownTypes
Claus Gittinger <cg@exept.de>
parents:
12012
diff
changeset
|
304 |
itemValue: toggleAllShownTypes |
3e3d4015fd7b
added: #toggleAllShownTypes
Claus Gittinger <cg@exept.de>
parents:
12012
diff
changeset
|
305 |
hideMenuOnActivated: false |
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
306 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
307 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
308 |
label: '-' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
309 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
310 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
311 |
label: 'Assertions' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
312 |
itemValue: showAssertions: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
313 |
hideMenuOnActivated: false |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
314 |
indication: showAssertions |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
315 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
316 |
(MenuItem |
12526
dc89c5a91cfc
class: Tools::BreakpointBrowser
Claus Gittinger <cg@exept.de>
parents:
12022
diff
changeset
|
317 |
enabled: showAssertions |
dc89c5a91cfc
class: Tools::BreakpointBrowser
Claus Gittinger <cg@exept.de>
parents:
12022
diff
changeset
|
318 |
label: 'Assertions in Tests' |
dc89c5a91cfc
class: Tools::BreakpointBrowser
Claus Gittinger <cg@exept.de>
parents:
12022
diff
changeset
|
319 |
itemValue: showAssertionsInTests: |
dc89c5a91cfc
class: Tools::BreakpointBrowser
Claus Gittinger <cg@exept.de>
parents:
12022
diff
changeset
|
320 |
hideMenuOnActivated: false |
dc89c5a91cfc
class: Tools::BreakpointBrowser
Claus Gittinger <cg@exept.de>
parents:
12022
diff
changeset
|
321 |
indication: showAssertionsInTests |
dc89c5a91cfc
class: Tools::BreakpointBrowser
Claus Gittinger <cg@exept.de>
parents:
12022
diff
changeset
|
322 |
) |
dc89c5a91cfc
class: Tools::BreakpointBrowser
Claus Gittinger <cg@exept.de>
parents:
12022
diff
changeset
|
323 |
(MenuItem |
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
324 |
label: 'Halts' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
325 |
itemValue: showHalts: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
326 |
hideMenuOnActivated: false |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
327 |
indication: showHalts |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
328 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
329 |
(MenuItem |
9077 | 330 |
enabled: showHalts |
331 |
label: ' ' |
|
332 |
submenu: |
|
333 |
(Menu |
|
334 |
( |
|
335 |
(MenuItem |
|
336 |
label: 'All Halts' |
|
337 |
nameKey: AllHalts |
|
338 |
choice: showWhichHaltsHolder |
|
339 |
choiceValue: all |
|
340 |
) |
|
341 |
(MenuItem |
|
342 |
label: 'Enabled Halts' |
|
343 |
nameKey: EnabledHalts |
|
344 |
choice: showWhichHaltsHolder |
|
345 |
choiceValue: enabled |
|
346 |
) |
|
347 |
(MenuItem |
|
348 |
label: 'Ignored Halts' |
|
349 |
nameKey: IgnoredHalts |
|
350 |
choice: showWhichHaltsHolder |
|
351 |
choiceValue: ignored |
|
352 |
) |
|
353 |
) |
|
354 |
nil |
|
355 |
nil |
|
356 |
) |
|
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
357 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
358 |
(MenuItem |
12008
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
359 |
label: 'Coded Breakpoints' |
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
360 |
itemValue: showCodeBreakpoints: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
361 |
hideMenuOnActivated: false |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
362 |
indication: showCodeBreakpoints |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
363 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
364 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
365 |
enabled: showCodeBreakpoints |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
366 |
label: ' ' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
367 |
submenuChannel: codeBreakpointMenu |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
368 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
369 |
(MenuItem |
9077 | 370 |
label: 'Debug Code' |
371 |
itemValue: showDebugCode: |
|
372 |
hideMenuOnActivated: false |
|
373 |
indication: showDebugCode |
|
374 |
) |
|
375 |
(MenuItem |
|
376 |
label: 'Other Debug Messages' |
|
377 |
itemValue: showOthers: |
|
378 |
hideMenuOnActivated: false |
|
379 |
indication: showOthers |
|
380 |
) |
|
381 |
(MenuItem |
|
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
382 |
label: '-' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
383 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
384 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
385 |
label: 'Method Breakpoints' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
386 |
itemValue: showMethodBreakpoints: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
387 |
hideMenuOnActivated: false |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
388 |
indication: showMethodBreakpoints |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
389 |
) |
12008
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
390 |
(MenuItem |
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
391 |
label: 'Line Breakpoints' |
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
392 |
itemValue: showLineBreakpoints: |
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
393 |
hideMenuOnActivated: false |
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
394 |
indication: showLineBreakpoints |
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
395 |
) |
12016
3e3d4015fd7b
added: #toggleAllShownTypes
Claus Gittinger <cg@exept.de>
parents:
12012
diff
changeset
|
396 |
(MenuItem |
3e3d4015fd7b
added: #toggleAllShownTypes
Claus Gittinger <cg@exept.de>
parents:
12012
diff
changeset
|
397 |
label: '-' |
3e3d4015fd7b
added: #toggleAllShownTypes
Claus Gittinger <cg@exept.de>
parents:
12012
diff
changeset
|
398 |
) |
3e3d4015fd7b
added: #toggleAllShownTypes
Claus Gittinger <cg@exept.de>
parents:
12012
diff
changeset
|
399 |
(MenuItem |
3e3d4015fd7b
added: #toggleAllShownTypes
Claus Gittinger <cg@exept.de>
parents:
12012
diff
changeset
|
400 |
label: 'Update List' |
3e3d4015fd7b
added: #toggleAllShownTypes
Claus Gittinger <cg@exept.de>
parents:
12012
diff
changeset
|
401 |
itemValue: updateList |
3e3d4015fd7b
added: #toggleAllShownTypes
Claus Gittinger <cg@exept.de>
parents:
12012
diff
changeset
|
402 |
) |
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
403 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
404 |
nil |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
405 |
nil |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
406 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
407 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
408 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
409 |
label: 'Enable' |
9045 | 410 |
submenu: |
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
411 |
(Menu |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
412 |
( |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
413 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
414 |
label: 'Assertions' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
415 |
itemValue: enableAssertions: |
9045 | 416 |
hideMenuOnActivated: false |
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
417 |
indication: enableAssertions |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
418 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
419 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
420 |
label: 'Halts' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
421 |
itemValue: enableHalts: |
9045 | 422 |
hideMenuOnActivated: false |
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
423 |
indication: enableHalts |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
424 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
425 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
426 |
label: '-' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
427 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
428 |
(MenuItem |
12012 | 429 |
label: 'Coded Breakpoints' |
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
430 |
submenuChannel: enabledCodeBreakpointMenu |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
431 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
432 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
433 |
nil |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
434 |
nil |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
435 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
436 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
437 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
438 |
label: 'Help' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
439 |
startGroup: right |
9045 | 440 |
submenu: |
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
441 |
(Menu |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
442 |
( |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
443 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
444 |
label: 'Documentation' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
445 |
itemValue: openDocumentation |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
446 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
447 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
448 |
label: '-' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
449 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
450 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
451 |
label: 'About this Application...' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
452 |
itemValue: openAboutThisApplication |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
453 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
454 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
455 |
nil |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
456 |
nil |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
457 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
458 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
459 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
460 |
nil |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
461 |
nil |
8233 | 462 |
) |
463 |
! |
|
464 |
||
465 |
toolBarMenu |
|
466 |
"This resource specification was automatically generated |
|
467 |
by the MenuEditor of ST/X." |
|
468 |
||
469 |
"Do not manually edit this!! If it is corrupted, |
|
470 |
the MenuEditor may not be able to read the specification." |
|
471 |
||
12012 | 472 |
|
8233 | 473 |
" |
474 |
MenuEditor new openOnClass:Tools::BreakpointBrowser andSelector:#toolBarMenu |
|
475 |
(Menu new fromLiteralArrayEncoding:(Tools::BreakpointBrowser toolBarMenu)) startUp |
|
476 |
" |
|
477 |
||
478 |
<resource: #menu> |
|
479 |
||
12012 | 480 |
^ |
8233 | 481 |
#(Menu |
10853 | 482 |
( |
483 |
(MenuItem |
|
484 |
label: 'Update List' |
|
485 |
itemValue: updateList |
|
486 |
isButton: true |
|
487 |
labelImage: (ResourceRetriever ToolbarIconLibrary reloadIcon) |
|
488 |
) |
|
489 |
(MenuItem |
|
490 |
label: '-' |
|
491 |
) |
|
492 |
(MenuItem |
|
493 |
enabled: hasSelectionHolder |
|
494 |
label: 'Browse Selected Method' |
|
495 |
itemValue: browseSelectedItem |
|
496 |
isButton: true |
|
497 |
labelImage: (ResourceRetriever ToolbarIconLibrary startNewSystemBrowserIcon) |
|
498 |
) |
|
499 |
) |
|
500 |
nil |
|
501 |
nil |
|
8233 | 502 |
) |
503 |
! ! |
|
504 |
||
505 |
!BreakpointBrowser class methodsFor:'tableColumns specs'! |
|
506 |
||
507 |
tableColumns |
|
508 |
"This resource specification was automatically generated |
|
509 |
by the DataSetBuilder of ST/X." |
|
510 |
||
511 |
"Do not manually edit this!! If it is corrupted, |
|
512 |
the DataSetBuilder may not be able to read the specification." |
|
513 |
||
514 |
" |
|
515 |
DataSetBuilder new openOnClass:Tools::BreakpointBrowser andSelector:#tableColumns |
|
516 |
" |
|
517 |
||
518 |
<resource: #tableColumns> |
|
519 |
||
520 |
^#( |
|
521 |
(DataSetColumnSpec |
|
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
522 |
label: 'Type' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
523 |
activeHelpKey: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
524 |
activeHelpKeyForLabel: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
525 |
labelButtonType: Button |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
526 |
labelActionSelector: sortBy: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
527 |
labelActionArgument: 'type' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
528 |
width: 70 |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
529 |
model: type |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
530 |
canSelect: false |
8233 | 531 |
) |
532 |
(DataSetColumnSpec |
|
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
533 |
label: 'Arg' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
534 |
activeHelpKey: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
535 |
activeHelpKeyForLabel: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
536 |
labelButtonType: Button |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
537 |
labelActionSelector: sortBy: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
538 |
labelActionArgument: 'type' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
539 |
width: 50 |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
540 |
model: arg |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
541 |
canSelect: false |
8233 | 542 |
) |
543 |
(DataSetColumnSpec |
|
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
544 |
label: 'Class' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
545 |
activeHelpKey: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
546 |
activeHelpKeyForLabel: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
547 |
labelButtonType: Button |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
548 |
labelActionSelector: sortBy: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
549 |
labelActionArgument: 'className' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
550 |
width: 150 |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
551 |
model: className |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
552 |
canSelect: false |
8233 | 553 |
) |
554 |
(DataSetColumnSpec |
|
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
555 |
label: 'Method' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
556 |
labelAlignment: left |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
557 |
activeHelpKey: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
558 |
activeHelpKeyForLabel: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
559 |
labelButtonType: Button |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
560 |
labelActionSelector: sortBy: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
561 |
labelActionArgument: 'selector' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
562 |
width: 200 |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
563 |
model: selector |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
564 |
canSelect: false |
8233 | 565 |
) |
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
566 |
"/ (DataSetColumnSpec |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
567 |
"/ label: 'Line' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
568 |
"/ labelAlignment: left |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
569 |
"/ activeHelpKey: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
570 |
"/ activeHelpKeyForLabel: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
571 |
"/ labelButtonType: Button |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
572 |
"/ labelActionSelector: sortBy: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
573 |
"/ labelActionArgument: 'lineNumber' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
574 |
"/ width: 35 |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
575 |
"/ model: lineNumber |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
576 |
"/ canSelect: false |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
577 |
"/ ) |
8233 | 578 |
(DataSetColumnSpec |
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
579 |
label: 'Info' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
580 |
labelAlignment: left |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
581 |
activeHelpKey: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
582 |
activeHelpKeyForLabel: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
583 |
labelButtonType: Button |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
584 |
labelActionSelector: sortBy: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
585 |
labelActionArgument: 'info' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
586 |
model: info |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
587 |
canSelect: false |
8233 | 588 |
) |
589 |
) |
|
590 |
! |
|
591 |
||
592 |
tableColumns_v1 |
|
593 |
"This resource specification was automatically generated |
|
594 |
by the DataSetBuilder of ST/X." |
|
595 |
||
596 |
"Do not manually edit this!! If it is corrupted, |
|
597 |
the DataSetBuilder may not be able to read the specification." |
|
598 |
||
599 |
" |
|
600 |
DataSetBuilder new openOnClass:Tools::BreakpointBrowser andSelector:#tableColumns |
|
601 |
" |
|
602 |
||
603 |
<resource: #tableColumns> |
|
604 |
||
605 |
^#( |
|
606 |
(DataSetColumnSpec |
|
8241 | 607 |
label: 'Enabled' |
608 |
activeHelpKey: '' |
|
609 |
activeHelpKeyForLabel: '' |
|
610 |
labelButtonType: Button |
|
611 |
width: 50 |
|
612 |
editorType: CheckToggle |
|
613 |
rendererType: CheckToggle |
|
614 |
model: enabled |
|
8233 | 615 |
) |
616 |
(DataSetColumnSpec |
|
8241 | 617 |
label: 'Type' |
618 |
activeHelpKey: '' |
|
619 |
activeHelpKeyForLabel: '' |
|
620 |
labelButtonType: Button |
|
621 |
labelActionSelector: sortBy: |
|
622 |
labelActionArgument: 'type' |
|
623 |
width: 60 |
|
624 |
model: type |
|
625 |
canSelect: false |
|
8233 | 626 |
) |
627 |
(DataSetColumnSpec |
|
8241 | 628 |
label: 'Arg' |
629 |
activeHelpKey: '' |
|
630 |
activeHelpKeyForLabel: '' |
|
631 |
labelButtonType: Button |
|
632 |
labelActionSelector: sortBy: |
|
633 |
labelActionArgument: 'type' |
|
634 |
width: 50 |
|
635 |
model: arg |
|
636 |
canSelect: false |
|
8233 | 637 |
) |
638 |
(DataSetColumnSpec |
|
8241 | 639 |
label: 'Class' |
640 |
activeHelpKey: '' |
|
641 |
activeHelpKeyForLabel: '' |
|
642 |
labelButtonType: Button |
|
643 |
labelActionSelector: sortBy: |
|
644 |
labelActionArgument: 'className' |
|
645 |
width: 150 |
|
646 |
model: className |
|
647 |
canSelect: false |
|
8233 | 648 |
) |
649 |
(DataSetColumnSpec |
|
8241 | 650 |
label: 'Method' |
651 |
labelAlignment: left |
|
652 |
activeHelpKey: '' |
|
653 |
activeHelpKeyForLabel: '' |
|
654 |
labelButtonType: Button |
|
655 |
labelActionSelector: sortBy: |
|
656 |
labelActionArgument: 'selector' |
|
657 |
width: 200 |
|
658 |
model: selector |
|
659 |
canSelect: false |
|
8233 | 660 |
) |
661 |
(DataSetColumnSpec |
|
8241 | 662 |
label: 'Line' |
663 |
labelAlignment: left |
|
664 |
activeHelpKey: '' |
|
665 |
activeHelpKeyForLabel: '' |
|
666 |
labelButtonType: Button |
|
667 |
labelActionSelector: sortBy: |
|
668 |
labelActionArgument: 'lineNumber' |
|
669 |
width: 35 |
|
670 |
model: lineNumber |
|
671 |
canSelect: false |
|
8233 | 672 |
) |
673 |
(DataSetColumnSpec |
|
8241 | 674 |
label: 'Info' |
675 |
labelAlignment: left |
|
676 |
activeHelpKey: '' |
|
677 |
activeHelpKeyForLabel: '' |
|
678 |
labelButtonType: Button |
|
679 |
labelActionSelector: sortBy: |
|
680 |
labelActionArgument: 'info' |
|
681 |
model: info |
|
682 |
canSelect: false |
|
8233 | 683 |
) |
684 |
) |
|
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
685 |
! |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
686 |
|
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
687 |
tableColumns_v2 |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
688 |
"This resource specification was automatically generated |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
689 |
by the DataSetBuilder of ST/X." |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
690 |
|
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
691 |
"Do not manually edit this!! If it is corrupted, |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
692 |
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
|
693 |
|
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
694 |
" |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
695 |
DataSetBuilder new openOnClass:Tools::BreakpointBrowser andSelector:#tableColumns |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
696 |
" |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
697 |
|
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
698 |
<resource: #tableColumns> |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
699 |
|
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
700 |
^#( |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
701 |
(DataSetColumnSpec |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
702 |
label: 'Type' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
703 |
activeHelpKey: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
704 |
activeHelpKeyForLabel: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
705 |
labelButtonType: Button |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
706 |
labelActionSelector: sortBy: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
707 |
labelActionArgument: 'type' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
708 |
width: 70 |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
709 |
model: type |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
710 |
canSelect: false |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
711 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
712 |
(DataSetColumnSpec |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
713 |
label: 'Arg' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
714 |
activeHelpKey: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
715 |
activeHelpKeyForLabel: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
716 |
labelButtonType: Button |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
717 |
labelActionSelector: sortBy: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
718 |
labelActionArgument: 'type' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
719 |
width: 50 |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
720 |
model: arg |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
721 |
canSelect: false |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
722 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
723 |
(DataSetColumnSpec |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
724 |
label: 'Class' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
725 |
activeHelpKey: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
726 |
activeHelpKeyForLabel: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
727 |
labelButtonType: Button |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
728 |
labelActionSelector: sortBy: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
729 |
labelActionArgument: 'className' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
730 |
width: 150 |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
731 |
model: className |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
732 |
canSelect: false |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
733 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
734 |
(DataSetColumnSpec |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
735 |
label: 'Method' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
736 |
labelAlignment: left |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
737 |
activeHelpKey: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
738 |
activeHelpKeyForLabel: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
739 |
labelButtonType: Button |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
740 |
labelActionSelector: sortBy: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
741 |
labelActionArgument: 'selector' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
742 |
width: 200 |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
743 |
model: selector |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
744 |
canSelect: false |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
745 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
746 |
(DataSetColumnSpec |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
747 |
label: 'Line' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
748 |
labelAlignment: left |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
749 |
activeHelpKey: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
750 |
activeHelpKeyForLabel: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
751 |
labelButtonType: Button |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
752 |
labelActionSelector: sortBy: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
753 |
labelActionArgument: 'lineNumber' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
754 |
width: 35 |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
755 |
model: lineNumber |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
756 |
canSelect: false |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
757 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
758 |
(DataSetColumnSpec |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
759 |
label: 'Info' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
760 |
labelAlignment: left |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
761 |
activeHelpKey: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
762 |
activeHelpKeyForLabel: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
763 |
labelButtonType: Button |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
764 |
labelActionSelector: sortBy: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
765 |
labelActionArgument: 'info' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
766 |
model: info |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
767 |
canSelect: false |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
768 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
769 |
) |
8233 | 770 |
! ! |
771 |
||
772 |
!BreakpointBrowser methodsFor:'accessing'! |
|
773 |
||
8302 | 774 |
aboutThisApplicationText |
775 |
|msg| |
|
776 |
||
777 |
msg := super aboutThisApplicationText. |
|
778 |
msg := msg , '\\Written by Claus Gittinger (cg@exept.de).'. |
|
779 |
^msg withCRs. |
|
780 |
! |
|
781 |
||
8233 | 782 |
breakpointListEntryAtIndex:idx |
783 |
^ shownCopyOfBreakpointList at:idx ifAbsent:nil |
|
784 |
||
785 |
||
786 |
||
787 |
||
788 |
||
789 |
! |
|
790 |
||
9077 | 791 |
messagesAndTypes |
12021
d4ebd47bfc5d
comment/format in: #messagesAndTypes
Claus Gittinger <cg@exept.de>
parents:
12020
diff
changeset
|
792 |
"the spec of selectors to search for coded breakpoints" |
9077 | 793 |
|
794 |
^ MessagesAndTypes |
|
795 |
! |
|
796 |
||
8233 | 797 |
selectedBreakpointListEntry |
8398 | 798 |
self selectionIndex isNil ifTrue:[^ nil]. |
8233 | 799 |
^ self breakpointListEntryAtIndex:(self selectionIndex). |
800 |
! |
|
801 |
||
802 |
selectionIndex |
|
803 |
^ self selectionIndexHolder value |
|
804 |
! |
|
805 |
||
806 |
shownCopyOfBreakpointList |
|
807 |
shownCopyOfBreakpointList isNil ifTrue:[ |
|
8241 | 808 |
shownCopyOfBreakpointList := List new |
8233 | 809 |
]. |
810 |
^ shownCopyOfBreakpointList |
|
811 |
||
812 |
"Created: / 18-02-2007 / 12:53:01 / cg" |
|
813 |
! |
|
814 |
||
815 |
updatingLabelShown |
|
816 |
updatingLabelShown isNil ifTrue:[ |
|
8241 | 817 |
updatingLabelShown := true asValue |
8233 | 818 |
]. |
819 |
^ updatingLabelShown |
|
820 |
! ! |
|
821 |
||
822 |
!BreakpointBrowser methodsFor:'aspects'! |
|
823 |
||
824 |
enableAssertions |
|
825 |
^ (Smalltalk at:#IgnoreAssertion ifAbsent:false) not |
|
826 |
! |
|
827 |
||
828 |
enableAssertions:aBoolean |
|
829 |
^ Smalltalk at:#IgnoreAssertion put:aBoolean not |
|
830 |
! |
|
831 |
||
832 |
enableHalts |
|
9638 | 833 |
^ Smalltalk ignoreHalt not |
834 |
||
835 |
"Modified: / 18-11-2010 / 11:24:11 / cg" |
|
8233 | 836 |
! |
837 |
||
838 |
enableHalts:aBoolean |
|
9638 | 839 |
^ Smalltalk ignoreHalt:aBoolean not |
840 |
||
841 |
"Modified: / 18-11-2010 / 11:30:03 / cg" |
|
8233 | 842 |
! |
843 |
||
844 |
hasSelectionHolder |
|
845 |
^ BlockValue |
|
8241 | 846 |
with:[:selIndex | selIndex notNil and:[selIndex ~~ 0]] |
847 |
argument:self selectionIndexHolder |
|
8233 | 848 |
! |
849 |
||
8365 | 850 |
infoHolder |
851 |
infoHolder isNil ifTrue:[ |
|
852 |
infoHolder := nil asValue. |
|
853 |
]. |
|
854 |
^ infoHolder |
|
855 |
||
856 |
"Created: / 22-10-2006 / 02:00:41 / cg" |
|
857 |
! |
|
858 |
||
12012 | 859 |
selectedItemIsEnabledLineBreak |
860 |
|entry| |
|
861 |
||
862 |
entry := (self breakpointListEntryAtIndex:self selectionIndexHolder value). |
|
863 |
^ entry isLineBreakpoint and:[entry breakPoint isEnabled] |
|
864 |
! |
|
865 |
||
9079 | 866 |
selectedItemIsIgnoredHalt |
867 |
|entry info| |
|
868 |
||
869 |
entry := (self breakpointListEntryAtIndex:self selectionIndexHolder value). |
|
870 |
info := Debugger haltIgnoreInformationFor:(entry method) atLineNr:(entry lineNumber). |
|
871 |
^ info notNil and:[ info isHaltIgnored ]. |
|
872 |
! |
|
873 |
||
8233 | 874 |
selectionIndexHolder |
875 |
selectionIndexHolder isNil ifTrue:[ |
|
8241 | 876 |
selectionIndexHolder := nil asValue. |
877 |
selectionIndexHolder onChangeSend:#updateCode to:self |
|
8233 | 878 |
]. |
879 |
^ selectionIndexHolder |
|
880 |
||
881 |
"Created: / 22-10-2006 / 02:00:41 / cg" |
|
882 |
! |
|
883 |
||
884 |
showAssertions |
|
885 |
^ showAssertions ? true |
|
886 |
! |
|
887 |
||
888 |
showAssertions:aBoolean |
|
889 |
showAssertions := aBoolean. |
|
890 |
self updateShownBreakpointList |
|
891 |
! |
|
892 |
||
12526
dc89c5a91cfc
class: Tools::BreakpointBrowser
Claus Gittinger <cg@exept.de>
parents:
12022
diff
changeset
|
893 |
showAssertionsInTests |
dc89c5a91cfc
class: Tools::BreakpointBrowser
Claus Gittinger <cg@exept.de>
parents:
12022
diff
changeset
|
894 |
^ showAssertionsInTests ? false |
dc89c5a91cfc
class: Tools::BreakpointBrowser
Claus Gittinger <cg@exept.de>
parents:
12022
diff
changeset
|
895 |
! |
dc89c5a91cfc
class: Tools::BreakpointBrowser
Claus Gittinger <cg@exept.de>
parents:
12022
diff
changeset
|
896 |
|
dc89c5a91cfc
class: Tools::BreakpointBrowser
Claus Gittinger <cg@exept.de>
parents:
12022
diff
changeset
|
897 |
showAssertionsInTests:aBoolean |
dc89c5a91cfc
class: Tools::BreakpointBrowser
Claus Gittinger <cg@exept.de>
parents:
12022
diff
changeset
|
898 |
showAssertionsInTests := aBoolean. |
dc89c5a91cfc
class: Tools::BreakpointBrowser
Claus Gittinger <cg@exept.de>
parents:
12022
diff
changeset
|
899 |
self updateShownBreakpointList |
dc89c5a91cfc
class: Tools::BreakpointBrowser
Claus Gittinger <cg@exept.de>
parents:
12022
diff
changeset
|
900 |
! |
dc89c5a91cfc
class: Tools::BreakpointBrowser
Claus Gittinger <cg@exept.de>
parents:
12022
diff
changeset
|
901 |
|
8233 | 902 |
showCodeBreakpoints |
903 |
^ showCodeBreakpoints ? true |
|
904 |
! |
|
905 |
||
906 |
showCodeBreakpoints:aBoolean |
|
907 |
showCodeBreakpoints := aBoolean. |
|
908 |
self updateShownBreakpointList |
|
909 |
! |
|
910 |
||
9077 | 911 |
showDebugCode |
912 |
^ showDebugCode ? true |
|
913 |
! |
|
914 |
||
915 |
showDebugCode:aBoolean |
|
916 |
showDebugCode := aBoolean. |
|
917 |
self updateShownBreakpointList |
|
918 |
! |
|
919 |
||
8233 | 920 |
showHalts |
921 |
^ showHalts ? true |
|
922 |
! |
|
923 |
||
924 |
showHalts:aBoolean |
|
925 |
showHalts := aBoolean. |
|
926 |
self updateShownBreakpointList |
|
927 |
! |
|
928 |
||
12008
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
929 |
showLineBreakpoints |
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
930 |
^ showLineBreakpoints ? true |
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
931 |
! |
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
932 |
|
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
933 |
showLineBreakpoints:aBoolean |
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
934 |
showLineBreakpoints := aBoolean. |
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
935 |
self updateShownBreakpointList |
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
936 |
! |
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
937 |
|
8233 | 938 |
showMethodBreakpoints |
939 |
^ showMethodBreakpoints ? true |
|
940 |
! |
|
941 |
||
942 |
showMethodBreakpoints:aBoolean |
|
943 |
showMethodBreakpoints := aBoolean. |
|
944 |
self updateShownBreakpointList |
|
9077 | 945 |
! |
946 |
||
947 |
showOthers |
|
948 |
^ showOthers ? true |
|
949 |
! |
|
950 |
||
951 |
showOthers:aBoolean |
|
952 |
showOthers := aBoolean. |
|
953 |
self updateShownBreakpointList |
|
954 |
! |
|
955 |
||
956 |
showWhichHaltsHolder |
|
957 |
showWhichHaltsHolder isNil ifTrue:[ |
|
958 |
showWhichHaltsHolder := #all asValue. |
|
959 |
showWhichHaltsHolder onChangeSend:#updateShownBreakpointList to:self |
|
960 |
]. |
|
961 |
^ showWhichHaltsHolder |
|
8233 | 962 |
! ! |
963 |
||
964 |
!BreakpointBrowser methodsFor:'change & update'! |
|
965 |
||
966 |
delayedUpdate:something with:aParameter from:changedObject |
|
9092 | 967 |
changedObject == Smalltalk ifTrue:[ |
968 |
something == #methodInClass ifTrue:[ |
|
969 |
self updateForClass:(aParameter first) selector:(aParameter second). |
|
970 |
^ self. |
|
971 |
]. |
|
972 |
something == #methodInClassRemoved ifTrue:[ |
|
973 |
self updateForClass:(aParameter first) selector:(aParameter second). |
|
974 |
^ self. |
|
975 |
]. |
|
976 |
something == #ignoredHalts ifTrue:[ |
|
977 |
self updateShownBreakpointList. |
|
978 |
^ self. |
|
979 |
]. |
|
980 |
]. |
|
8233 | 981 |
! |
982 |
||
983 |
filter |
|
9077 | 984 |
"filter those items which are to be shown from the complete list" |
985 |
||
986 |
|newList showWhichHalt| |
|
8233 | 987 |
|
988 |
newList := breakpointList. |
|
9077 | 989 |
|
990 |
self showOthers ifFalse:[ |
|
991 |
newList := newList reject:[:entry | entry isOther]. |
|
8233 | 992 |
]. |
9077 | 993 |
self showDebugCode ifFalse:[ |
994 |
newList := newList reject:[:entry | entry isDebugCode]. |
|
8233 | 995 |
]. |
996 |
self showMethodBreakpoints ifFalse:[ |
|
9077 | 997 |
newList := newList reject:[:entry | entry isMethodBreakpoint]. |
8233 | 998 |
]. |
12008
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
999 |
self showLineBreakpoints ifFalse:[ |
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
1000 |
newList := newList reject:[:entry | entry isLineBreakpoint]. |
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
1001 |
]. |
8233 | 1002 |
self showAssertions ifFalse:[ |
9077 | 1003 |
newList := newList reject:[:entry | entry isAssertion]. |
12526
dc89c5a91cfc
class: Tools::BreakpointBrowser
Claus Gittinger <cg@exept.de>
parents:
12022
diff
changeset
|
1004 |
] ifTrue:[ |
dc89c5a91cfc
class: Tools::BreakpointBrowser
Claus Gittinger <cg@exept.de>
parents:
12022
diff
changeset
|
1005 |
self showAssertionsInTests ifFalse:[ |
dc89c5a91cfc
class: Tools::BreakpointBrowser
Claus Gittinger <cg@exept.de>
parents:
12022
diff
changeset
|
1006 |
newList := newList reject:[:entry | |cls| |
dc89c5a91cfc
class: Tools::BreakpointBrowser
Claus Gittinger <cg@exept.de>
parents:
12022
diff
changeset
|
1007 |
entry isAssertion |
dc89c5a91cfc
class: Tools::BreakpointBrowser
Claus Gittinger <cg@exept.de>
parents:
12022
diff
changeset
|
1008 |
and:[ (entry selector startsWith:'test') |
dc89c5a91cfc
class: Tools::BreakpointBrowser
Claus Gittinger <cg@exept.de>
parents:
12022
diff
changeset
|
1009 |
and:[ (cls := Smalltalk classNamed: entry className) notNil |
dc89c5a91cfc
class: Tools::BreakpointBrowser
Claus Gittinger <cg@exept.de>
parents:
12022
diff
changeset
|
1010 |
and:[ cls theNonMetaclass isTestCaseLike ]]]]. |
dc89c5a91cfc
class: Tools::BreakpointBrowser
Claus Gittinger <cg@exept.de>
parents:
12022
diff
changeset
|
1011 |
]. |
8233 | 1012 |
]. |
9077 | 1013 |
|
1014 |
self showHalts ifFalse:[ |
|
1015 |
newList := newList reject:[:entry | entry isHalt]. |
|
1016 |
] ifTrue:[ |
|
1017 |
showWhichHalt := showWhichHaltsHolder value. |
|
1018 |
showWhichHalt ~~ #all ifTrue:[ |
|
1019 |
newList := newList reject:[:entry | |
|
1020 |
entry isHalt |
|
1021 |
and:[ |
|
9079 | 1022 |
|showInList isIgnored info| |
1023 |
||
1024 |
entry ignoredInfo:nil. |
|
9077 | 1025 |
|
1026 |
showInList := true. |
|
9079 | 1027 |
info := Debugger haltIgnoreInformationFor:(entry method) atLineNr:(entry lineNumber). |
1028 |
isIgnored := info notNil and:[ info isHaltIgnored ]. |
|
9077 | 1029 |
showWhichHalt == #ignored ifTrue:[ |
9079 | 1030 |
showInList := isIgnored. |
1031 |
isIgnored ifTrue:[ entry ignoredInfo:info haltIgnoredInfoString ]. |
|
9077 | 1032 |
] ifFalse:[ |
1033 |
showInList := isIgnored not |
|
1034 |
]. |
|
1035 |
showInList not] |
|
1036 |
]. |
|
1037 |
]. |
|
1038 |
]. |
|
1039 |
||
1040 |
self showCodeBreakpoints ifFalse:[ |
|
1041 |
newList := newList reject:[:entry | entry isCodeBreakpoint]. |
|
1042 |
] ifTrue:[ |
|
1043 |
newList := newList reject:[:entry | |
|
1044 |
|flag| |
|
1045 |
||
1046 |
flag := (showCodeBreakpointsFor at:(entry arg ? '<nil>') ifAbsentPut:[true asValue]) value. |
|
1047 |
entry isCodeBreakpoint |
|
1048 |
and:[ flag not ] |
|
1049 |
]. |
|
1050 |
]. |
|
1051 |
||
8233 | 1052 |
shownCopyOfBreakpointList contents:newList. |
1053 |
! |
|
1054 |
||
8365 | 1055 |
messageSelectors |
11744 | 1056 |
^ self messagesAndTypes collect:[:each | each first] as:Set. |
8365 | 1057 |
! |
1058 |
||
8233 | 1059 |
update:something with:aParameter from:changedObject |
8365 | 1060 |
changedObject == Smalltalk ifTrue:[ |
9092 | 1061 |
self enqueueDelayedUpdate:something with:aParameter from:changedObject. |
1062 |
^ self. |
|
8365 | 1063 |
]. |
8233 | 1064 |
! |
1065 |
||
1066 |
updateBreakpointList |
|
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1067 |
|newShowCodeBreakpointsFor messages messageSelectors update | |
8233 | 1068 |
|
1069 |
breakpointList removeAll. |
|
1070 |
newShowCodeBreakpointsFor := Dictionary new. |
|
1071 |
||
8365 | 1072 |
messages := self messagesAndTypes. |
1073 |
messageSelectors := self messageSelectors. |
|
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1074 |
|
8233 | 1075 |
update := [:cls :mthd :sel | |
8365 | 1076 |
self |
1077 |
withBreakpointListEntriesFor:mthd class:cls selector:sel |
|
1078 |
messages:messages |
|
1079 |
messageSelectors:messageSelectors |
|
1080 |
rememberingCodeBreakpointTypesIn:newShowCodeBreakpointsFor |
|
1081 |
do:[:newEntry | breakpointList add:newEntry ]. |
|
8233 | 1082 |
]. |
1083 |
||
1084 |
Smalltalk allClassesDo:[:cls | |
|
8302 | 1085 |
cls selectorsAndMethodsDo:[:sel :mthd | |
1086 |
update value:cls value:mthd value:sel |
|
1087 |
]. |
|
1088 |
cls class selectorsAndMethodsDo:[:sel :mthd | |
|
1089 |
update value:cls class value:mthd value:sel |
|
1090 |
]. |
|
8233 | 1091 |
]. |
1092 |
||
1093 |
showCodeBreakpointsFor := newShowCodeBreakpointsFor. |
|
1094 |
! |
|
1095 |
||
1096 |
updateCode |
|
8365 | 1097 |
|entry method class| |
8233 | 1098 |
|
1099 |
entry := self selectedBreakpointListEntry. |
|
1100 |
entry isNil ifTrue:[ |
|
8365 | 1101 |
codeView contents:nil. |
1102 |
^ self |
|
8233 | 1103 |
]. |
1104 |
method := entry method. |
|
1105 |
method isNil ifTrue:[ |
|
8365 | 1106 |
codeView contents:'OOPS - no source found'. |
8241 | 1107 |
] ifFalse:[ |
8365 | 1108 |
codeView contents:(method source). |
1109 |
entry lineNumber notNil ifTrue:[ |
|
1110 |
codeView cursorLine:entry lineNumber col:1. |
|
1111 |
codeView selectLine:entry lineNumber. |
|
9077 | 1112 |
] ifFalse:[ |
1113 |
self breakPoint:#cg. |
|
8365 | 1114 |
]. |
1115 |
codeView |
|
1116 |
acceptAction:[:newText | |
|
1117 |
class := method mclass ? (Smalltalk classNamed:entry className). |
|
1118 |
class |
|
1119 |
compilerClass |
|
1120 |
compile:newText asString |
|
1121 |
forClass:class |
|
1122 |
inCategory:method category |
|
1123 |
notifying:codeView. |
|
1124 |
] |
|
1125 |
]. |
|
1126 |
! |
|
1127 |
||
1128 |
updateEntry:entry |
|
1129 |
"after a change, update the list entry. |
|
1130 |
(or remove it if required)" |
|
1131 |
||
1132 |
|mthd cls sel newShowCodeBreakpointsFor any| |
|
1133 |
||
1134 |
newShowCodeBreakpointsFor := Dictionary new. |
|
1135 |
||
1136 |
breakpointList remove:entry ifAbsent:[]. |
|
1137 |
||
1138 |
mthd := entry method. |
|
1139 |
cls := Smalltalk classNamed:entry className. |
|
1140 |
sel := entry selector. |
|
1141 |
||
1142 |
any := false. |
|
1143 |
self |
|
1144 |
withBreakpointListEntriesFor:mthd class:cls selector:sel |
|
1145 |
messages:(self messagesAndTypes) |
|
1146 |
messageSelectors:(self messageSelectors) |
|
1147 |
rememberingCodeBreakpointTypesIn:newShowCodeBreakpointsFor |
|
1148 |
do:[:newEntry | |
|
1149 |
any := true. |
|
1150 |
breakpointList add:newEntry. |
|
1151 |
]. |
|
1152 |
! |
|
1153 |
||
1154 |
updateForClass:aClass selector:selector |
|
1155 |
|selectionIndexBefore mthd affectedEntries newShowCodeBreakpointsFor| |
|
1156 |
||
1157 |
selectionIndexBefore := selectionIndexHolder value. |
|
1158 |
||
1159 |
affectedEntries := breakpointList select:[:entry | |
|
1160 |
entry selector = selector |
|
1161 |
and:[ entry className = aClass name ] |
|
1162 |
]. |
|
1163 |
affectedEntries do:[:eachEntry | |
|
1164 |
breakpointList remove:eachEntry ifAbsent:[]. |
|
8233 | 1165 |
]. |
1166 |
||
8365 | 1167 |
mthd := aClass compiledMethodAt:selector. |
1168 |
mthd notNil ifTrue:[ |
|
1169 |
newShowCodeBreakpointsFor := Dictionary new. |
|
8233 | 1170 |
|
8365 | 1171 |
self |
1172 |
withBreakpointListEntriesFor:mthd class:aClass selector:selector |
|
1173 |
messages:(self messagesAndTypes) |
|
1174 |
messageSelectors:(self messageSelectors) |
|
1175 |
rememberingCodeBreakpointTypesIn:newShowCodeBreakpointsFor |
|
1176 |
do:[:newEntry | |
|
1177 |
breakpointList add:newEntry. |
|
1178 |
]. |
|
1179 |
]. |
|
8233 | 1180 |
|
8365 | 1181 |
self updateShownBreakpointList. |
1182 |
self selectionIndexHolder value:selectionIndexBefore. |
|
1183 |
self updateCode |
|
8233 | 1184 |
! |
1185 |
||
9077 | 1186 |
updateList |
1187 |
updateProcess notNil ifTrue:[^ self ]. |
|
1188 |
||
1189 |
self updatingLabelShown value:true. |
|
1190 |
"/ cg: mhmh why is this needed ???? |
|
1191 |
Delay waitForSeconds:0.1. |
|
1192 |
self windowGroup repairDamage. |
|
1193 |
||
1194 |
updateProcess := |
|
1195 |
[ |
|
1196 |
[ |
|
1197 |
ActivityNotification handle:[:ex | |
|
1198 |
self infoHolder value:ex errorString. |
|
1199 |
self windowGroup processExposeEvents. |
|
1200 |
ex proceed. |
|
1201 |
] do:[ |
|
1202 |
self updateBreakpointList. |
|
1203 |
self updateShownBreakpointList. |
|
1204 |
] |
|
1205 |
] ensure:[ |
|
1206 |
updateProcess := nil. |
|
1207 |
self updatingLabelShown value:false. |
|
1208 |
]. |
|
1209 |
] newProcess. |
|
1210 |
updateProcess resume. |
|
1211 |
! |
|
1212 |
||
8233 | 1213 |
updateShownBreakpointList |
1214 |
||
1215 |
self shownCopyOfBreakpointList contents:breakpointList. |
|
1216 |
self filter. |
|
1217 |
self resort. |
|
1218 |
||
1219 |
||
8365 | 1220 |
! |
1221 |
||
1222 |
withBreakpointListEntriesFor:mthd class:cls selector:sel |
|
1223 |
messages:messages |
|
1224 |
messageSelectors:messageSelectors |
|
1225 |
rememberingCodeBreakpointTypesIn:newShowCodeBreakpointsFor |
|
1226 |
do:aBlock |
|
1227 |
||
9077 | 1228 |
|entry type messagesSent showWhichHalt| |
1229 |
||
1230 |
showWhichHalt := self showWhichHaltsHolder value. |
|
8365 | 1231 |
|
1232 |
mthd isWrapped ifTrue:[ |
|
1233 |
mthd isBreakpointed ifTrue:[ |
|
1234 |
type := #trap |
|
1235 |
] ifFalse:[ |
|
1236 |
mthd isTraced ifTrue:[ |
|
1237 |
type := #trace |
|
1238 |
] ifFalse:[ |
|
1239 |
type := #probe |
|
1240 |
]. |
|
1241 |
]. |
|
1242 |
entry := BreakpointListEntry new. |
|
1243 |
entry |
|
1244 |
type:#wrap |
|
1245 |
arg:type |
|
1246 |
className:cls name |
|
1247 |
selector:sel |
|
1248 |
lineNumber:nil |
|
1249 |
info:nil |
|
1250 |
enabled:true. |
|
1251 |
aBlock value:entry |
|
1252 |
]. |
|
1253 |
||
12008
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
1254 |
(mthd literalsDetect:[:lit | |
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
1255 |
(messageSelectors includes:lit) |
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
1256 |
or:[lit class == Breakpoint] |
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
1257 |
] ifNone:nil) notNil ifTrue:[ |
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
1258 |
messagesSent := mthd messagesSent. |
8365 | 1259 |
|
1260 |
messages pairsDo:[:bpSel :type| |
|
1261 |
|tree extractor| |
|
1262 |
||
1263 |
"/ used to be (mthd sends:bpSel); |
|
1264 |
"/ however, the sends requires an expensive parse of the methods source |
|
1265 |
"/ to fetch all message selectors. This should be done only once, |
|
1266 |
"/ and not for every selector we look for) |
|
1267 |
(messagesSent includesIdentical:bpSel) ifTrue:[ |
|
9077 | 1268 |
tree := RBParser |
1269 |
parseMethod:mthd source |
|
1270 |
onError:[:aString :pos | |
|
1271 |
('BreakPointBrowser [info]: error while parsing "%1": %2' |
|
1272 |
bindWith:mthd whoString with:aString) infoPrintCR. |
|
1273 |
nil |
|
1274 |
]. |
|
1275 |
||
8365 | 1276 |
tree isNil ifTrue:[ |
1277 |
entry := BreakpointListEntry new. |
|
1278 |
entry |
|
1279 |
type:type |
|
1280 |
arg:nil |
|
1281 |
className:cls name |
|
1282 |
selector:sel |
|
1283 |
lineNumber:nil |
|
1284 |
info:nil |
|
1285 |
enabled:true. |
|
1286 |
aBlock value:entry |
|
1287 |
] ifFalse:[ |
|
1288 |
extractor := MessageArgumentExtractor new. |
|
1289 |
extractor selectorToSearch:bpSel. |
|
9077 | 1290 |
extractor |
1291 |
callBack:[:lineNo :argument :infoMessage | |
|
1292 |
|showIt isIgnored| |
|
1293 |
||
1294 |
argument notNil ifTrue:[ |
|
1295 |
newShowCodeBreakpointsFor |
|
1296 |
at:argument |
|
1297 |
put:(showCodeBreakpointsFor |
|
1298 |
at:argument |
|
1299 |
ifAbsent:[true asValue]) |
|
1300 |
]. |
|
1301 |
entry := BreakpointListEntry new. |
|
1302 |
entry |
|
1303 |
type:type |
|
1304 |
arg:argument |
|
1305 |
className:cls name |
|
1306 |
selector:sel |
|
1307 |
lineNumber:lineNo |
|
1308 |
info:infoMessage |
|
1309 |
enabled:true. |
|
1310 |
||
1311 |
aBlock value:entry |
|
8365 | 1312 |
]. |
9077 | 1313 |
|
8365 | 1314 |
tree acceptVisitor:extractor. |
1315 |
] |
|
1316 |
]. |
|
1317 |
]. |
|
12008
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
1318 |
|
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
1319 |
mthd literalsDo:[:lit | |
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
1320 |
lit class == Breakpoint ifTrue:[ |
12012 | 1321 |
entry := BreakpointListEntryForLineBreak new. |
12008
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
1322 |
entry |
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
1323 |
type:#line |
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
1324 |
arg:nil |
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
1325 |
className:cls name |
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
1326 |
selector:sel |
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
1327 |
lineNumber:(lit line) |
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
1328 |
info:nil |
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
1329 |
enabled:true. |
12012 | 1330 |
entry breakPoint:lit. |
12008
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
1331 |
aBlock value:entry |
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
1332 |
] |
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
1333 |
]. |
8365 | 1334 |
]. |
8233 | 1335 |
! ! |
1336 |
||
1337 |
!BreakpointBrowser methodsFor:'initialization & release'! |
|
1338 |
||
12009
9d2c3ebb1a2d
honor the codeView/codeView2 setting
Claus Gittinger <cg@exept.de>
parents:
12008
diff
changeset
|
1339 |
codeViewClass |
12018
508304bbb86b
comment/format in: #codeViewClass
Claus Gittinger <cg@exept.de>
parents:
12017
diff
changeset
|
1340 |
"the type of codeview to use" |
508304bbb86b
comment/format in: #codeViewClass
Claus Gittinger <cg@exept.de>
parents:
12017
diff
changeset
|
1341 |
|
12009
9d2c3ebb1a2d
honor the codeView/codeView2 setting
Claus Gittinger <cg@exept.de>
parents:
12008
diff
changeset
|
1342 |
^ UserPreferences current useCodeView2 |
12016
3e3d4015fd7b
added: #toggleAllShownTypes
Claus Gittinger <cg@exept.de>
parents:
12012
diff
changeset
|
1343 |
ifTrue:[ Tools::CodeView2 ] |
12009
9d2c3ebb1a2d
honor the codeView/codeView2 setting
Claus Gittinger <cg@exept.de>
parents:
12008
diff
changeset
|
1344 |
ifFalse:[ CodeView ] |
9d2c3ebb1a2d
honor the codeView/codeView2 setting
Claus Gittinger <cg@exept.de>
parents:
12008
diff
changeset
|
1345 |
! |
9d2c3ebb1a2d
honor the codeView/codeView2 setting
Claus Gittinger <cg@exept.de>
parents:
12008
diff
changeset
|
1346 |
|
8233 | 1347 |
initialize |
1348 |
super initialize. |
|
1349 |
||
1350 |
showCodeBreakpointsFor := Dictionary new. |
|
1351 |
breakpointList := List new. |
|
1352 |
||
1353 |
currentSortColumn := #type. |
|
1354 |
currentSortIsReverse := false. |
|
8365 | 1355 |
|
1356 |
Smalltalk addDependent:self. |
|
8233 | 1357 |
! |
1358 |
||
1359 |
postBuildCodeView:aView |
|
1360 |
codeView := aView |
|
1361 |
! |
|
1362 |
||
1363 |
postOpenWith:aBuilder |
|
1364 |
super postOpenWith:aBuilder. |
|
1365 |
||
1366 |
self enqueueMessage:#updateList for:self arguments:#(). |
|
1367 |
||
1368 |
"Modified: / 18-02-2007 / 12:55:57 / cg" |
|
8365 | 1369 |
! |
1370 |
||
1371 |
release |
|
8767 | 1372 |
|p| |
1373 |
||
1374 |
(p := updateProcess) notNil ifTrue:[ |
|
1375 |
updateProcess := nil. |
|
1376 |
p terminate |
|
1377 |
]. |
|
8365 | 1378 |
Smalltalk removeDependent:self. |
1379 |
super release |
|
8233 | 1380 |
! ! |
1381 |
||
1382 |
!BreakpointBrowser methodsFor:'menu actions-item'! |
|
1383 |
||
1384 |
browseItem |
|
8362 | 1385 |
self withWaitCursorDo:[ |
1386 |
(self breakpointListEntryAtIndex:self selectionIndexHolder value) browse |
|
1387 |
]. |
|
8233 | 1388 |
! |
1389 |
||
9079 | 1390 |
reenableHalt |
1391 |
|entry| |
|
1392 |
||
11211 | 1393 |
entry := self breakpointListEntryAtIndex:self selectionIndexHolder value. |
1394 |
Debugger |
|
1395 |
ignoreHaltIn:(entry method) |
|
1396 |
at:(entry lineNumber) |
|
1397 |
forCount:nil orTimeDuration:nil orUntilShiftKey:false. |
|
9079 | 1398 |
self updateShownBreakpointList |
11211 | 1399 |
|
1400 |
"Modified: / 27-01-2012 / 11:34:11 / cg" |
|
9079 | 1401 |
! |
1402 |
||
8233 | 1403 |
removeItem |
1404 |
breakpointList remove:(self selectedBreakpointListEntry) |
|
1405 |
||
1406 |
"Created: / 22-10-2006 / 10:45:52 / cg" |
|
1407 |
"Modified: / 18-02-2007 / 12:57:58 / cg" |
|
1408 |
! ! |
|
1409 |
||
1410 |
!BreakpointBrowser methodsFor:'menus-dynamic'! |
|
1411 |
||
1412 |
codeBreakpointMenu |
|
1413 |
<resource: #programMenu > |
|
1414 |
||
1415 |
|breakpointArgs menu| |
|
1416 |
||
1417 |
breakpointArgs := Set new. |
|
8241 | 1418 |
breakpointList |
8859 | 1419 |
select:[:entry | entry arg notNil] |
1420 |
thenDo:[:entry | breakpointArgs add:entry arg]. |
|
8233 | 1421 |
(breakpointList contains:[:entry | entry arg isNil]) ifTrue:[ |
8859 | 1422 |
breakpointArgs add:'<nil>'. |
8233 | 1423 |
]. |
1424 |
breakpointArgs := breakpointArgs asSortedCollection. |
|
1425 |
||
1426 |
menu := Menu new. |
|
8859 | 1427 |
menu addItem:( |
1428 |
MenuItem new |
|
1429 |
label:'Toggle All'; |
|
1430 |
translateLabel:true; |
|
1431 |
hideMenuOnActivated:false; |
|
11788 | 1432 |
itemValue:[ |
1433 |
showCodeBreakpointsFor do:[:each | |
|
1434 |
each value:(each value not) |
|
1435 |
] |
|
1436 |
]). |
|
8859 | 1437 |
menu addSeparator. |
8233 | 1438 |
|
8859 | 1439 |
breakpointArgs do:[:arg| |
1440 |
| menuItem | |
|
1441 |
||
1442 |
menuItem := MenuItem new. |
|
1443 |
menuItem label:arg. |
|
1444 |
menuItem translateLabel:false. |
|
1445 |
menuItem indication:(showCodeBreakpointsFor at:arg ifAbsentPut:[true asValue]). |
|
1446 |
menuItem hideMenuOnActivated:false. |
|
11788 | 1447 |
menuItem |
1448 |
itemValue:[:onOff | |
|
1449 |
(showCodeBreakpointsFor at:arg ifAbsentPut:[true asValue]) value:onOff. |
|
1450 |
self updateShownBreakpointList |
|
1451 |
]. |
|
8859 | 1452 |
menu addItem:menuItem. |
8233 | 1453 |
]. |
1454 |
menu findGuiResourcesIn:self. |
|
1455 |
^ menu |
|
1456 |
||
11788 | 1457 |
"Modified (format): / 09-09-2012 / 13:11:14 / cg" |
8233 | 1458 |
! |
1459 |
||
1460 |
enabledCodeBreakpointMenu |
|
1461 |
<resource: #programMenu > |
|
1462 |
||
1463 |
|breakpointArgs menu enabledCodeBreakpointHolders| |
|
1464 |
||
1465 |
enabledCodeBreakpointHolders := Dictionary new. |
|
1466 |
||
1467 |
breakpointArgs := Set new. |
|
8241 | 1468 |
breakpointList |
8858
a03067b9d96c
comment/format in: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
8767
diff
changeset
|
1469 |
select:[:entry | entry arg notNil] |
a03067b9d96c
comment/format in: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
8767
diff
changeset
|
1470 |
thenDo:[:entry | breakpointArgs add:entry arg]. |
8859 | 1471 |
|
8233 | 1472 |
(breakpointList contains:[:entry | entry arg isNil]) ifTrue:[ |
8858
a03067b9d96c
comment/format in: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
8767
diff
changeset
|
1473 |
breakpointArgs add:'<nil>'. |
8233 | 1474 |
]. |
1475 |
breakpointArgs := breakpointArgs asSortedCollection. |
|
1476 |
||
1477 |
menu := Menu new. |
|
8859 | 1478 |
menu addItem:( |
1479 |
MenuItem new |
|
1480 |
label:'Toggle All'; |
|
1481 |
translateLabel:true; |
|
1482 |
hideMenuOnActivated:false; |
|
11788 | 1483 |
itemValue:[ |
9614
1f2c844d482a
changed: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
9335
diff
changeset
|
1484 |
enabledCodeBreakpointHolders keysAndValuesDo:[:arg :each | |
1f2c844d482a
changed: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
9335
diff
changeset
|
1485 |
each value:(each value not). |
1f2c844d482a
changed: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
9335
diff
changeset
|
1486 |
each value ifTrue:[ |
1f2c844d482a
changed: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
9335
diff
changeset
|
1487 |
Object enableBreakPoint:arg |
1f2c844d482a
changed: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
9335
diff
changeset
|
1488 |
] ifFalse:[ |
1f2c844d482a
changed: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
9335
diff
changeset
|
1489 |
Object disableBreakPoint:arg |
1f2c844d482a
changed: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
9335
diff
changeset
|
1490 |
]. |
8859 | 1491 |
] |
1492 |
]). |
|
1493 |
menu addSeparator. |
|
1494 |
||
8241 | 1495 |
breakpointArgs do:[:arg| |
8858
a03067b9d96c
comment/format in: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
8767
diff
changeset
|
1496 |
| menuItem | |
8233 | 1497 |
|
8858
a03067b9d96c
comment/format in: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
8767
diff
changeset
|
1498 |
menuItem := MenuItem new. |
a03067b9d96c
comment/format in: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
8767
diff
changeset
|
1499 |
menuItem label:arg. |
a03067b9d96c
comment/format in: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
8767
diff
changeset
|
1500 |
menuItem translateLabel:false. |
a03067b9d96c
comment/format in: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
8767
diff
changeset
|
1501 |
menuItem indication:(enabledCodeBreakpointHolders at:arg ifAbsentPut:[ (Object isBreakPointEnabled:arg) asValue ]). |
a03067b9d96c
comment/format in: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
8767
diff
changeset
|
1502 |
menuItem hideMenuOnActivated:false. |
11788 | 1503 |
menuItem itemValue:[:onOff | |
8858
a03067b9d96c
comment/format in: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
8767
diff
changeset
|
1504 |
(enabledCodeBreakpointHolders at:arg ifAbsentPut:[(Object isBreakPointEnabled:arg) asValue]) value:onOff. |
a03067b9d96c
comment/format in: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
8767
diff
changeset
|
1505 |
onOff ifFalse:[ |
a03067b9d96c
comment/format in: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
8767
diff
changeset
|
1506 |
Object disableBreakPoint:arg |
a03067b9d96c
comment/format in: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
8767
diff
changeset
|
1507 |
] ifTrue:[ |
a03067b9d96c
comment/format in: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
8767
diff
changeset
|
1508 |
Object enableBreakPoint:arg |
a03067b9d96c
comment/format in: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
8767
diff
changeset
|
1509 |
]. |
a03067b9d96c
comment/format in: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
8767
diff
changeset
|
1510 |
]. |
a03067b9d96c
comment/format in: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
8767
diff
changeset
|
1511 |
menu addItem:menuItem. |
8233 | 1512 |
]. |
1513 |
menu findGuiResourcesIn:self. |
|
1514 |
^ menu |
|
1515 |
||
11788 | 1516 |
"Modified: / 09-09-2012 / 13:11:30 / cg" |
8233 | 1517 |
! ! |
1518 |
||
9077 | 1519 |
!BreakpointBrowser methodsFor:'tests'! |
1520 |
||
1521 |
aMethodWith_assert |
|
1522 |
"only here for demonstration purposes - should be found in the list" |
|
1523 |
||
1524 |
self assert:(3 > 4) |
|
1525 |
! |
|
1526 |
||
1527 |
aMethodWith_assert2 |
|
1528 |
"only here for demonstration purposes - should be found in the list" |
|
1529 |
||
1530 |
self assert:(3 > 4) message:'well - that ought to work' |
|
1531 |
! |
|
1532 |
||
1533 |
aMethodWith_breakPoint |
|
1534 |
"only here for demonstration purposes - should be found in the list" |
|
1535 |
||
1536 |
self breakPoint:#cg |
|
1537 |
! |
|
1538 |
||
1539 |
aMethodWith_breakPoint2 |
|
1540 |
"only here for demonstration purposes - should be found in the list" |
|
1541 |
||
1542 |
self breakPoint:#cg info:'hello there' |
|
1543 |
! |
|
1544 |
||
1545 |
aMethodWith_debugCode |
|
1546 |
"only here for demonstration purposes - should be found in the list" |
|
1547 |
||
1548 |
self |
|
1549 |
debuggingCodeFor:#cg |
|
1550 |
is:[ |
|
1551 |
self bla. |
|
1552 |
Transcript show:'some debug prints here' |
|
1553 |
]. |
|
1554 |
! |
|
1555 |
||
1556 |
aMethodWith_halt |
|
1557 |
"only here for demonstration purposes - should be found in the list" |
|
1558 |
||
1559 |
self halt |
|
9080
dca24ca8a31f
comment/format in: #aMethodWith_halt
Claus Gittinger <cg@exept.de>
parents:
9079
diff
changeset
|
1560 |
|
dca24ca8a31f
comment/format in: #aMethodWith_halt
Claus Gittinger <cg@exept.de>
parents:
9079
diff
changeset
|
1561 |
"after the first halt, in the debugger, ignore this halt for some time and see what |
dca24ca8a31f
comment/format in: #aMethodWith_halt
Claus Gittinger <cg@exept.de>
parents:
9079
diff
changeset
|
1562 |
the breakpoint browser shows... |
dca24ca8a31f
comment/format in: #aMethodWith_halt
Claus Gittinger <cg@exept.de>
parents:
9079
diff
changeset
|
1563 |
|
dca24ca8a31f
comment/format in: #aMethodWith_halt
Claus Gittinger <cg@exept.de>
parents:
9079
diff
changeset
|
1564 |
10 timesRepeat:[ |
dca24ca8a31f
comment/format in: #aMethodWith_halt
Claus Gittinger <cg@exept.de>
parents:
9079
diff
changeset
|
1565 |
self new aMethodWith_halt |
dca24ca8a31f
comment/format in: #aMethodWith_halt
Claus Gittinger <cg@exept.de>
parents:
9079
diff
changeset
|
1566 |
]. |
dca24ca8a31f
comment/format in: #aMethodWith_halt
Claus Gittinger <cg@exept.de>
parents:
9079
diff
changeset
|
1567 |
" |
9077 | 1568 |
! |
1569 |
||
1570 |
aMethodWith_halt2 |
|
1571 |
"only here for demonstration purposes - should be found in the list" |
|
1572 |
||
1573 |
self halt:'some message' |
|
1574 |
! |
|
1575 |
||
1576 |
aMethodWith_todo |
|
1577 |
"only here for demonstration purposes - should be found in the list" |
|
1578 |
||
1579 |
self todo |
|
1580 |
! ! |
|
1581 |
||
8233 | 1582 |
!BreakpointBrowser methodsFor:'user actions'! |
1583 |
||
1584 |
browseSelectedItem |
|
8362 | 1585 |
self withWaitCursorDo:[ |
1586 |
(self selectedBreakpointListEntry) browse |
|
1587 |
]. |
|
8233 | 1588 |
|
1589 |
"Created: / 22-10-2006 / 01:49:13 / cg" |
|
1590 |
"Modified: / 18-02-2007 / 12:56:30 / cg" |
|
1591 |
! |
|
1592 |
||
12012 | 1593 |
disableLineBreak |
1594 |
(self selectedBreakpointListEntry) breakPoint disable |
|
1595 |
! |
|
1596 |
||
8233 | 1597 |
itemDoubleClicked:itemIndex |
1598 |
self browseSelectedItem |
|
1599 |
||
1600 |
"Created: / 22-10-2006 / 01:49:13 / cg" |
|
1601 |
"Modified: / 18-02-2007 / 12:56:30 / cg" |
|
1602 |
! |
|
1603 |
||
12016
3e3d4015fd7b
added: #toggleAllShownTypes
Claus Gittinger <cg@exept.de>
parents:
12012
diff
changeset
|
1604 |
openDocumentation |
3e3d4015fd7b
added: #toggleAllShownTypes
Claus Gittinger <cg@exept.de>
parents:
12012
diff
changeset
|
1605 |
HTMLDocumentView openFullOnDocumentationFile:'tools/misc/TOP.html#BREAKPOINTLIST'. |
3e3d4015fd7b
added: #toggleAllShownTypes
Claus Gittinger <cg@exept.de>
parents:
12012
diff
changeset
|
1606 |
! |
3e3d4015fd7b
added: #toggleAllShownTypes
Claus Gittinger <cg@exept.de>
parents:
12012
diff
changeset
|
1607 |
|
8233 | 1608 |
resort |
1609 |
|sortBlock sortBlock1| |
|
1610 |
||
1611 |
currentSortColumn isNil ifTrue:[^ self ]. |
|
1612 |
||
1613 |
sortBlock := sortBlock1 := [:a :b | |
|
8241 | 1614 |
|vA vB| |
8233 | 1615 |
|
8241 | 1616 |
vA := (a perform:currentSortColumn). |
1617 |
vB := (b perform:currentSortColumn). |
|
1618 |
vA = vB ifTrue:[ |
|
1619 |
currentSortColumn == #type ifTrue:[ |
|
1620 |
vA := a arg. |
|
1621 |
vB := b arg. |
|
1622 |
vA = vB ifTrue:[ |
|
1623 |
vA := a className. |
|
1624 |
vB := b className. |
|
1625 |
vA = vB ifTrue:[ |
|
1626 |
vA := a selector. |
|
1627 |
vB := b selector. |
|
1628 |
vA = vB ifTrue:[ |
|
1629 |
vA := a lineNumber. |
|
1630 |
vB := b lineNumber. |
|
1631 |
] |
|
1632 |
] |
|
1633 |
] |
|
1634 |
] |
|
1635 |
]. |
|
1636 |
(vA ? '') < (vB ? '') |
|
1637 |
]. |
|
8233 | 1638 |
|
1639 |
currentSortIsReverse ifTrue:[ |
|
8241 | 1640 |
sortBlock := [:a :b | (sortBlock1 value:a value:b) not ]. |
8233 | 1641 |
]. |
1642 |
||
1643 |
"/ temporary hack - should make a copy of the real list |
|
1644 |
self shownCopyOfBreakpointList sort:sortBlock |
|
1645 |
||
1646 |
"Created: / 25-10-2006 / 01:01:26 / cg" |
|
1647 |
"Modified: / 18-02-2007 / 13:02:19 / cg" |
|
1648 |
! |
|
1649 |
||
1650 |
sortBy:instanceName |
|
1651 |
self sortBy:instanceName withReverse:true |
|
1652 |
||
1653 |
"Created: / 25-10-2006 / 00:53:55 / cg" |
|
1654 |
! |
|
1655 |
||
1656 |
sortBy:instanceName withReverse:aBoolean |
|
1657 |
|aSymbol| |
|
1658 |
||
1659 |
aSymbol := instanceName asSymbol. |
|
1660 |
||
1661 |
currentSortColumn isNil ifTrue:[ |
|
8241 | 1662 |
currentSortColumn := aSymbol. |
1663 |
currentSortIsReverse := false. |
|
8233 | 1664 |
] ifFalse:[ |
8241 | 1665 |
currentSortColumn = aSymbol ifTrue:[ |
1666 |
"/ same column like before - change sort order ifReverse is true |
|
1667 |
aBoolean ifTrue:[ |
|
1668 |
currentSortIsReverse := currentSortIsReverse not. |
|
1669 |
]. |
|
1670 |
] ifFalse:[ |
|
1671 |
"/ another column - remark column |
|
1672 |
currentSortColumn := aSymbol. |
|
1673 |
] |
|
8233 | 1674 |
]. |
1675 |
self resort. |
|
1676 |
||
1677 |
"Created: / 25-10-2006 / 00:54:59 / cg" |
|
12016
3e3d4015fd7b
added: #toggleAllShownTypes
Claus Gittinger <cg@exept.de>
parents:
12012
diff
changeset
|
1678 |
! |
3e3d4015fd7b
added: #toggleAllShownTypes
Claus Gittinger <cg@exept.de>
parents:
12012
diff
changeset
|
1679 |
|
3e3d4015fd7b
added: #toggleAllShownTypes
Claus Gittinger <cg@exept.de>
parents:
12012
diff
changeset
|
1680 |
toggleAllShownTypes |
3e3d4015fd7b
added: #toggleAllShownTypes
Claus Gittinger <cg@exept.de>
parents:
12012
diff
changeset
|
1681 |
self showAssertions:(self showAssertions not). |
3e3d4015fd7b
added: #toggleAllShownTypes
Claus Gittinger <cg@exept.de>
parents:
12012
diff
changeset
|
1682 |
self showHalts:(self showHalts not). |
3e3d4015fd7b
added: #toggleAllShownTypes
Claus Gittinger <cg@exept.de>
parents:
12012
diff
changeset
|
1683 |
self showCodeBreakpoints:(self showCodeBreakpoints not). |
3e3d4015fd7b
added: #toggleAllShownTypes
Claus Gittinger <cg@exept.de>
parents:
12012
diff
changeset
|
1684 |
self showDebugCode:(self showDebugCode not). |
3e3d4015fd7b
added: #toggleAllShownTypes
Claus Gittinger <cg@exept.de>
parents:
12012
diff
changeset
|
1685 |
self showLineBreakpoints:(self showLineBreakpoints not). |
3e3d4015fd7b
added: #toggleAllShownTypes
Claus Gittinger <cg@exept.de>
parents:
12012
diff
changeset
|
1686 |
self showMethodBreakpoints:(self showMethodBreakpoints not). |
3e3d4015fd7b
added: #toggleAllShownTypes
Claus Gittinger <cg@exept.de>
parents:
12012
diff
changeset
|
1687 |
self showOthers:(self showOthers not). |
8233 | 1688 |
! ! |
1689 |
||
1690 |
!BreakpointBrowser::BreakpointListEntry methodsFor:'accessing'! |
|
1691 |
||
1692 |
arg |
|
1693 |
^ arg |
|
1694 |
! |
|
1695 |
||
1696 |
className |
|
1697 |
^ className |
|
1698 |
! |
|
1699 |
||
1700 |
enabled |
|
1701 |
^ enabled |
|
1702 |
! |
|
1703 |
||
9079 | 1704 |
ignoredInfo |
1705 |
^ ignoredInfo |
|
1706 |
! |
|
1707 |
||
1708 |
ignoredInfo:something |
|
1709 |
ignoredInfo := something. |
|
1710 |
! |
|
1711 |
||
8233 | 1712 |
info |
9079 | 1713 |
^ ignoredInfo ? info |
8233 | 1714 |
! |
1715 |
||
1716 |
lineNumber |
|
1717 |
^ lineNumber |
|
1718 |
! |
|
1719 |
||
1720 |
selector |
|
1721 |
^ selector |
|
1722 |
! |
|
1723 |
||
1724 |
type |
|
1725 |
^ type |
|
1726 |
! |
|
1727 |
||
8241 | 1728 |
type:typeArg arg:argArg className:classNameArg selector:selectorArg lineNumber:lineNumberArg info:infoArg enabled:enabledArg |
8233 | 1729 |
type := typeArg. |
1730 |
arg := argArg. |
|
1731 |
className := classNameArg. |
|
1732 |
selector := selectorArg. |
|
1733 |
lineNumber := lineNumberArg. |
|
1734 |
info := infoArg. |
|
1735 |
enabled := enabledArg. |
|
1736 |
! ! |
|
1737 |
||
1738 |
!BreakpointBrowser::BreakpointListEntry methodsFor:'actions'! |
|
1739 |
||
1740 |
browse |
|
1741 |
|browser| |
|
1742 |
||
1743 |
browser := UserPreferences systemBrowserClass |
|
8241 | 1744 |
openInClass:(Smalltalk classNamed:className) selector:selector. |
8233 | 1745 |
|
1746 |
lineNumber notNil ifTrue:[ |
|
8241 | 1747 |
browser codeView cursorLine:lineNumber col:1. |
1748 |
browser codeView selectLine:lineNumber. |
|
8233 | 1749 |
]. |
1750 |
||
1751 |
! |
|
1752 |
||
1753 |
method |
|
1754 |
^ (Smalltalk classNamed:className) compiledMethodAt:selector. |
|
1755 |
! ! |
|
1756 |
||
1757 |
!BreakpointBrowser::BreakpointListEntry methodsFor:'testing'! |
|
1758 |
||
1759 |
isAssertion |
|
12020 | 1760 |
|
8233 | 1761 |
^ type == #assertion |
1762 |
! |
|
1763 |
||
1764 |
isCodeBreakpoint |
|
8365 | 1765 |
^ type == #breakPoint |
8233 | 1766 |
! |
1767 |
||
9077 | 1768 |
isDebugCode |
1769 |
^ type == #debugCode |
|
1770 |
! |
|
1771 |
||
8233 | 1772 |
isHalt |
1773 |
^ type == #halt |
|
1774 |
! |
|
1775 |
||
12008
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
1776 |
isLineBreakpoint |
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
1777 |
^ type == #line |
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
1778 |
! |
a2ca11e42ad2
updated to also include line breaks as per Jan's codeView2
Claus Gittinger <cg@exept.de>
parents:
11788
diff
changeset
|
1779 |
|
8233 | 1780 |
isMethodBreakpoint |
1781 |
^ type == #wrap |
|
9077 | 1782 |
! |
1783 |
||
1784 |
isOther |
|
1785 |
^ type == #other |
|
8233 | 1786 |
! ! |
1787 |
||
12012 | 1788 |
!BreakpointBrowser::BreakpointListEntryForLineBreak methodsFor:'accessing'! |
1789 |
||
1790 |
breakPoint |
|
12019 | 1791 |
"return the BreakPoint-instance" |
1792 |
||
12012 | 1793 |
^ breakPoint |
1794 |
! |
|
1795 |
||
1796 |
breakPoint:something |
|
1797 |
breakPoint := something. |
|
1798 |
! ! |
|
1799 |
||
8233 | 1800 |
!BreakpointBrowser::MessageArgumentExtractor methodsFor:'accessing'! |
1801 |
||
1802 |
callBack:something |
|
1803 |
callBack := something. |
|
1804 |
! |
|
1805 |
||
1806 |
selectorToSearch:something |
|
1807 |
selectorToSearch := something. |
|
1808 |
! ! |
|
1809 |
||
1810 |
!BreakpointBrowser::MessageArgumentExtractor methodsFor:'visiting'! |
|
1811 |
||
1812 |
acceptMessageNode: aMessageNode |
|
1813 |
|arg1Node arg1 arg2Node arg2 argument infoMessage| |
|
1814 |
||
1815 |
aMessageNode selector == selectorToSearch ifTrue:[ |
|
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1816 |
aMessageNode arguments size > 0 ifTrue:[ |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1817 |
arg1Node := aMessageNode arguments first. |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1818 |
arg1Node isLiteral ifTrue:[ |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1819 |
arg1 := arg1Node value. |
8365 | 1820 |
] ifFalse:[ |
1821 |
arg1 := '(...)'. |
|
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1822 |
]. |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1823 |
aMessageNode arguments size > 1 ifTrue:[ |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1824 |
arg2Node := aMessageNode arguments second. |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1825 |
arg2Node isLiteral ifTrue:[ |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1826 |
arg2 := arg2Node value. |
8365 | 1827 |
] ifFalse:[ |
1828 |
arg2 := '(...)'. |
|
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1829 |
]. |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1830 |
]. |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1831 |
]. |
8233 | 1832 |
|
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1833 |
selectorToSearch == #halt: ifTrue:[ |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1834 |
infoMessage := arg1. |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1835 |
]. |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1836 |
selectorToSearch == #breakPoint: ifTrue:[ |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1837 |
argument := arg1. |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1838 |
]. |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1839 |
selectorToSearch == #breakPoint:info: ifTrue:[ |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1840 |
argument := arg1. |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1841 |
infoMessage := arg2. |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1842 |
]. |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1843 |
selectorToSearch == #debuggingCodeFor:is: ifTrue:[ |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1844 |
argument := arg1. |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1845 |
]. |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1846 |
selectorToSearch == #assert: ifTrue:[ |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1847 |
]. |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1848 |
selectorToSearch == #assert:message: ifTrue:[ |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1849 |
infoMessage := arg2. |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1850 |
]. |
8233 | 1851 |
|
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1852 |
callBack |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1853 |
value:aMessageNode firstLineNumber |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1854 |
value:argument |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1855 |
value:infoMessage |
8233 | 1856 |
]. |
1857 |
super acceptMessageNode: aMessageNode |
|
1858 |
! ! |
|
1859 |
||
1860 |
!BreakpointBrowser class methodsFor:'documentation'! |
|
1861 |
||
1862 |
version |
|
12526
dc89c5a91cfc
class: Tools::BreakpointBrowser
Claus Gittinger <cg@exept.de>
parents:
12022
diff
changeset
|
1863 |
^ '$Header: /cvs/stx/stx/libtool/Tools__BreakpointBrowser.st,v 1.40 2013-03-26 00:43:36 cg Exp $' |
8858
a03067b9d96c
comment/format in: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
8767
diff
changeset
|
1864 |
! |
a03067b9d96c
comment/format in: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
8767
diff
changeset
|
1865 |
|
a03067b9d96c
comment/format in: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
8767
diff
changeset
|
1866 |
version_CVS |
12526
dc89c5a91cfc
class: Tools::BreakpointBrowser
Claus Gittinger <cg@exept.de>
parents:
12022
diff
changeset
|
1867 |
^ '$Header: /cvs/stx/stx/libtool/Tools__BreakpointBrowser.st,v 1.40 2013-03-26 00:43:36 cg Exp $' |
8233 | 1868 |
! ! |
9077 | 1869 |
|
12526
dc89c5a91cfc
class: Tools::BreakpointBrowser
Claus Gittinger <cg@exept.de>
parents:
12022
diff
changeset
|
1870 |
|
9077 | 1871 |
BreakpointBrowser initialize! |