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