author | Claus Gittinger <cg@exept.de> |
Thu, 22 Oct 2009 15:58:02 +0200 | |
changeset 9045 | a43cc56e8dca |
parent 8859 | ea979fe04ab7 |
child 9077 | c936c0fc8ef4 |
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 |
|
19 |
showHalts showAssertions showCodeBreakpoints |
|
8767 | 20 |
showCodeBreakpointsFor showMethodBreakpoints codeView infoHolder |
21 |
updateProcess' |
|
8233 | 22 |
classVariableNames:'' |
23 |
poolDictionaries:'' |
|
24 |
category:'Interface-Smalltalk-Breakpoints' |
|
25 |
! |
|
26 |
||
27 |
Object subclass:#BreakpointListEntry |
|
28 |
instanceVariableNames:'type arg className selector lineNumber info enabled' |
|
29 |
classVariableNames:'' |
|
30 |
poolDictionaries:'' |
|
8302 | 31 |
privateIn:BreakpointBrowser |
8233 | 32 |
! |
33 |
||
34 |
RBProgramNodeVisitor subclass:#MessageArgumentExtractor |
|
35 |
instanceVariableNames:'callBack selectorToSearch' |
|
36 |
classVariableNames:'' |
|
37 |
poolDictionaries:'' |
|
8302 | 38 |
privateIn:BreakpointBrowser |
8233 | 39 |
! |
40 |
||
41 |
!BreakpointBrowser class methodsFor:'documentation'! |
|
42 |
||
8234 | 43 |
copyright |
44 |
" |
|
45 |
COPYRIGHT (c) 2008 by eXept Software AG |
|
8241 | 46 |
All Rights Reserved |
8234 | 47 |
|
48 |
This software is furnished under a license and may be used |
|
49 |
only in accordance with the terms of that license and with the |
|
50 |
inclusion of the above copyright notice. This software may not |
|
51 |
be provided or otherwise made available to, or used by, any |
|
52 |
other person. No title to or ownership of the software is |
|
53 |
hereby transferred. |
|
54 |
" |
|
55 |
! |
|
56 |
||
8233 | 57 |
documentation |
58 |
" |
|
8234 | 59 |
tool to list breakpoints (breakPoint/halt/assert) |
8233 | 60 |
|
61 |
[author:] |
|
8241 | 62 |
cg (cg@FUSI) |
8233 | 63 |
" |
64 |
! ! |
|
65 |
||
66 |
!BreakpointBrowser class methodsFor:'interface specs'! |
|
67 |
||
68 |
windowSpec |
|
69 |
"This resource specification was automatically generated |
|
70 |
by the UIPainter of ST/X." |
|
71 |
||
72 |
"Do not manually edit this!! If it is corrupted, |
|
73 |
the UIPainter may not be able to read the specification." |
|
74 |
||
75 |
" |
|
76 |
UIPainter new openOnClass:Tools::BreakpointBrowser andSelector:#windowSpec |
|
77 |
Tools::BreakpointBrowser new openInterface:#windowSpec |
|
78 |
Tools::BreakpointBrowser open |
|
79 |
" |
|
80 |
||
81 |
<resource: #canvas> |
|
82 |
||
8357 | 83 |
^ |
8233 | 84 |
#(FullSpec |
8357 | 85 |
name: windowSpec |
86 |
window: |
|
8233 | 87 |
(WindowSpec |
8357 | 88 |
label: 'Breakpoint Browser' |
89 |
name: 'Breakpoint Browser' |
|
90 |
min: (Point 10 10) |
|
91 |
max: (Point 1024 768) |
|
92 |
bounds: (Rectangle 0 0 680 691) |
|
93 |
menu: mainMenu |
|
94 |
) |
|
95 |
component: |
|
8233 | 96 |
(SpecCollection |
8357 | 97 |
collection: ( |
98 |
(MenuPanelSpec |
|
99 |
name: 'ToolBar1' |
|
100 |
layout: (LayoutFrame 0 0.0 0 0 0 1.0 40 0) |
|
101 |
menu: toolBarMenu |
|
102 |
textDefault: true |
|
103 |
) |
|
104 |
(VariableVerticalPanelSpec |
|
105 |
name: 'VariableVerticalPanel1' |
|
106 |
layout: (LayoutFrame 0 0 40 0 0 1 0 1) |
|
107 |
snapMode: both |
|
108 |
component: |
|
109 |
(SpecCollection |
|
110 |
collection: ( |
|
111 |
(DataSetSpec |
|
112 |
name: 'Table' |
|
113 |
model: selectionIndexHolder |
|
114 |
menu: itemMenu |
|
115 |
hasHorizontalScrollBar: true |
|
116 |
hasVerticalScrollBar: true |
|
117 |
dataList: shownCopyOfBreakpointList |
|
118 |
doubleClickSelector: itemDoubleClicked: |
|
119 |
columnHolder: tableColumns |
|
120 |
) |
|
121 |
(TextEditorSpec |
|
122 |
name: 'TextEditor1' |
|
123 |
hasHorizontalScrollBar: true |
|
124 |
hasVerticalScrollBar: true |
|
125 |
hasKeyboardFocusInitially: false |
|
126 |
viewClassName: 'CodeView' |
|
127 |
postBuildCallback: postBuildCodeView: |
|
128 |
) |
|
129 |
) |
|
130 |
||
131 |
) |
|
132 |
handles: (Any 0.5 1.0) |
|
133 |
) |
|
134 |
(LabelSpec |
|
135 |
label: 'Updating - Please Wait...' |
|
136 |
name: 'Label1' |
|
137 |
layout: (LayoutFrame 0 0 40 0 0 1 0 1) |
|
138 |
visibilityChannel: updatingLabelShown |
|
139 |
backgroundColor: (Color 100.0 49.999237048905 49.999237048905) |
|
140 |
translateLabel: true |
|
141 |
) |
|
8365 | 142 |
(ViewSpec |
143 |
name: 'InfoBox' |
|
144 |
layout: (LayoutFrame 0 0 -30 1 0 1 0 1) |
|
145 |
visibilityChannel: updatingLabelShown |
|
146 |
component: |
|
147 |
(SpecCollection |
|
148 |
collection: ( |
|
149 |
(LabelSpec |
|
150 |
label: 'Label' |
|
151 |
name: 'Label2' |
|
152 |
layout: (LayoutFrame 2 0 2 0 680 0 30 0) |
|
153 |
level: -1 |
|
154 |
translateLabel: true |
|
155 |
labelChannel: infoHolder |
|
156 |
adjust: left |
|
157 |
) |
|
158 |
) |
|
159 |
||
160 |
) |
|
161 |
) |
|
8357 | 162 |
) |
163 |
||
164 |
) |
|
8233 | 165 |
) |
166 |
! ! |
|
167 |
||
168 |
!BreakpointBrowser class methodsFor:'menu specs'! |
|
169 |
||
170 |
itemMenu |
|
171 |
"This resource specification was automatically generated |
|
172 |
by the MenuEditor of ST/X." |
|
173 |
||
174 |
"Do not manually edit this!! If it is corrupted, |
|
175 |
the MenuEditor may not be able to read the specification." |
|
176 |
||
177 |
" |
|
178 |
MenuEditor new openOnClass:Tools::BreakpointBrowser andSelector:#itemMenu |
|
179 |
(Menu new fromLiteralArrayEncoding:(Tools::BreakpointBrowser itemMenu)) startUp |
|
180 |
" |
|
181 |
||
182 |
<resource: #menu> |
|
183 |
||
8241 | 184 |
^ |
8233 | 185 |
#(Menu |
8362 | 186 |
( |
187 |
(MenuItem |
|
188 |
label: 'Browse' |
|
189 |
itemValue: browseSelectedItem |
|
190 |
translateLabel: true |
|
191 |
) |
|
192 |
) |
|
193 |
nil |
|
194 |
nil |
|
8233 | 195 |
) |
196 |
! |
|
197 |
||
198 |
mainMenu |
|
199 |
"This resource specification was automatically generated |
|
200 |
by the MenuEditor of ST/X." |
|
201 |
||
202 |
"Do not manually edit this!! If it is corrupted, |
|
203 |
the MenuEditor may not be able to read the specification." |
|
204 |
||
205 |
" |
|
206 |
MenuEditor new openOnClass:Tools::BreakpointBrowser andSelector:#mainMenu |
|
207 |
(Menu new fromLiteralArrayEncoding:(Tools::BreakpointBrowser mainMenu)) startUp |
|
208 |
" |
|
209 |
||
210 |
<resource: #menu> |
|
211 |
||
9045 | 212 |
^ |
8233 | 213 |
#(Menu |
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
214 |
( |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
215 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
216 |
label: 'File' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
217 |
translateLabel: true |
9045 | 218 |
submenu: |
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
219 |
(Menu |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
220 |
( |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
221 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
222 |
label: 'Exit' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
223 |
itemValue: closeRequest |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
224 |
translateLabel: true |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
225 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
226 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
227 |
nil |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
228 |
nil |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
229 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
230 |
) |
9045 | 231 |
(MenuItem |
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
232 |
label: 'Selection' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
233 |
translateLabel: true |
9045 | 234 |
submenu: |
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
235 |
(Menu |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
236 |
( |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
237 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
238 |
label: 'Browse' |
8362 | 239 |
itemValue: browseSelectedItem |
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
240 |
translateLabel: true |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
241 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
242 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
243 |
nil |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
244 |
nil |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
245 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
246 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
247 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
248 |
label: 'View' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
249 |
translateLabel: true |
9045 | 250 |
submenu: |
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
251 |
(Menu |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
252 |
( |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
253 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
254 |
label: 'Update List' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
255 |
itemValue: updateList |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
256 |
translateLabel: true |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
257 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
258 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
259 |
label: '-' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
260 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
261 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
262 |
label: 'Assertions' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
263 |
itemValue: showAssertions: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
264 |
translateLabel: true |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
265 |
hideMenuOnActivated: false |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
266 |
indication: showAssertions |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
267 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
268 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
269 |
label: 'Halts' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
270 |
itemValue: showHalts: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
271 |
translateLabel: true |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
272 |
hideMenuOnActivated: false |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
273 |
indication: showHalts |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
274 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
275 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
276 |
label: '-' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
277 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
278 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
279 |
label: 'Code Breakpoints' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
280 |
itemValue: showCodeBreakpoints: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
281 |
translateLabel: true |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
282 |
hideMenuOnActivated: false |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
283 |
indication: showCodeBreakpoints |
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 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
286 |
enabled: showCodeBreakpoints |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
287 |
label: ' ' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
288 |
translateLabel: true |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
289 |
submenuChannel: codeBreakpointMenu |
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 |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
292 |
label: '-' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
293 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
294 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
295 |
label: 'Method Breakpoints' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
296 |
itemValue: showMethodBreakpoints: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
297 |
translateLabel: true |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
298 |
hideMenuOnActivated: false |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
299 |
indication: showMethodBreakpoints |
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 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
302 |
nil |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
303 |
nil |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
304 |
) |
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 |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
307 |
label: 'Enable' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
308 |
translateLabel: true |
9045 | 309 |
submenu: |
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
310 |
(Menu |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
311 |
( |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
312 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
313 |
label: 'Assertions' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
314 |
itemValue: enableAssertions: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
315 |
translateLabel: true |
9045 | 316 |
hideMenuOnActivated: false |
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
317 |
indication: enableAssertions |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
318 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
319 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
320 |
label: 'Halts' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
321 |
itemValue: enableHalts: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
322 |
translateLabel: true |
9045 | 323 |
hideMenuOnActivated: false |
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
324 |
indication: enableHalts |
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 |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
327 |
label: '-' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
328 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
329 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
330 |
label: 'Code Breakpoints' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
331 |
translateLabel: true |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
332 |
submenuChannel: enabledCodeBreakpointMenu |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
333 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
334 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
335 |
nil |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
336 |
nil |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
337 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
338 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
339 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
340 |
label: 'Help' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
341 |
translateLabel: true |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
342 |
startGroup: right |
9045 | 343 |
submenu: |
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
344 |
(Menu |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
345 |
( |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
346 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
347 |
label: 'Documentation' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
348 |
itemValue: openDocumentation |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
349 |
translateLabel: true |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
350 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
351 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
352 |
label: '-' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
353 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
354 |
(MenuItem |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
355 |
label: 'About this Application...' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
356 |
itemValue: openAboutThisApplication |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
357 |
translateLabel: true |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
358 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
359 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
360 |
nil |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
361 |
nil |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
362 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
363 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
364 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
365 |
nil |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
366 |
nil |
8233 | 367 |
) |
368 |
! |
|
369 |
||
370 |
toolBarMenu |
|
371 |
"This resource specification was automatically generated |
|
372 |
by the MenuEditor of ST/X." |
|
373 |
||
374 |
"Do not manually edit this!! If it is corrupted, |
|
375 |
the MenuEditor may not be able to read the specification." |
|
376 |
||
377 |
" |
|
378 |
MenuEditor new openOnClass:Tools::BreakpointBrowser andSelector:#toolBarMenu |
|
379 |
(Menu new fromLiteralArrayEncoding:(Tools::BreakpointBrowser toolBarMenu)) startUp |
|
380 |
" |
|
381 |
||
382 |
<resource: #menu> |
|
383 |
||
8241 | 384 |
^ |
8233 | 385 |
#(Menu |
8241 | 386 |
( |
387 |
(MenuItem |
|
388 |
label: 'Update List' |
|
389 |
itemValue: updateList |
|
390 |
translateLabel: true |
|
391 |
isButton: true |
|
392 |
labelImage: (ResourceRetriever XPToolbarIconLibrary reloadIcon) |
|
393 |
) |
|
394 |
(MenuItem |
|
395 |
label: '-' |
|
396 |
) |
|
397 |
(MenuItem |
|
398 |
enabled: hasSelectionHolder |
|
399 |
label: 'Browse Selected Method' |
|
400 |
itemValue: browseSelectedItem |
|
401 |
translateLabel: true |
|
402 |
isButton: true |
|
403 |
labelImage: (ResourceRetriever XPToolbarIconLibrary startNewSystemBrowserIcon) |
|
404 |
) |
|
405 |
) |
|
406 |
nil |
|
407 |
nil |
|
8233 | 408 |
) |
409 |
! ! |
|
410 |
||
411 |
!BreakpointBrowser class methodsFor:'tableColumns specs'! |
|
412 |
||
413 |
tableColumns |
|
414 |
"This resource specification was automatically generated |
|
415 |
by the DataSetBuilder of ST/X." |
|
416 |
||
417 |
"Do not manually edit this!! If it is corrupted, |
|
418 |
the DataSetBuilder may not be able to read the specification." |
|
419 |
||
420 |
" |
|
421 |
DataSetBuilder new openOnClass:Tools::BreakpointBrowser andSelector:#tableColumns |
|
422 |
" |
|
423 |
||
424 |
<resource: #tableColumns> |
|
425 |
||
426 |
^#( |
|
427 |
(DataSetColumnSpec |
|
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
428 |
label: 'Type' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
429 |
activeHelpKey: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
430 |
activeHelpKeyForLabel: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
431 |
labelButtonType: Button |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
432 |
labelActionSelector: sortBy: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
433 |
labelActionArgument: 'type' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
434 |
width: 70 |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
435 |
model: type |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
436 |
canSelect: false |
8233 | 437 |
) |
438 |
(DataSetColumnSpec |
|
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
439 |
label: 'Arg' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
440 |
activeHelpKey: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
441 |
activeHelpKeyForLabel: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
442 |
labelButtonType: Button |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
443 |
labelActionSelector: sortBy: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
444 |
labelActionArgument: 'type' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
445 |
width: 50 |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
446 |
model: arg |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
447 |
canSelect: false |
8233 | 448 |
) |
449 |
(DataSetColumnSpec |
|
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
450 |
label: 'Class' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
451 |
activeHelpKey: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
452 |
activeHelpKeyForLabel: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
453 |
labelButtonType: Button |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
454 |
labelActionSelector: sortBy: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
455 |
labelActionArgument: 'className' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
456 |
width: 150 |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
457 |
model: className |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
458 |
canSelect: false |
8233 | 459 |
) |
460 |
(DataSetColumnSpec |
|
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
461 |
label: 'Method' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
462 |
labelAlignment: left |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
463 |
activeHelpKey: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
464 |
activeHelpKeyForLabel: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
465 |
labelButtonType: Button |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
466 |
labelActionSelector: sortBy: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
467 |
labelActionArgument: 'selector' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
468 |
width: 200 |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
469 |
model: selector |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
470 |
canSelect: false |
8233 | 471 |
) |
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
472 |
"/ (DataSetColumnSpec |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
473 |
"/ label: 'Line' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
474 |
"/ labelAlignment: left |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
475 |
"/ activeHelpKey: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
476 |
"/ activeHelpKeyForLabel: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
477 |
"/ labelButtonType: Button |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
478 |
"/ labelActionSelector: sortBy: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
479 |
"/ labelActionArgument: 'lineNumber' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
480 |
"/ width: 35 |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
481 |
"/ model: lineNumber |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
482 |
"/ canSelect: false |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
483 |
"/ ) |
8233 | 484 |
(DataSetColumnSpec |
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
485 |
label: 'Info' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
486 |
labelAlignment: left |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
487 |
activeHelpKey: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
488 |
activeHelpKeyForLabel: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
489 |
labelButtonType: Button |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
490 |
labelActionSelector: sortBy: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
491 |
labelActionArgument: 'info' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
492 |
model: info |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
493 |
canSelect: false |
8233 | 494 |
) |
495 |
) |
|
496 |
! |
|
497 |
||
498 |
tableColumns_v1 |
|
499 |
"This resource specification was automatically generated |
|
500 |
by the DataSetBuilder of ST/X." |
|
501 |
||
502 |
"Do not manually edit this!! If it is corrupted, |
|
503 |
the DataSetBuilder may not be able to read the specification." |
|
504 |
||
505 |
" |
|
506 |
DataSetBuilder new openOnClass:Tools::BreakpointBrowser andSelector:#tableColumns |
|
507 |
" |
|
508 |
||
509 |
<resource: #tableColumns> |
|
510 |
||
511 |
^#( |
|
512 |
(DataSetColumnSpec |
|
8241 | 513 |
label: 'Enabled' |
514 |
activeHelpKey: '' |
|
515 |
activeHelpKeyForLabel: '' |
|
516 |
labelButtonType: Button |
|
517 |
width: 50 |
|
518 |
editorType: CheckToggle |
|
519 |
rendererType: CheckToggle |
|
520 |
model: enabled |
|
8233 | 521 |
) |
522 |
(DataSetColumnSpec |
|
8241 | 523 |
label: 'Type' |
524 |
activeHelpKey: '' |
|
525 |
activeHelpKeyForLabel: '' |
|
526 |
labelButtonType: Button |
|
527 |
labelActionSelector: sortBy: |
|
528 |
labelActionArgument: 'type' |
|
529 |
width: 60 |
|
530 |
model: type |
|
531 |
canSelect: false |
|
8233 | 532 |
) |
533 |
(DataSetColumnSpec |
|
8241 | 534 |
label: 'Arg' |
535 |
activeHelpKey: '' |
|
536 |
activeHelpKeyForLabel: '' |
|
537 |
labelButtonType: Button |
|
538 |
labelActionSelector: sortBy: |
|
539 |
labelActionArgument: 'type' |
|
540 |
width: 50 |
|
541 |
model: arg |
|
542 |
canSelect: false |
|
8233 | 543 |
) |
544 |
(DataSetColumnSpec |
|
8241 | 545 |
label: 'Class' |
546 |
activeHelpKey: '' |
|
547 |
activeHelpKeyForLabel: '' |
|
548 |
labelButtonType: Button |
|
549 |
labelActionSelector: sortBy: |
|
550 |
labelActionArgument: 'className' |
|
551 |
width: 150 |
|
552 |
model: className |
|
553 |
canSelect: false |
|
8233 | 554 |
) |
555 |
(DataSetColumnSpec |
|
8241 | 556 |
label: 'Method' |
557 |
labelAlignment: left |
|
558 |
activeHelpKey: '' |
|
559 |
activeHelpKeyForLabel: '' |
|
560 |
labelButtonType: Button |
|
561 |
labelActionSelector: sortBy: |
|
562 |
labelActionArgument: 'selector' |
|
563 |
width: 200 |
|
564 |
model: selector |
|
565 |
canSelect: false |
|
8233 | 566 |
) |
567 |
(DataSetColumnSpec |
|
8241 | 568 |
label: 'Line' |
569 |
labelAlignment: left |
|
570 |
activeHelpKey: '' |
|
571 |
activeHelpKeyForLabel: '' |
|
572 |
labelButtonType: Button |
|
573 |
labelActionSelector: sortBy: |
|
574 |
labelActionArgument: 'lineNumber' |
|
575 |
width: 35 |
|
576 |
model: lineNumber |
|
577 |
canSelect: false |
|
8233 | 578 |
) |
579 |
(DataSetColumnSpec |
|
8241 | 580 |
label: 'Info' |
581 |
labelAlignment: left |
|
582 |
activeHelpKey: '' |
|
583 |
activeHelpKeyForLabel: '' |
|
584 |
labelButtonType: Button |
|
585 |
labelActionSelector: sortBy: |
|
586 |
labelActionArgument: 'info' |
|
587 |
model: info |
|
588 |
canSelect: false |
|
8233 | 589 |
) |
590 |
) |
|
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
591 |
! |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
592 |
|
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
593 |
tableColumns_v2 |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
594 |
"This resource specification was automatically generated |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
595 |
by the DataSetBuilder of ST/X." |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
596 |
|
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
597 |
"Do not manually edit this!! If it is corrupted, |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
598 |
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
|
599 |
|
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
600 |
" |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
601 |
DataSetBuilder new openOnClass:Tools::BreakpointBrowser andSelector:#tableColumns |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
602 |
" |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
603 |
|
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
604 |
<resource: #tableColumns> |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
605 |
|
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
606 |
^#( |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
607 |
(DataSetColumnSpec |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
608 |
label: 'Type' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
609 |
activeHelpKey: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
610 |
activeHelpKeyForLabel: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
611 |
labelButtonType: Button |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
612 |
labelActionSelector: sortBy: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
613 |
labelActionArgument: 'type' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
614 |
width: 70 |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
615 |
model: type |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
616 |
canSelect: false |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
617 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
618 |
(DataSetColumnSpec |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
619 |
label: 'Arg' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
620 |
activeHelpKey: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
621 |
activeHelpKeyForLabel: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
622 |
labelButtonType: Button |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
623 |
labelActionSelector: sortBy: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
624 |
labelActionArgument: 'type' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
625 |
width: 50 |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
626 |
model: arg |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
627 |
canSelect: false |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
628 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
629 |
(DataSetColumnSpec |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
630 |
label: 'Class' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
631 |
activeHelpKey: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
632 |
activeHelpKeyForLabel: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
633 |
labelButtonType: Button |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
634 |
labelActionSelector: sortBy: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
635 |
labelActionArgument: 'className' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
636 |
width: 150 |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
637 |
model: className |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
638 |
canSelect: false |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
639 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
640 |
(DataSetColumnSpec |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
641 |
label: 'Method' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
642 |
labelAlignment: left |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
643 |
activeHelpKey: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
644 |
activeHelpKeyForLabel: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
645 |
labelButtonType: Button |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
646 |
labelActionSelector: sortBy: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
647 |
labelActionArgument: 'selector' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
648 |
width: 200 |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
649 |
model: selector |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
650 |
canSelect: false |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
651 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
652 |
(DataSetColumnSpec |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
653 |
label: 'Line' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
654 |
labelAlignment: left |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
655 |
activeHelpKey: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
656 |
activeHelpKeyForLabel: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
657 |
labelButtonType: Button |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
658 |
labelActionSelector: sortBy: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
659 |
labelActionArgument: 'lineNumber' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
660 |
width: 35 |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
661 |
model: lineNumber |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
662 |
canSelect: false |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
663 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
664 |
(DataSetColumnSpec |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
665 |
label: 'Info' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
666 |
labelAlignment: left |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
667 |
activeHelpKey: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
668 |
activeHelpKeyForLabel: '' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
669 |
labelButtonType: Button |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
670 |
labelActionSelector: sortBy: |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
671 |
labelActionArgument: 'info' |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
672 |
model: info |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
673 |
canSelect: false |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
674 |
) |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
675 |
) |
8233 | 676 |
! ! |
677 |
||
678 |
!BreakpointBrowser methodsFor:'accessing'! |
|
679 |
||
8302 | 680 |
aboutThisApplicationText |
681 |
|msg| |
|
682 |
||
683 |
msg := super aboutThisApplicationText. |
|
684 |
msg := msg , '\\Written by Claus Gittinger (cg@exept.de).'. |
|
685 |
^msg withCRs. |
|
686 |
! |
|
687 |
||
8233 | 688 |
breakpointListEntryAtIndex:idx |
689 |
^ shownCopyOfBreakpointList at:idx ifAbsent:nil |
|
690 |
||
691 |
||
692 |
||
693 |
||
694 |
||
695 |
! |
|
696 |
||
697 |
selectedBreakpointListEntry |
|
8398 | 698 |
self selectionIndex isNil ifTrue:[^ nil]. |
8233 | 699 |
^ self breakpointListEntryAtIndex:(self selectionIndex). |
700 |
! |
|
701 |
||
702 |
selectionIndex |
|
703 |
^ self selectionIndexHolder value |
|
704 |
! |
|
705 |
||
706 |
shownCopyOfBreakpointList |
|
707 |
shownCopyOfBreakpointList isNil ifTrue:[ |
|
8241 | 708 |
shownCopyOfBreakpointList := List new |
8233 | 709 |
]. |
710 |
^ shownCopyOfBreakpointList |
|
711 |
||
712 |
"Created: / 18-02-2007 / 12:53:01 / cg" |
|
713 |
! |
|
714 |
||
715 |
updatingLabelShown |
|
716 |
updatingLabelShown isNil ifTrue:[ |
|
8241 | 717 |
updatingLabelShown := true asValue |
8233 | 718 |
]. |
719 |
^ updatingLabelShown |
|
720 |
! ! |
|
721 |
||
722 |
!BreakpointBrowser methodsFor:'aspects'! |
|
723 |
||
724 |
enableAssertions |
|
725 |
^ (Smalltalk at:#IgnoreAssertion ifAbsent:false) not |
|
726 |
! |
|
727 |
||
728 |
enableAssertions:aBoolean |
|
729 |
^ Smalltalk at:#IgnoreAssertion put:aBoolean not |
|
730 |
! |
|
731 |
||
732 |
enableHalts |
|
733 |
^ (Smalltalk at:#IgnoreHalt ifAbsent:false) not |
|
734 |
! |
|
735 |
||
736 |
enableHalts:aBoolean |
|
737 |
^ Smalltalk at:#IgnoreHalt put:aBoolean not |
|
738 |
! |
|
739 |
||
740 |
hasSelectionHolder |
|
741 |
^ BlockValue |
|
8241 | 742 |
with:[:selIndex | selIndex notNil and:[selIndex ~~ 0]] |
743 |
argument:self selectionIndexHolder |
|
8233 | 744 |
! |
745 |
||
8365 | 746 |
infoHolder |
747 |
infoHolder isNil ifTrue:[ |
|
748 |
infoHolder := nil asValue. |
|
749 |
]. |
|
750 |
^ infoHolder |
|
751 |
||
752 |
"Created: / 22-10-2006 / 02:00:41 / cg" |
|
753 |
! |
|
754 |
||
8233 | 755 |
selectionIndexHolder |
756 |
selectionIndexHolder isNil ifTrue:[ |
|
8241 | 757 |
selectionIndexHolder := nil asValue. |
758 |
selectionIndexHolder onChangeSend:#updateCode to:self |
|
8233 | 759 |
]. |
760 |
^ selectionIndexHolder |
|
761 |
||
762 |
"Created: / 22-10-2006 / 02:00:41 / cg" |
|
763 |
! |
|
764 |
||
765 |
showAssertions |
|
766 |
^ showAssertions ? true |
|
767 |
! |
|
768 |
||
769 |
showAssertions:aBoolean |
|
770 |
showAssertions := aBoolean. |
|
771 |
self updateShownBreakpointList |
|
772 |
! |
|
773 |
||
774 |
showCodeBreakpoints |
|
775 |
^ showCodeBreakpoints ? true |
|
776 |
! |
|
777 |
||
778 |
showCodeBreakpoints:aBoolean |
|
779 |
showCodeBreakpoints := aBoolean. |
|
780 |
self updateShownBreakpointList |
|
781 |
! |
|
782 |
||
783 |
showHalts |
|
784 |
^ showHalts ? true |
|
785 |
! |
|
786 |
||
787 |
showHalts:aBoolean |
|
788 |
showHalts := aBoolean. |
|
789 |
self updateShownBreakpointList |
|
790 |
! |
|
791 |
||
792 |
showMethodBreakpoints |
|
793 |
^ showMethodBreakpoints ? true |
|
794 |
! |
|
795 |
||
796 |
showMethodBreakpoints:aBoolean |
|
797 |
showMethodBreakpoints := aBoolean. |
|
798 |
self updateShownBreakpointList |
|
799 |
! ! |
|
800 |
||
801 |
!BreakpointBrowser methodsFor:'change & update'! |
|
802 |
||
803 |
delayedUpdate:something with:aParameter from:changedObject |
|
804 |
"/ changedObject == toDoList ifTrue:[ |
|
805 |
"/ self updateShownToDoList. |
|
806 |
"/ ^ self |
|
807 |
"/ ]. |
|
808 |
! |
|
809 |
||
810 |
filter |
|
811 |
|newList| |
|
812 |
||
813 |
newList := breakpointList. |
|
814 |
self showHalts ifFalse:[ |
|
8241 | 815 |
newList := newList reject:[:entry | entry isHalt]. |
8233 | 816 |
]. |
817 |
self showCodeBreakpoints ifFalse:[ |
|
8241 | 818 |
newList := newList reject:[:entry | entry isCodeBreakpoint]. |
8233 | 819 |
] ifTrue:[ |
8241 | 820 |
newList := newList reject:[:entry | |
821 |
|flag| |
|
8233 | 822 |
|
8241 | 823 |
flag := (showCodeBreakpointsFor at:(entry arg ? '<nil>') ifAbsentPut:[true asValue]) value. |
824 |
entry isCodeBreakpoint |
|
825 |
and:[ flag not ] |
|
826 |
]. |
|
8233 | 827 |
]. |
828 |
self showMethodBreakpoints ifFalse:[ |
|
8241 | 829 |
newList := newList reject:[:entry | entry isMethodBreakpoint]. |
8233 | 830 |
]. |
831 |
self showAssertions ifFalse:[ |
|
8241 | 832 |
newList := newList reject:[:entry | entry isAssertion]. |
8233 | 833 |
]. |
834 |
shownCopyOfBreakpointList contents:newList. |
|
835 |
! |
|
836 |
||
8365 | 837 |
messageSelectors |
838 |
^ (self messagesAndTypes collect:[:each | each first]) asSet. |
|
839 |
! |
|
840 |
||
841 |
messagesAndTypes |
|
842 |
^ #( |
|
843 |
(#breakPoint: #breakPoint) |
|
844 |
(#breakPoint:info: #breakPoint) |
|
845 |
(#debuggingCodeFor:is: #debugCode) |
|
846 |
(#halt #halt) |
|
847 |
(#halt: #halt) |
|
848 |
(#assert: #assertion) |
|
849 |
(#assert:message: #assertion) |
|
850 |
). |
|
851 |
! |
|
852 |
||
8233 | 853 |
update:something with:aParameter from:changedObject |
8365 | 854 |
changedObject == Smalltalk ifTrue:[ |
855 |
something == #methodInClass ifTrue:[ |
|
856 |
self updateForClass:(aParameter first) selector:(aParameter second). |
|
857 |
^ self. |
|
858 |
]. |
|
859 |
something == #methodInClassRemoved ifTrue:[ |
|
860 |
self updateForClass:(aParameter first) selector:(aParameter second). |
|
861 |
^ self. |
|
862 |
]. |
|
863 |
]. |
|
864 |
||
8233 | 865 |
^ super update:something with:aParameter from:changedObject |
866 |
||
867 |
"Created: / 18-02-2007 / 12:54:32 / cg" |
|
8365 | 868 |
|
869 |
||
870 |
||
871 |
||
872 |
||
873 |
||
874 |
||
875 |
||
876 |
||
877 |
||
878 |
||
8233 | 879 |
! |
880 |
||
881 |
updateBreakpointList |
|
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
882 |
|newShowCodeBreakpointsFor messages messageSelectors update | |
8233 | 883 |
|
884 |
breakpointList removeAll. |
|
885 |
newShowCodeBreakpointsFor := Dictionary new. |
|
886 |
||
8365 | 887 |
messages := self messagesAndTypes. |
888 |
messageSelectors := self messageSelectors. |
|
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
889 |
|
8233 | 890 |
update := [:cls :mthd :sel | |
8365 | 891 |
self |
892 |
withBreakpointListEntriesFor:mthd class:cls selector:sel |
|
893 |
messages:messages |
|
894 |
messageSelectors:messageSelectors |
|
895 |
rememberingCodeBreakpointTypesIn:newShowCodeBreakpointsFor |
|
896 |
do:[:newEntry | breakpointList add:newEntry ]. |
|
8233 | 897 |
]. |
898 |
||
899 |
Smalltalk allClassesDo:[:cls | |
|
8302 | 900 |
cls selectorsAndMethodsDo:[:sel :mthd | |
901 |
update value:cls value:mthd value:sel |
|
902 |
]. |
|
903 |
cls class selectorsAndMethodsDo:[:sel :mthd | |
|
904 |
update value:cls class value:mthd value:sel |
|
905 |
]. |
|
8233 | 906 |
]. |
907 |
||
908 |
showCodeBreakpointsFor := newShowCodeBreakpointsFor. |
|
909 |
! |
|
910 |
||
911 |
updateCode |
|
8365 | 912 |
|entry method class| |
8233 | 913 |
|
914 |
entry := self selectedBreakpointListEntry. |
|
915 |
entry isNil ifTrue:[ |
|
8365 | 916 |
codeView contents:nil. |
917 |
^ self |
|
8233 | 918 |
]. |
919 |
method := entry method. |
|
920 |
method isNil ifTrue:[ |
|
8365 | 921 |
codeView contents:'OOPS - no source found'. |
8241 | 922 |
] ifFalse:[ |
8365 | 923 |
codeView contents:(method source). |
924 |
entry lineNumber notNil ifTrue:[ |
|
925 |
codeView cursorLine:entry lineNumber col:1. |
|
926 |
codeView selectLine:entry lineNumber. |
|
927 |
]. |
|
928 |
codeView |
|
929 |
acceptAction:[:newText | |
|
930 |
class := method mclass ? (Smalltalk classNamed:entry className). |
|
931 |
class |
|
932 |
compilerClass |
|
933 |
compile:newText asString |
|
934 |
forClass:class |
|
935 |
inCategory:method category |
|
936 |
notifying:codeView. |
|
937 |
] |
|
938 |
]. |
|
939 |
! |
|
940 |
||
941 |
updateEntry:entry |
|
942 |
"after a change, update the list entry. |
|
943 |
(or remove it if required)" |
|
944 |
||
945 |
|mthd cls sel newShowCodeBreakpointsFor any| |
|
946 |
||
947 |
newShowCodeBreakpointsFor := Dictionary new. |
|
948 |
||
949 |
breakpointList remove:entry ifAbsent:[]. |
|
950 |
||
951 |
mthd := entry method. |
|
952 |
cls := Smalltalk classNamed:entry className. |
|
953 |
sel := entry selector. |
|
954 |
||
955 |
any := false. |
|
956 |
self |
|
957 |
withBreakpointListEntriesFor:mthd class:cls selector:sel |
|
958 |
messages:(self messagesAndTypes) |
|
959 |
messageSelectors:(self messageSelectors) |
|
960 |
rememberingCodeBreakpointTypesIn:newShowCodeBreakpointsFor |
|
961 |
do:[:newEntry | |
|
962 |
any := true. |
|
963 |
breakpointList add:newEntry. |
|
964 |
]. |
|
965 |
! |
|
966 |
||
967 |
updateForClass:aClass selector:selector |
|
968 |
|selectionIndexBefore mthd affectedEntries newShowCodeBreakpointsFor| |
|
969 |
||
970 |
selectionIndexBefore := selectionIndexHolder value. |
|
971 |
||
972 |
affectedEntries := breakpointList select:[:entry | |
|
973 |
entry selector = selector |
|
974 |
and:[ entry className = aClass name ] |
|
975 |
]. |
|
976 |
affectedEntries do:[:eachEntry | |
|
977 |
breakpointList remove:eachEntry ifAbsent:[]. |
|
8233 | 978 |
]. |
979 |
||
8365 | 980 |
mthd := aClass compiledMethodAt:selector. |
981 |
mthd notNil ifTrue:[ |
|
982 |
newShowCodeBreakpointsFor := Dictionary new. |
|
8233 | 983 |
|
8365 | 984 |
self |
985 |
withBreakpointListEntriesFor:mthd class:aClass selector:selector |
|
986 |
messages:(self messagesAndTypes) |
|
987 |
messageSelectors:(self messageSelectors) |
|
988 |
rememberingCodeBreakpointTypesIn:newShowCodeBreakpointsFor |
|
989 |
do:[:newEntry | |
|
990 |
breakpointList add:newEntry. |
|
991 |
]. |
|
992 |
]. |
|
8233 | 993 |
|
8365 | 994 |
self updateShownBreakpointList. |
995 |
self selectionIndexHolder value:selectionIndexBefore. |
|
996 |
self updateCode |
|
8233 | 997 |
! |
998 |
||
999 |
updateShownBreakpointList |
|
1000 |
||
1001 |
self shownCopyOfBreakpointList contents:breakpointList. |
|
1002 |
self filter. |
|
1003 |
self resort. |
|
1004 |
||
1005 |
||
8365 | 1006 |
! |
1007 |
||
1008 |
withBreakpointListEntriesFor:mthd class:cls selector:sel |
|
1009 |
messages:messages |
|
1010 |
messageSelectors:messageSelectors |
|
1011 |
rememberingCodeBreakpointTypesIn:newShowCodeBreakpointsFor |
|
1012 |
do:aBlock |
|
1013 |
||
1014 |
|entry type messagesSent| |
|
1015 |
||
1016 |
mthd isWrapped ifTrue:[ |
|
1017 |
mthd isBreakpointed ifTrue:[ |
|
1018 |
type := #trap |
|
1019 |
] ifFalse:[ |
|
1020 |
mthd isTraced ifTrue:[ |
|
1021 |
type := #trace |
|
1022 |
] ifFalse:[ |
|
1023 |
type := #probe |
|
1024 |
]. |
|
1025 |
]. |
|
1026 |
entry := BreakpointListEntry new. |
|
1027 |
entry |
|
1028 |
type:#wrap |
|
1029 |
arg:type |
|
1030 |
className:cls name |
|
1031 |
selector:sel |
|
1032 |
lineNumber:nil |
|
1033 |
info:nil |
|
1034 |
enabled:true. |
|
1035 |
aBlock value:entry |
|
1036 |
]. |
|
1037 |
||
1038 |
(mthd literalsDetect:[:lit |messageSelectors includes:lit] ifNone:nil) notNil ifTrue:[ |
|
1039 |
messagesSent isNil ifTrue:[ |
|
1040 |
messagesSent := mthd messagesSent. |
|
1041 |
]. |
|
1042 |
||
1043 |
messages pairsDo:[:bpSel :type| |
|
1044 |
|tree extractor| |
|
1045 |
||
1046 |
"/ used to be (mthd sends:bpSel); |
|
1047 |
"/ however, the sends requires an expensive parse of the methods source |
|
1048 |
"/ to fetch all message selectors. This should be done only once, |
|
1049 |
"/ and not for every selector we look for) |
|
1050 |
(messagesSent includesIdentical:bpSel) ifTrue:[ |
|
1051 |
tree := mthd parseTree. |
|
1052 |
tree isNil ifTrue:[ |
|
1053 |
entry := BreakpointListEntry new. |
|
1054 |
entry |
|
1055 |
type:type |
|
1056 |
arg:nil |
|
1057 |
className:cls name |
|
1058 |
selector:sel |
|
1059 |
lineNumber:nil |
|
1060 |
info:nil |
|
1061 |
enabled:true. |
|
1062 |
aBlock value:entry |
|
1063 |
] ifFalse:[ |
|
1064 |
extractor := MessageArgumentExtractor new. |
|
1065 |
extractor selectorToSearch:bpSel. |
|
1066 |
extractor callBack:[:lineNo :argument :infoMessage | |
|
1067 |
argument notNil ifTrue:[ |
|
1068 |
newShowCodeBreakpointsFor |
|
1069 |
at:argument |
|
1070 |
put:(showCodeBreakpointsFor |
|
1071 |
at:argument |
|
1072 |
ifAbsent:[true asValue]) |
|
1073 |
]. |
|
1074 |
entry := BreakpointListEntry new. |
|
1075 |
entry |
|
1076 |
type:type |
|
1077 |
arg:argument |
|
1078 |
className:cls name |
|
1079 |
selector:sel |
|
1080 |
lineNumber:lineNo |
|
1081 |
info:infoMessage |
|
1082 |
enabled:true. |
|
1083 |
aBlock value:entry |
|
1084 |
]. |
|
1085 |
tree acceptVisitor:extractor. |
|
1086 |
] |
|
1087 |
]. |
|
1088 |
]. |
|
1089 |
]. |
|
8233 | 1090 |
! ! |
1091 |
||
1092 |
!BreakpointBrowser methodsFor:'initialization & release'! |
|
1093 |
||
1094 |
initialize |
|
1095 |
super initialize. |
|
1096 |
||
1097 |
showCodeBreakpointsFor := Dictionary new. |
|
1098 |
breakpointList := List new. |
|
1099 |
||
1100 |
currentSortColumn := #type. |
|
1101 |
currentSortIsReverse := false. |
|
8365 | 1102 |
|
1103 |
Smalltalk addDependent:self. |
|
8233 | 1104 |
! |
1105 |
||
1106 |
postBuildCodeView:aView |
|
1107 |
codeView := aView |
|
1108 |
! |
|
1109 |
||
1110 |
postOpenWith:aBuilder |
|
1111 |
super postOpenWith:aBuilder. |
|
1112 |
||
1113 |
self enqueueMessage:#updateList for:self arguments:#(). |
|
1114 |
||
1115 |
"Modified: / 18-02-2007 / 12:55:57 / cg" |
|
8365 | 1116 |
! |
1117 |
||
1118 |
release |
|
8767 | 1119 |
|p| |
1120 |
||
1121 |
(p := updateProcess) notNil ifTrue:[ |
|
1122 |
updateProcess := nil. |
|
1123 |
p terminate |
|
1124 |
]. |
|
8365 | 1125 |
Smalltalk removeDependent:self. |
1126 |
super release |
|
8233 | 1127 |
! ! |
1128 |
||
1129 |
!BreakpointBrowser methodsFor:'menu actions'! |
|
1130 |
||
1131 |
openDocumentation |
|
1132 |
HTMLDocumentView openFullOnDocumentationFile:'tools/misc/TOP.html#BREAKPOINTLIST'. |
|
1133 |
||
1134 |
"/ add application-specific help files under the 'doc/online/<language>/help/appName' |
|
1135 |
"/ directory, and open a viewer with: |
|
1136 |
"/ HTMLDocumentView openFullOnDocumentationFile:'help/<MyApplication>/TOP.html'. |
|
1137 |
! ! |
|
1138 |
||
1139 |
!BreakpointBrowser methodsFor:'menu actions-item'! |
|
1140 |
||
1141 |
browseItem |
|
8362 | 1142 |
self withWaitCursorDo:[ |
1143 |
(self breakpointListEntryAtIndex:self selectionIndexHolder value) browse |
|
1144 |
]. |
|
8233 | 1145 |
! |
1146 |
||
1147 |
removeItem |
|
1148 |
breakpointList remove:(self selectedBreakpointListEntry) |
|
1149 |
||
1150 |
"Created: / 22-10-2006 / 10:45:52 / cg" |
|
1151 |
"Modified: / 18-02-2007 / 12:57:58 / cg" |
|
1152 |
! ! |
|
1153 |
||
1154 |
!BreakpointBrowser methodsFor:'menus-dynamic'! |
|
1155 |
||
1156 |
codeBreakpointMenu |
|
1157 |
<resource: #programMenu > |
|
1158 |
||
1159 |
|breakpointArgs menu| |
|
1160 |
||
1161 |
breakpointArgs := Set new. |
|
8241 | 1162 |
breakpointList |
8859 | 1163 |
select:[:entry | entry arg notNil] |
1164 |
thenDo:[:entry | breakpointArgs add:entry arg]. |
|
8233 | 1165 |
(breakpointList contains:[:entry | entry arg isNil]) ifTrue:[ |
8859 | 1166 |
breakpointArgs add:'<nil>'. |
8233 | 1167 |
]. |
1168 |
breakpointArgs := breakpointArgs asSortedCollection. |
|
1169 |
||
1170 |
menu := Menu new. |
|
8859 | 1171 |
menu addItem:( |
1172 |
MenuItem new |
|
1173 |
label:'Toggle All'; |
|
1174 |
translateLabel:true; |
|
1175 |
hideMenuOnActivated:false; |
|
1176 |
value:[ |
|
1177 |
showCodeBreakpointsFor do:[:each | |
|
1178 |
each value:(each value not) |
|
1179 |
] |
|
1180 |
]). |
|
1181 |
menu addSeparator. |
|
8233 | 1182 |
|
8859 | 1183 |
breakpointArgs do:[:arg| |
1184 |
| menuItem | |
|
1185 |
||
1186 |
menuItem := MenuItem new. |
|
1187 |
menuItem label:arg. |
|
1188 |
menuItem translateLabel:false. |
|
1189 |
menuItem indication:(showCodeBreakpointsFor at:arg ifAbsentPut:[true asValue]). |
|
1190 |
menuItem hideMenuOnActivated:false. |
|
1191 |
menuItem value:[:onOff | |
|
1192 |
(showCodeBreakpointsFor at:arg ifAbsentPut:[true asValue]) value:onOff. |
|
1193 |
self updateShownBreakpointList |
|
1194 |
]. |
|
1195 |
menu addItem:menuItem. |
|
8233 | 1196 |
]. |
1197 |
menu findGuiResourcesIn:self. |
|
1198 |
^ menu |
|
1199 |
||
1200 |
"Modified: / 27-03-2007 / 10:54:29 / cg" |
|
1201 |
! |
|
1202 |
||
1203 |
enabledCodeBreakpointMenu |
|
1204 |
<resource: #programMenu > |
|
1205 |
||
1206 |
|breakpointArgs menu enabledCodeBreakpointHolders| |
|
1207 |
||
1208 |
enabledCodeBreakpointHolders := Dictionary new. |
|
1209 |
||
1210 |
breakpointArgs := Set new. |
|
8241 | 1211 |
breakpointList |
8858
a03067b9d96c
comment/format in: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
8767
diff
changeset
|
1212 |
select:[:entry | entry arg notNil] |
a03067b9d96c
comment/format in: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
8767
diff
changeset
|
1213 |
thenDo:[:entry | breakpointArgs add:entry arg]. |
8859 | 1214 |
|
8233 | 1215 |
(breakpointList contains:[:entry | entry arg isNil]) ifTrue:[ |
8858
a03067b9d96c
comment/format in: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
8767
diff
changeset
|
1216 |
breakpointArgs add:'<nil>'. |
8233 | 1217 |
]. |
1218 |
breakpointArgs := breakpointArgs asSortedCollection. |
|
1219 |
||
1220 |
menu := Menu new. |
|
8859 | 1221 |
menu addItem:( |
1222 |
MenuItem new |
|
1223 |
label:'Toggle All'; |
|
1224 |
translateLabel:true; |
|
1225 |
hideMenuOnActivated:false; |
|
1226 |
value:[ |
|
1227 |
enabledCodeBreakpointHolders do:[:each | |
|
1228 |
each value:(each value not) |
|
1229 |
] |
|
1230 |
]). |
|
1231 |
menu addSeparator. |
|
1232 |
||
8241 | 1233 |
breakpointArgs do:[:arg| |
8858
a03067b9d96c
comment/format in: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
8767
diff
changeset
|
1234 |
| menuItem | |
8233 | 1235 |
|
8858
a03067b9d96c
comment/format in: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
8767
diff
changeset
|
1236 |
menuItem := MenuItem new. |
a03067b9d96c
comment/format in: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
8767
diff
changeset
|
1237 |
menuItem label:arg. |
a03067b9d96c
comment/format in: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
8767
diff
changeset
|
1238 |
menuItem translateLabel:false. |
a03067b9d96c
comment/format in: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
8767
diff
changeset
|
1239 |
menuItem indication:(enabledCodeBreakpointHolders at:arg ifAbsentPut:[ (Object isBreakPointEnabled:arg) asValue ]). |
a03067b9d96c
comment/format in: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
8767
diff
changeset
|
1240 |
menuItem hideMenuOnActivated:false. |
a03067b9d96c
comment/format in: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
8767
diff
changeset
|
1241 |
menuItem value:[:onOff | |
a03067b9d96c
comment/format in: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
8767
diff
changeset
|
1242 |
(enabledCodeBreakpointHolders at:arg ifAbsentPut:[(Object isBreakPointEnabled:arg) asValue]) value:onOff. |
a03067b9d96c
comment/format in: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
8767
diff
changeset
|
1243 |
onOff ifFalse:[ |
a03067b9d96c
comment/format in: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
8767
diff
changeset
|
1244 |
Object disableBreakPoint:arg |
a03067b9d96c
comment/format in: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
8767
diff
changeset
|
1245 |
] ifTrue:[ |
a03067b9d96c
comment/format in: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
8767
diff
changeset
|
1246 |
Object enableBreakPoint:arg |
a03067b9d96c
comment/format in: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
8767
diff
changeset
|
1247 |
]. |
a03067b9d96c
comment/format in: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
8767
diff
changeset
|
1248 |
]. |
a03067b9d96c
comment/format in: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
8767
diff
changeset
|
1249 |
menu addItem:menuItem. |
8233 | 1250 |
]. |
1251 |
menu findGuiResourcesIn:self. |
|
1252 |
^ menu |
|
1253 |
||
1254 |
"Modified: / 27-03-2007 / 10:54:29 / cg" |
|
1255 |
! ! |
|
1256 |
||
1257 |
!BreakpointBrowser methodsFor:'user actions'! |
|
1258 |
||
1259 |
browseSelectedItem |
|
8362 | 1260 |
self withWaitCursorDo:[ |
1261 |
(self selectedBreakpointListEntry) browse |
|
1262 |
]. |
|
8233 | 1263 |
|
1264 |
"Created: / 22-10-2006 / 01:49:13 / cg" |
|
1265 |
"Modified: / 18-02-2007 / 12:56:30 / cg" |
|
1266 |
! |
|
1267 |
||
1268 |
itemDoubleClicked:itemIndex |
|
1269 |
self browseSelectedItem |
|
1270 |
||
1271 |
"Created: / 22-10-2006 / 01:49:13 / cg" |
|
1272 |
"Modified: / 18-02-2007 / 12:56:30 / cg" |
|
1273 |
! |
|
1274 |
||
1275 |
resort |
|
1276 |
|sortBlock sortBlock1| |
|
1277 |
||
1278 |
currentSortColumn isNil ifTrue:[^ self ]. |
|
1279 |
||
1280 |
sortBlock := sortBlock1 := [:a :b | |
|
8241 | 1281 |
|vA vB| |
8233 | 1282 |
|
8241 | 1283 |
vA := (a perform:currentSortColumn). |
1284 |
vB := (b perform:currentSortColumn). |
|
1285 |
vA = vB ifTrue:[ |
|
1286 |
currentSortColumn == #type ifTrue:[ |
|
1287 |
vA := a arg. |
|
1288 |
vB := b arg. |
|
1289 |
vA = vB ifTrue:[ |
|
1290 |
vA := a className. |
|
1291 |
vB := b className. |
|
1292 |
vA = vB ifTrue:[ |
|
1293 |
vA := a selector. |
|
1294 |
vB := b selector. |
|
1295 |
vA = vB ifTrue:[ |
|
1296 |
vA := a lineNumber. |
|
1297 |
vB := b lineNumber. |
|
1298 |
] |
|
1299 |
] |
|
1300 |
] |
|
1301 |
] |
|
1302 |
]. |
|
1303 |
(vA ? '') < (vB ? '') |
|
1304 |
]. |
|
8233 | 1305 |
|
1306 |
currentSortIsReverse ifTrue:[ |
|
8241 | 1307 |
sortBlock := [:a :b | (sortBlock1 value:a value:b) not ]. |
8233 | 1308 |
]. |
1309 |
||
1310 |
"/ temporary hack - should make a copy of the real list |
|
1311 |
self shownCopyOfBreakpointList sort:sortBlock |
|
1312 |
||
1313 |
"Created: / 25-10-2006 / 01:01:26 / cg" |
|
1314 |
"Modified: / 18-02-2007 / 13:02:19 / cg" |
|
1315 |
! |
|
1316 |
||
1317 |
sortBy:instanceName |
|
1318 |
self sortBy:instanceName withReverse:true |
|
1319 |
||
1320 |
"Created: / 25-10-2006 / 00:53:55 / cg" |
|
1321 |
! |
|
1322 |
||
1323 |
sortBy:instanceName withReverse:aBoolean |
|
1324 |
|aSymbol| |
|
1325 |
||
1326 |
aSymbol := instanceName asSymbol. |
|
1327 |
||
1328 |
currentSortColumn isNil ifTrue:[ |
|
8241 | 1329 |
currentSortColumn := aSymbol. |
1330 |
currentSortIsReverse := false. |
|
8233 | 1331 |
] ifFalse:[ |
8241 | 1332 |
currentSortColumn = aSymbol ifTrue:[ |
1333 |
"/ same column like before - change sort order ifReverse is true |
|
1334 |
aBoolean ifTrue:[ |
|
1335 |
currentSortIsReverse := currentSortIsReverse not. |
|
1336 |
]. |
|
1337 |
] ifFalse:[ |
|
1338 |
"/ another column - remark column |
|
1339 |
currentSortColumn := aSymbol. |
|
1340 |
] |
|
8233 | 1341 |
]. |
1342 |
self resort. |
|
1343 |
||
1344 |
"Created: / 25-10-2006 / 00:54:59 / cg" |
|
1345 |
! |
|
1346 |
||
1347 |
updateList |
|
8767 | 1348 |
updateProcess notNil ifTrue:[^ self ]. |
1349 |
||
8233 | 1350 |
self updatingLabelShown value:true. |
1351 |
"/ cg: mhmh why is this needed ???? |
|
1352 |
Delay waitForSeconds:0.1. |
|
1353 |
self windowGroup repairDamage. |
|
1354 |
||
8767 | 1355 |
updateProcess := |
1356 |
[ |
|
1357 |
[ |
|
1358 |
ActivityNotification handle:[:ex | |
|
1359 |
self infoHolder value:ex errorString. |
|
1360 |
self windowGroup processExposeEvents. |
|
1361 |
ex proceed. |
|
1362 |
] do:[ |
|
1363 |
self updateBreakpointList. |
|
1364 |
self updateShownBreakpointList. |
|
1365 |
] |
|
1366 |
] ensure:[ |
|
1367 |
updateProcess := nil. |
|
1368 |
self updatingLabelShown value:false. |
|
1369 |
]. |
|
1370 |
] newProcess. |
|
1371 |
updateProcess resume. |
|
8233 | 1372 |
! ! |
1373 |
||
1374 |
!BreakpointBrowser::BreakpointListEntry methodsFor:'accessing'! |
|
1375 |
||
1376 |
arg |
|
1377 |
^ arg |
|
1378 |
! |
|
1379 |
||
1380 |
className |
|
1381 |
^ className |
|
1382 |
! |
|
1383 |
||
1384 |
enabled |
|
1385 |
^ enabled |
|
1386 |
! |
|
1387 |
||
1388 |
info |
|
1389 |
^ info |
|
1390 |
! |
|
1391 |
||
1392 |
lineNumber |
|
1393 |
^ lineNumber |
|
1394 |
! |
|
1395 |
||
1396 |
selector |
|
1397 |
^ selector |
|
1398 |
! |
|
1399 |
||
1400 |
type |
|
1401 |
^ type |
|
1402 |
! |
|
1403 |
||
8241 | 1404 |
type:typeArg arg:argArg className:classNameArg selector:selectorArg lineNumber:lineNumberArg info:infoArg enabled:enabledArg |
8233 | 1405 |
type := typeArg. |
1406 |
arg := argArg. |
|
1407 |
className := classNameArg. |
|
1408 |
selector := selectorArg. |
|
1409 |
lineNumber := lineNumberArg. |
|
1410 |
info := infoArg. |
|
1411 |
enabled := enabledArg. |
|
1412 |
! ! |
|
1413 |
||
1414 |
!BreakpointBrowser::BreakpointListEntry methodsFor:'actions'! |
|
1415 |
||
1416 |
browse |
|
1417 |
|browser| |
|
1418 |
||
1419 |
browser := UserPreferences systemBrowserClass |
|
8241 | 1420 |
openInClass:(Smalltalk classNamed:className) selector:selector. |
8233 | 1421 |
|
1422 |
lineNumber notNil ifTrue:[ |
|
8241 | 1423 |
browser codeView cursorLine:lineNumber col:1. |
1424 |
browser codeView selectLine:lineNumber. |
|
8233 | 1425 |
]. |
1426 |
||
1427 |
! |
|
1428 |
||
1429 |
method |
|
1430 |
^ (Smalltalk classNamed:className) compiledMethodAt:selector. |
|
1431 |
! ! |
|
1432 |
||
1433 |
!BreakpointBrowser::BreakpointListEntry methodsFor:'testing'! |
|
1434 |
||
1435 |
isAssertion |
|
1436 |
^ type == #assertion |
|
1437 |
! |
|
1438 |
||
1439 |
isCodeBreakpoint |
|
8365 | 1440 |
^ type == #breakPoint |
8233 | 1441 |
! |
1442 |
||
1443 |
isHalt |
|
1444 |
^ type == #halt |
|
1445 |
! |
|
1446 |
||
1447 |
isMethodBreakpoint |
|
1448 |
^ type == #wrap |
|
1449 |
! ! |
|
1450 |
||
1451 |
!BreakpointBrowser::MessageArgumentExtractor methodsFor:'accessing'! |
|
1452 |
||
1453 |
callBack:something |
|
1454 |
callBack := something. |
|
1455 |
! |
|
1456 |
||
1457 |
selectorToSearch:something |
|
1458 |
selectorToSearch := something. |
|
1459 |
! ! |
|
1460 |
||
1461 |
!BreakpointBrowser::MessageArgumentExtractor methodsFor:'visiting'! |
|
1462 |
||
1463 |
acceptMessageNode: aMessageNode |
|
1464 |
|arg1Node arg1 arg2Node arg2 argument infoMessage| |
|
1465 |
||
1466 |
aMessageNode selector == selectorToSearch ifTrue:[ |
|
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1467 |
aMessageNode arguments size > 0 ifTrue:[ |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1468 |
arg1Node := aMessageNode arguments first. |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1469 |
arg1Node isLiteral ifTrue:[ |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1470 |
arg1 := arg1Node value. |
8365 | 1471 |
] ifFalse:[ |
1472 |
arg1 := '(...)'. |
|
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1473 |
]. |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1474 |
aMessageNode arguments size > 1 ifTrue:[ |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1475 |
arg2Node := aMessageNode arguments second. |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1476 |
arg2Node isLiteral ifTrue:[ |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1477 |
arg2 := arg2Node value. |
8365 | 1478 |
] ifFalse:[ |
1479 |
arg2 := '(...)'. |
|
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1480 |
]. |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1481 |
]. |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1482 |
]. |
8233 | 1483 |
|
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1484 |
selectorToSearch == #halt: ifTrue:[ |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1485 |
infoMessage := arg1. |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1486 |
]. |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1487 |
selectorToSearch == #breakPoint: ifTrue:[ |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1488 |
argument := arg1. |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1489 |
]. |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1490 |
selectorToSearch == #breakPoint:info: ifTrue:[ |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1491 |
argument := arg1. |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1492 |
infoMessage := arg2. |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1493 |
]. |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1494 |
selectorToSearch == #debuggingCodeFor:is: ifTrue:[ |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1495 |
argument := arg1. |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1496 |
]. |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1497 |
selectorToSearch == #assert: ifTrue:[ |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1498 |
]. |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1499 |
selectorToSearch == #assert:message: ifTrue:[ |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1500 |
infoMessage := arg2. |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1501 |
]. |
8233 | 1502 |
|
8354
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1503 |
callBack |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1504 |
value:aMessageNode firstLineNumber |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1505 |
value:argument |
9791dde64bd7
also show&handle debuggingCodeFor:is
Claus Gittinger <cg@exept.de>
parents:
8302
diff
changeset
|
1506 |
value:infoMessage |
8233 | 1507 |
]. |
1508 |
super acceptMessageNode: aMessageNode |
|
1509 |
! ! |
|
1510 |
||
1511 |
!BreakpointBrowser class methodsFor:'documentation'! |
|
1512 |
||
1513 |
version |
|
9045 | 1514 |
^ '$Header: /cvs/stx/stx/libtool/Tools__BreakpointBrowser.st,v 1.15 2009-10-22 13:58:02 cg Exp $' |
8858
a03067b9d96c
comment/format in: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
8767
diff
changeset
|
1515 |
! |
a03067b9d96c
comment/format in: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
8767
diff
changeset
|
1516 |
|
a03067b9d96c
comment/format in: #enabledCodeBreakpointMenu
Claus Gittinger <cg@exept.de>
parents:
8767
diff
changeset
|
1517 |
version_CVS |
9045 | 1518 |
^ '$Header: /cvs/stx/stx/libtool/Tools__BreakpointBrowser.st,v 1.15 2009-10-22 13:58:02 cg Exp $' |
8233 | 1519 |
! ! |