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