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