30
|
1 |
"
|
|
2 |
COPYRIGHT (c) 1994 by Claus Gittinger
|
51
|
3 |
All Rights Reserved
|
30
|
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 |
|
|
13 |
InspectorView subclass:#ClassInspectorView
|
51
|
14 |
instanceVariableNames:''
|
|
15 |
classVariableNames:''
|
|
16 |
poolDictionaries:''
|
|
17 |
category:'Interface-Inspector'
|
30
|
18 |
!
|
|
19 |
|
|
20 |
ClassInspectorView comment:'
|
|
21 |
COPYRIGHT (c) 1994 by Claus Gittinger
|
51
|
22 |
All Rights Reserved
|
30
|
23 |
|
51
|
24 |
$Header: /cvs/stx/stx/libtool/ClassInspectorView.st,v 1.2 1994-11-17 14:44:24 claus Exp $
|
30
|
25 |
'!
|
|
26 |
|
|
27 |
!ClassInspectorView methodsFor:'documentation'!
|
|
28 |
|
|
29 |
copyright
|
|
30 |
"
|
|
31 |
COPYRIGHT (c) 1994 by Claus Gittinger
|
51
|
32 |
All Rights Reserved
|
30
|
33 |
|
|
34 |
This software is furnished under a license and may be used
|
|
35 |
only in accordance with the terms of that license and with the
|
|
36 |
inclusion of the above copyright notice. This software may not
|
|
37 |
be provided or otherwise made available to, or used by, any
|
|
38 |
other person. No title to or ownership of the software is
|
|
39 |
hereby transferred.
|
|
40 |
"
|
|
41 |
!
|
|
42 |
|
|
43 |
version
|
|
44 |
"
|
51
|
45 |
$Header: /cvs/stx/stx/libtool/ClassInspectorView.st,v 1.2 1994-11-17 14:44:24 claus Exp $
|
30
|
46 |
"
|
|
47 |
!
|
|
48 |
|
|
49 |
documentation
|
|
50 |
"
|
|
51 |
modified Inspector for Classes; in addition to instance variables,
|
|
52 |
also shows ClassVariables in its left SelectionList.
|
|
53 |
"
|
|
54 |
! !
|
|
55 |
|
|
56 |
!ClassInspectorView methodsFor:'accessing'!
|
|
57 |
|
|
58 |
listOfNames
|
|
59 |
"return a list of names to show in the selectionList"
|
|
60 |
|
|
61 |
|aList|
|
|
62 |
|
|
63 |
aList := super listOfNames.
|
|
64 |
|
|
65 |
"/
|
|
66 |
"/ add class variables
|
|
67 |
"/
|
|
68 |
inspectedObject class withAllSuperclasses reverse do:[:aClass |
|
51
|
69 |
|varNames|
|
30
|
70 |
|
51
|
71 |
varNames := aClass classVarNames.
|
|
72 |
varNames notEmpty ifTrue:[
|
|
73 |
aList add:'--- classvariables from ' , aClass name , ' ---'.
|
|
74 |
varNames do:[:classVarName |
|
|
75 |
aList add:classVarName
|
|
76 |
]
|
|
77 |
]
|
30
|
78 |
].
|
|
79 |
^ aList
|
|
80 |
! !
|
|
81 |
|
|
82 |
|