ClassInspectorView.st
author Claus Gittinger <cg@exept.de>
Mon, 14 Feb 2011 17:23:19 +0100
changeset 9764 47b9c33465a1
parent 3201 88f8ebf3752c
child 12123 4bde08cebd48
child 12447 a35a8b2fe1f5
permissions -rw-r--r--
added: #hasZipFileSelectedHolder changed: #hasZipFileSelected #toolsMenuSpec

"
 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 $'
! !