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