ClassInspectorView.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Thu, 29 Mar 2012 18:51:50 +0100
branchjv
changeset 12212 1208b3e4d64b
parent 12125 0c49a3b13e43
child 12431 9f0c59c742d5
permissions -rw-r--r--
Build files regenerated

"
 COPYRIGHT (c) 1994 by Claus Gittinger
              All Rights Reserved

 This software is furnished under a license and may be used
 only in accordance with the terms of that license and with the
 inclusion of the above copyright notice.   This software may not
 be provided or otherwise made available to, or used by, any
 other person.  No title to or ownership of the software is
 hereby transferred.
"



"{ Package: 'stx:libtool' }"

InspectorView subclass:#ClassInspectorView
	instanceVariableNames:''
	classVariableNames:''
	poolDictionaries:''
	category:'Interface-Inspector'
!

!ClassInspectorView class methodsFor:'documentation'!

copyright
"
 COPYRIGHT (c) 1994 by Claus Gittinger
              All Rights Reserved

 This software is furnished under a license and may be used
 only in accordance with the terms of that license and with the
 inclusion of the above copyright notice.   This software may not
 be provided or otherwise made available to, or used by, any
 other person.  No title to or ownership of the software is
 hereby transferred.
"


!

documentation
"
    modified Inspector for Classes; in addition to instance variables,
    also shows ClassVariables in its left SelectionList.

        Array inspect
        View inspect
"
! !

!ClassInspectorView methodsFor:'accessing'!

fieldList
    "return a list of names to show in the selectionList"

    |aList|

    aList := super fieldList.

    "/
    "/ add class variables
    "/
    inspectedObject class withAllSuperclasses reverse do:[:aClass |
        |varNames|

        varNames := aClass classVarNames.
        varNames notEmpty ifTrue:[
            aList add:'--- classvariables from ' , aClass name , ' ---'.
            varNames do:[:classVarName |
                aList add:classVarName
            ]
        ]
    ].
    ^ aList
! !

!ClassInspectorView class methodsFor:'documentation'!

version
    ^ '$Header: /cvs/stx/stx/libtool/ClassInspectorView.st,v 1.11 2001/09/25 13:04:06 cg Exp $'
! !