0
|
1 |
"
|
5
|
2 |
COPYRIGHT (c) 1989 by Claus Gittinger
|
45
|
3 |
All Rights Reserved
|
0
|
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 |
"
|
|
12 |
|
73
|
13 |
'From Smalltalk/X, Version:2.10.4 on 28-feb-1995 at 2:12:00 am'!
|
|
14 |
|
93
|
15 |
SimpleView subclass:#InspectorView
|
|
16 |
instanceVariableNames:'listView workspace inspectedObject selectedLine nShown
|
|
17 |
hasMore monitorProcess'
|
73
|
18 |
classVariableNames:'DefaultIcon'
|
|
19 |
poolDictionaries:''
|
|
20 |
category:'Interface-Inspector'
|
0
|
21 |
!
|
|
22 |
|
|
23 |
InspectorView comment:'
|
5
|
24 |
COPYRIGHT (c) 1989 by Claus Gittinger
|
45
|
25 |
All Rights Reserved
|
0
|
26 |
|
98
|
27 |
$Header: /cvs/stx/stx/libtool/InspectorView.st,v 1.21 1995-05-09 01:59:25 claus Exp $
|
29
|
28 |
'!
|
|
29 |
|
|
30 |
!InspectorView class methodsFor:'documentation'!
|
|
31 |
|
|
32 |
copyright
|
|
33 |
"
|
|
34 |
COPYRIGHT (c) 1989 by Claus Gittinger
|
45
|
35 |
All Rights Reserved
|
29
|
36 |
|
|
37 |
This software is furnished under a license and may be used
|
|
38 |
only in accordance with the terms of that license and with the
|
|
39 |
inclusion of the above copyright notice. This software may not
|
|
40 |
be provided or otherwise made available to, or used by, any
|
|
41 |
other person. No title to or ownership of the software is
|
|
42 |
hereby transferred.
|
|
43 |
"
|
|
44 |
!
|
|
45 |
|
|
46 |
version
|
|
47 |
"
|
98
|
48 |
$Header: /cvs/stx/stx/libtool/InspectorView.st,v 1.21 1995-05-09 01:59:25 claus Exp $
|
29
|
49 |
"
|
|
50 |
!
|
0
|
51 |
|
29
|
52 |
documentation
|
|
53 |
"
|
|
54 |
This class implements an graphical inspector.
|
|
55 |
Inspecting can be done on an object -
|
|
56 |
(where its instvarnames/values are inspected)
|
|
57 |
or a list of objects (where a namearray/valuesarray is inspected).
|
|
58 |
The later is used by the debugger to inspect method variables/args.
|
|
59 |
|
|
60 |
The system calls the inspector through the global variable 'Inspector'
|
|
61 |
which is bound to this class (but could be redefined - it actually is
|
|
62 |
set to MiniInspector in a smalltalk without graphical user interface).
|
0
|
63 |
|
29
|
64 |
Also notice, that there are two methods to inspect an object:
|
|
65 |
sending #basicInspect to any object, will open this kind of inspector on
|
|
66 |
it (showing instance variables which are physically present).
|
|
67 |
|
|
68 |
Sending it #inspect, will - depending on the object - sometimes invoke a
|
|
69 |
specialized inspector.
|
|
70 |
(see OrderedCollectionInspectorView, ImageInspectorView etc. as examples).
|
|
71 |
|
|
72 |
examples:
|
45
|
73 |
#(1 2 3 4) asOrderedCollection inspect
|
|
74 |
#(1 2 3 4) asOrderedCollection basicInspect
|
|
75 |
(Array new:10000) inspect
|
|
76 |
(Image fromFile:'bitmaps/claus.gif') inspect
|
|
77 |
(Image fromFile:'bitmaps/claus.gif') basicInspect
|
|
78 |
(Image fromFile:'bitmaps/SBrowser.xbm') inspect
|
|
79 |
(Image fromFile:'bitmaps/SBrowser.xbm') basicInspect
|
29
|
80 |
"
|
|
81 |
! !
|
0
|
82 |
|
|
83 |
!InspectorView class methodsFor:'instance creation'!
|
|
84 |
|
|
85 |
openOn:anObject
|
|
86 |
"create and launch a new inspector for anObject"
|
|
87 |
|
29
|
88 |
|topView inspectorView nm|
|
|
89 |
|
|
90 |
anObject isClass ifTrue:[
|
45
|
91 |
nm := anObject displayString
|
49
|
92 |
].
|
|
93 |
nm isNil ifTrue:[
|
45
|
94 |
nm := anObject classNameWithArticle
|
29
|
95 |
].
|
0
|
96 |
|
|
97 |
topView := StandardSystemView
|
45
|
98 |
label:('Inspector on: ' , nm)
|
73
|
99 |
icon:self defaultIcon
|
45
|
100 |
minExtent:(100 @ 100).
|
0
|
101 |
|
71
|
102 |
topView extent:(Display extent // 3).
|
0
|
103 |
|
|
104 |
inspectorView := self origin:(0.0 @ 0.0)
|
45
|
105 |
corner:(1.0 @ 1.0)
|
|
106 |
in:topView.
|
0
|
107 |
|
3
|
108 |
"kludge: must realize first, to be able to set menu again"
|
8
|
109 |
topView open.
|
0
|
110 |
inspectorView inspect:anObject.
|
69
|
111 |
^ inspectorView
|
0
|
112 |
|
29
|
113 |
"
|
|
114 |
InspectorView openOn:(5 @ 7)
|
|
115 |
InspectorView openOn:(Array new:400)
|
|
116 |
DictionaryInspectorView openOn:(IdentityDictionary new)
|
|
117 |
"
|
73
|
118 |
!
|
0
|
119 |
|
73
|
120 |
for:anObject
|
|
121 |
"create and launch a new inspector for anObject.
|
|
122 |
This protocol is a historic leftover - this method will vanish."
|
0
|
123 |
|
73
|
124 |
^ self openOn:anObject
|
0
|
125 |
!
|
|
126 |
|
73
|
127 |
inspect:anObject
|
|
128 |
"create and launch a new inspector for anObject.
|
|
129 |
This protocol is a historic leftover - this method will vanish."
|
|
130 |
|
|
131 |
^ self openOn:anObject
|
|
132 |
! !
|
|
133 |
|
|
134 |
!InspectorView class methodsFor:'defaults'!
|
|
135 |
|
|
136 |
defaultIcon
|
|
137 |
DefaultIcon isNil ifTrue:[
|
|
138 |
DefaultIcon := Form fromFile:'Inspector.xbm' resolution:100
|
|
139 |
].
|
|
140 |
^ DefaultIcon
|
|
141 |
! !
|
|
142 |
|
|
143 |
!InspectorView methodsFor:'accessing'!
|
|
144 |
|
|
145 |
inspect:anObject
|
|
146 |
"define the object to be inspected"
|
|
147 |
|
|
148 |
|aList sameObject|
|
|
149 |
|
|
150 |
sameObject := anObject == inspectedObject.
|
|
151 |
inspectedObject := anObject.
|
|
152 |
|
|
153 |
hasMore := false.
|
|
154 |
aList := self fieldList.
|
|
155 |
hasMore ifTrue:[
|
|
156 |
aList add:' ... '
|
|
157 |
].
|
|
158 |
|
|
159 |
sameObject ifTrue:[
|
|
160 |
listView setContents:aList.
|
80
|
161 |
"/ listView selection:1.
|
73
|
162 |
] ifFalse:[
|
|
163 |
listView contents:aList
|
|
164 |
].
|
|
165 |
|
|
166 |
workspace contents:nil.
|
|
167 |
self setDoItAction.
|
|
168 |
|
|
169 |
selectedLine := nil
|
29
|
170 |
!
|
|
171 |
|
73
|
172 |
listView
|
|
173 |
^ listView
|
52
|
174 |
! !
|
|
175 |
|
|
176 |
!InspectorView methodsFor:'private'!
|
0
|
177 |
|
73
|
178 |
setDoItAction
|
|
179 |
workspace doItAction:[:theCode |
|
|
180 |
(inspectedObject class compilerClass)
|
|
181 |
evaluate:theCode
|
|
182 |
in:nil
|
|
183 |
receiver:inspectedObject
|
|
184 |
notifying:workspace
|
|
185 |
logged:true
|
|
186 |
ifFail:nil
|
|
187 |
].
|
|
188 |
|
|
189 |
!
|
|
190 |
|
|
191 |
showMore
|
|
192 |
hasMore ifTrue:[
|
|
193 |
nShown := nShown * 2.
|
|
194 |
self inspect:inspectedObject
|
|
195 |
]
|
|
196 |
!
|
|
197 |
|
|
198 |
fieldList
|
56
|
199 |
"return a list of names to show in the selectionList.
|
|
200 |
Leave hasMore as true, if a '...' entry should be added."
|
0
|
201 |
|
79
|
202 |
|aList n cls s|
|
0
|
203 |
|
29
|
204 |
aList := OrderedCollection new.
|
0
|
205 |
aList add:'self'.
|
29
|
206 |
cls := inspectedObject class.
|
|
207 |
cls isClass ifTrue:[
|
45
|
208 |
cls allInstVarNames do:[:instVarName |
|
|
209 |
aList add:instVarName
|
|
210 |
]
|
29
|
211 |
] ifFalse:[
|
45
|
212 |
1 to:cls instSize do:[:index |
|
|
213 |
aList add:('instvar' , index printString)
|
|
214 |
]
|
0
|
215 |
].
|
29
|
216 |
cls isVariable ifTrue:[
|
45
|
217 |
n := inspectedObject basicSize.
|
|
218 |
(n > nShown) ifTrue:[
|
|
219 |
n := nShown.
|
56
|
220 |
hasMore := true.
|
45
|
221 |
].
|
79
|
222 |
(inspectedObject respondsTo:#keys) ifTrue:[
|
|
223 |
s := ReadStream on:(inspectedObject keys).
|
|
224 |
1 to:n do:[:index |
|
|
225 |
aList add:(s next printString)
|
|
226 |
]
|
|
227 |
] ifFalse:[
|
|
228 |
1 to:n do:[:index |
|
|
229 |
aList add:(index printString)
|
|
230 |
]
|
45
|
231 |
].
|
0
|
232 |
].
|
|
233 |
^ aList
|
73
|
234 |
! !
|
|
235 |
|
|
236 |
!InspectorView methodsFor:'user interaction'!
|
|
237 |
|
|
238 |
showSelection:lineNr
|
|
239 |
"user clicked on an instvar - show value in workspace"
|
|
240 |
|
|
241 |
|val string index|
|
|
242 |
|
|
243 |
(hasMore and:[lineNr == listView list size]) ifTrue:[
|
|
244 |
"clicked on the '...' entry"
|
|
245 |
self showMore.
|
|
246 |
listView selection:lineNr.
|
|
247 |
].
|
|
248 |
|
|
249 |
lineNr == 1 ifTrue:[
|
|
250 |
"selecting self also does a re-set, this allows updating the list"
|
|
251 |
self inspect:inspectedObject.
|
|
252 |
].
|
|
253 |
val := self valueAtLine:lineNr.
|
|
254 |
string := val displayString.
|
|
255 |
workspace replace:string.
|
|
256 |
selectedLine := lineNr.
|
|
257 |
!
|
|
258 |
|
|
259 |
destroy
|
|
260 |
inspectedObject := nil.
|
93
|
261 |
monitorProcess notNil ifTrue:[
|
|
262 |
monitorProcess terminate
|
|
263 |
].
|
73
|
264 |
super destroy
|
0
|
265 |
!
|
|
266 |
|
73
|
267 |
valueAtLine:lineNr
|
|
268 |
"helper - return the value of the selected entry"
|
|
269 |
|
|
270 |
|index instSize|
|
|
271 |
|
|
272 |
lineNr == 1 ifTrue:[
|
|
273 |
^ inspectedObject
|
|
274 |
].
|
|
275 |
index := lineNr - 1. "/ skip self
|
|
276 |
instSize := inspectedObject class instSize.
|
|
277 |
|
|
278 |
(inspectedObject class isVariable not
|
|
279 |
or:[index <= instSize]) ifTrue:[
|
|
280 |
^ inspectedObject instVarAt:index
|
|
281 |
].
|
|
282 |
index := index - instSize.
|
|
283 |
^ inspectedObject basicAt:index
|
|
284 |
!
|
|
285 |
|
|
286 |
doInspect
|
|
287 |
"user selected inspect-menu entry"
|
|
288 |
|
|
289 |
self doInspect:false
|
|
290 |
!
|
|
291 |
|
|
292 |
doInspect:basic
|
|
293 |
"user selected inspect-menu entry"
|
|
294 |
|
|
295 |
|objectToInspect|
|
|
296 |
|
|
297 |
selectedLine notNil ifTrue:[
|
|
298 |
objectToInspect := self valueAtLine:selectedLine.
|
|
299 |
basic ifTrue:[
|
|
300 |
objectToInspect basicInspect
|
|
301 |
] ifFalse:[
|
|
302 |
objectToInspect inspect
|
|
303 |
]
|
56
|
304 |
]
|
3
|
305 |
!
|
|
306 |
|
73
|
307 |
doBasicInspect
|
|
308 |
"user selected inspect-menu entry"
|
0
|
309 |
|
73
|
310 |
self doInspect:true
|
0
|
311 |
!
|
|
312 |
|
98
|
313 |
doTrapAll
|
93
|
314 |
"place a trap on all messages sent to the inspected object"
|
|
315 |
|
|
316 |
self topView withWaitCursorDo:[MessageTracer trapAll:inspectedObject]
|
|
317 |
!
|
|
318 |
|
98
|
319 |
doTrap
|
|
320 |
"place a trap on a message sent to the inspected object"
|
|
321 |
|
|
322 |
|string selector|
|
|
323 |
|
|
324 |
string := Dialog request:'Selector to trap on:'.
|
|
325 |
string notNil ifTrue:[
|
|
326 |
selector := string asSymbolIfInterned.
|
|
327 |
].
|
|
328 |
selector isNil ifTrue:[
|
|
329 |
self warn:'no such selector'
|
|
330 |
] ifFalse:[
|
|
331 |
self topView withWaitCursorDo:[MessageTracer trap:inspectedObject
|
|
332 |
selector:selector]
|
|
333 |
]
|
|
334 |
!
|
|
335 |
|
93
|
336 |
doTrace
|
|
337 |
"place a trace on all messages sent to the inspected object"
|
|
338 |
|
|
339 |
self topView withWaitCursorDo:[MessageTracer traceAll:inspectedObject]
|
|
340 |
!
|
|
341 |
|
|
342 |
doUntrace
|
|
343 |
"remove traps/traces"
|
|
344 |
|
|
345 |
MessageTracer untrace:inspectedObject
|
|
346 |
!
|
|
347 |
|
|
348 |
doStartMonitor
|
|
349 |
"start a monitoring process"
|
|
350 |
|
|
351 |
monitorProcess isNil ifTrue:[
|
|
352 |
monitorProcess :=
|
|
353 |
[
|
|
354 |
|sel|
|
|
355 |
|
|
356 |
[true] whileTrue:[
|
|
357 |
(sel := listView selection) notNil ifTrue:[
|
|
358 |
self showSelection:sel
|
|
359 |
].
|
|
360 |
(Delay forSeconds:0.5) wait
|
|
361 |
]
|
|
362 |
] forkAt:Processor userBackgroundPriority
|
|
363 |
]
|
|
364 |
!
|
|
365 |
|
|
366 |
doStopMonitor
|
|
367 |
"stop the monitor"
|
|
368 |
|
|
369 |
monitorProcess terminate.
|
|
370 |
monitorProcess := nil
|
|
371 |
!
|
|
372 |
|
0
|
373 |
keyPress:aKey x:x y:y
|
|
374 |
"all my input is passed on to the workspace-field"
|
|
375 |
|
|
376 |
workspace keyPress:aKey x:0 y:0
|
|
377 |
!
|
|
378 |
|
45
|
379 |
update:something with:someArgument from:changedObject
|
0
|
380 |
"handle updates from other inspectors"
|
|
381 |
|
|
382 |
|oldSelection|
|
|
383 |
|
45
|
384 |
changedObject == inspectedObject ifTrue:[
|
|
385 |
oldSelection := listView selection.
|
|
386 |
self inspect:inspectedObject.
|
|
387 |
oldSelection notNil ifTrue:[
|
|
388 |
self showSelection:oldSelection
|
|
389 |
]
|
0
|
390 |
]
|
|
391 |
!
|
|
392 |
|
|
393 |
doAccept:theText
|
|
394 |
|value index|
|
|
395 |
|
61
|
396 |
value := inspectedObject class compilerClass
|
45
|
397 |
evaluate:theText
|
|
398 |
receiver:inspectedObject
|
|
399 |
notifying:workspace.
|
73
|
400 |
|
|
401 |
selectedLine notNil ifTrue:[
|
|
402 |
selectedLine == 1 ifFalse:[
|
|
403 |
index := selectedLine - 1.
|
|
404 |
(inspectedObject class isVariable) ifFalse:[
|
|
405 |
inspectedObject instVarAt:index put:value
|
|
406 |
] ifTrue:[
|
|
407 |
index <= (inspectedObject class instSize) ifTrue:[
|
45
|
408 |
inspectedObject instVarAt:index put:value
|
73
|
409 |
] ifFalse:[
|
|
410 |
index := index - inspectedObject class instSize.
|
|
411 |
inspectedObject basicAt:index put:value
|
45
|
412 |
]
|
|
413 |
]
|
|
414 |
]
|
0
|
415 |
].
|
|
416 |
inspectedObject changed
|
|
417 |
!
|
|
418 |
|
52
|
419 |
inspectOwners
|
56
|
420 |
"open an inspector on owners of the inspectedObject.
|
|
421 |
(this is a secret function)"
|
|
422 |
|
52
|
423 |
self withCursor:(Cursor questionMark) do:[
|
|
424 |
|owners dict|
|
|
425 |
|
|
426 |
owners := (ObjectMemory whoReferences:inspectedObject) asOrderedCollection.
|
|
427 |
owners size > 500 ifTrue:[
|
|
428 |
(self confirm:'there are ' , owners size printString , ' owners.\\Do you really want to see them all ?' withCRs)
|
|
429 |
ifFalse:[^ self]
|
|
430 |
].
|
|
431 |
dict := IdentityDictionary new.
|
|
432 |
owners do:[:owner |
|
|
433 |
|set names oClass|
|
|
434 |
|
|
435 |
owner ~~ self ifTrue:[
|
|
436 |
set := Set new.
|
|
437 |
names := owner class allInstVarNames.
|
|
438 |
oClass := owner class.
|
|
439 |
1 to:oClass instSize do:[:i |
|
|
440 |
(owner instVarAt:i) == inspectedObject ifTrue:[
|
|
441 |
set add:(names at:i).
|
|
442 |
].
|
|
443 |
].
|
|
444 |
oClass isVariable ifTrue:[
|
|
445 |
oClass isPointers ifTrue:[
|
|
446 |
1 to:owner basicSize do:[:i |
|
|
447 |
(owner basicAt:i) == inspectedObject ifTrue:[
|
|
448 |
set add:i
|
|
449 |
]
|
|
450 |
]
|
|
451 |
]
|
|
452 |
].
|
|
453 |
dict at:owner put:set
|
|
454 |
].
|
|
455 |
].
|
|
456 |
dict inspect
|
|
457 |
]
|
0
|
458 |
! !
|
73
|
459 |
|
|
460 |
!InspectorView methodsFor:'initialization'!
|
|
461 |
|
|
462 |
mapped
|
|
463 |
"delayed setup of lists till map-time -
|
|
464 |
this makes startup of inspectors a bit faster"
|
|
465 |
|
|
466 |
|o|
|
|
467 |
|
|
468 |
super mapped.
|
|
469 |
"
|
|
470 |
kludge to trick inspect:, which ignores setting the
|
|
471 |
same object again ...
|
|
472 |
"
|
|
473 |
o := inspectedObject.
|
|
474 |
inspectedObject := nil.
|
|
475 |
self inspect:o
|
|
476 |
!
|
|
477 |
|
|
478 |
initialize
|
|
479 |
|v panel|
|
|
480 |
|
|
481 |
super initialize.
|
|
482 |
|
|
483 |
panel := VariableHorizontalPanel
|
|
484 |
origin:(0.0 @ 0.0)
|
|
485 |
corner:(1.0 @ 1.0)
|
|
486 |
in:self.
|
|
487 |
|
|
488 |
v := HVScrollableView
|
|
489 |
for:SelectionInListView
|
|
490 |
miniScrollerH:true
|
|
491 |
miniScrollerV:false
|
|
492 |
in:panel.
|
|
493 |
v origin:(0.0 @ 0.0) corner:(0.3 @ 1.0).
|
|
494 |
|
|
495 |
listView := v scrolledView.
|
|
496 |
listView action:[:lineNr | self showSelection:lineNr].
|
|
497 |
listView doubleClickAction:[:lineNr | self doInspect].
|
|
498 |
listView ignoreReselect:false.
|
98
|
499 |
listView menuHolder:self; menuPerformer:self; menuMessage:#fieldMenu.
|
73
|
500 |
|
|
501 |
v := HVScrollableView
|
|
502 |
for:CodeView
|
|
503 |
miniScrollerH:true
|
|
504 |
miniScrollerV:false
|
|
505 |
in:panel.
|
|
506 |
v origin:(0.3 @ 0.0) corner:(1.0 @ 1.0).
|
|
507 |
workspace := v scrolledView.
|
|
508 |
|
|
509 |
workspace acceptAction:[:theText | self doAccept:theText asString].
|
|
510 |
|
|
511 |
nShown := 100.
|
|
512 |
hasMore := false.
|
98
|
513 |
! !
|
|
514 |
|
|
515 |
!InspectorView methodsFor:'menu'!
|
73
|
516 |
|
|
517 |
fieldMenu
|
|
518 |
|labels selectors|
|
|
519 |
|
|
520 |
hasMore ifTrue:[
|
|
521 |
labels := #(
|
|
522 |
'inspect'
|
|
523 |
'basicInspect'
|
|
524 |
'-'
|
93
|
525 |
'trace messages'
|
98
|
526 |
'trap message'
|
|
527 |
'trap all messages'
|
93
|
528 |
'untrace/untrap'
|
|
529 |
'-'
|
73
|
530 |
'show more'
|
|
531 |
).
|
|
532 |
|
|
533 |
selectors := #(
|
|
534 |
doInspect
|
|
535 |
doBasicInspect
|
93
|
536 |
nil
|
|
537 |
doTrace
|
98
|
538 |
doTrapAll
|
93
|
539 |
doTrap
|
|
540 |
doUntrace
|
73
|
541 |
nil
|
|
542 |
showMore
|
|
543 |
).
|
|
544 |
] ifFalse:[
|
|
545 |
labels := #(
|
|
546 |
'inspect'
|
|
547 |
'basicInspect'
|
93
|
548 |
'-'
|
|
549 |
'trace messages'
|
98
|
550 |
'trap message'
|
|
551 |
'trap all messages'
|
93
|
552 |
'untrace/untrap'
|
73
|
553 |
).
|
|
554 |
|
|
555 |
selectors := #(
|
|
556 |
doInspect
|
|
557 |
doBasicInspect
|
93
|
558 |
nil
|
|
559 |
doTrace
|
|
560 |
doTrap
|
98
|
561 |
doTrapAll
|
93
|
562 |
doUntrace
|
73
|
563 |
).
|
|
564 |
].
|
|
565 |
|
93
|
566 |
monitorProcess isNil ifTrue:[
|
|
567 |
labels := labels , #('-' 'start monitor').
|
|
568 |
selectors := selectors , #(nil #doStartMonitor).
|
|
569 |
] ifFalse:[
|
|
570 |
labels := labels , #('-' 'stop monitor').
|
|
571 |
selectors := selectors , #(nil #doStopMonitor).
|
|
572 |
].
|
|
573 |
|
|
574 |
"/ labels := labels , #('-' 'owners').
|
|
575 |
"/ selectors := selectors , #(nil #inspectOwners).
|
|
576 |
|
73
|
577 |
^ PopUpMenu
|
|
578 |
labels:(resources array:labels)
|
|
579 |
selectors:selectors
|
|
580 |
! !
|
|
581 |
|
|
582 |
!InspectorView methodsFor:'release'!
|
|
583 |
|
|
584 |
release
|
|
585 |
"release inpected object. This is normally not needed,
|
|
586 |
since the garbage collector will find this memory alone.
|
|
587 |
However, if some applications keeps inspectors (for example,
|
|
588 |
the debugger does this), this would be freed very late."
|
|
589 |
|
|
590 |
"
|
|
591 |
inspectedObject notNil ifTrue:[
|
|
592 |
inspectedObject removeDependent:self
|
|
593 |
].
|
|
594 |
"
|
|
595 |
inspectedObject := nil.
|
|
596 |
workspace doItAction:nil.
|
|
597 |
workspace contents:nil.
|
|
598 |
listView contents:nil
|
|
599 |
! !
|