ClassItemRoot.st
author ps
Tue, 15 Feb 2000 17:49:27 +0100
changeset 2612 ce84f1d3dae9
parent 2547 49e7cb306cd5
child 2625 d70f0361a027
permissions -rw-r--r--
*** empty log message ***

AbstractVersionDiffBrowserItem subclass:#ClassItemRoot
	instanceVariableNames:''
	classVariableNames:''
	poolDictionaries:''
	category:'Interface-Browsers-Support'
!

!ClassItemRoot class methodsFor:'documentation'!

documentation
"
    documentation to be added.

    [author:]
        Pierre Schwarz (ps@exept.de)

    [see also:]

    [instance variables:]

    [class variables:]
"

! !

!ClassItemRoot class methodsFor:'accessing'!

classItemClass

    ^ClassItem

! !

!ClassItemRoot methodsFor:'accessing'!

classItemClass
    "return the value of the instance variable 'classItemClass' (automatically generated)"

    ^ self class classItemClass


! !

!ClassItemRoot methodsFor:'initialization'!

initialize
    super initialize.
    isExpanded := true.
! !

!ClassItemRoot methodsFor:'protocol'!

children
"
default childrens of the receiver are none. 

<return: Array>
"

    children ifNil:[
        children := self computeChildrensFor:parent classRevisionColl.
        children do:[:eachChild | eachChild parent:self]
    ].
    ^ children








!

computeChildrensFor:aClassColl
"

<return: OrderedCollection|nil>
"

    |theClassItemColl|

    aClassColl ifNil:[^#()].
    theClassItemColl := aClassColl collect:[:eachClass |
        |theClassItem theClass|
        theClassItem := self classItemClass new.
        theClass := Smalltalk resolveName:eachClass inClass:Smalltalk.
        theClassItem myClass:theClass.
        theClassItem].
    ^theClassItemColl

!

doubleClickOn:anItem

    |listView|

    (anItem isExpandableRevisionItem and:[parent application listView sensor shiftDown])
        ifTrue: [anItem recursiveToggleExpand]
        ifFalse:[anItem toggleExpand]  
! !

!ClassItemRoot methodsFor:'queries'!

canCollapse
    ^ false

! !

!ClassItemRoot class methodsFor:'documentation'!

version
    ^ '$Header: /cvs/stx/stx/libtool/ClassItemRoot.st,v 1.4 2000-02-15 16:48:28 ps Exp $'
! !