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