VersionRevisionItem.st
author Claus Gittinger <cg@exept.de>
Fri, 18 Feb 2000 15:02:06 +0100
changeset 2625 d70f0361a027
parent 2612 ce84f1d3dae9
child 2626 4ee750caddab
permissions -rw-r--r--
doc; halts removed

AbstractRevisionItem subclass:#VersionRevisionItem
	instanceVariableNames:''
	classVariableNames:''
	poolDictionaries:''
	category:'Interface-Browsers-Support'
!

!VersionRevisionItem class methodsFor:'documentation'!

documentation
"
    This is not yet finished (work in progress) - do not use.

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

    [see also:]

    [instance variables:]

    [class variables:]
"

! !

!VersionRevisionItem methodsFor:'accessing'!

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

    ^ revision at:#revision



!

sourceStream
"
<return: Stream>
"
    |theClass|

    theClass := self parent myClass.
    ^theClass sourceCodeManager getSourceStreamFor:theClass revision:self revisionString
! !

!VersionRevisionItem methodsFor:'protocol'!

icon

    ^self isLoadedRevision
        ifTrue: [#loadedRevision]
        ifFalse:[#unloadedRevision].


! !

!VersionRevisionItem methodsFor:'testing'!

hasSourceStream
"
has the receiver a source stream? Used for testing tree items.

<return: Boolean>
"
    ^true



!

isLoadedRevision
"
the receiver represents the actual revision of a class, when the revision string fits
and the class is not changed. In that case a current version of the class exisits.

<return: Boolean>
"
    ^((self parent myClass revision = self revisionString) and:[self parent isMyClassChanged not])


! !

!VersionRevisionItem class methodsFor:'documentation'!

version
    ^ '$Header: /cvs/stx/stx/libtool/VersionRevisionItem.st,v 1.5 2000-02-18 14:00:28 cg Exp $'
! !