diff -r a8c6a77c4151 -r 13c0cdca9c7a AbstractRevisionItem.st --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/AbstractRevisionItem.st Fri Jan 14 11:51:20 2000 +0100 @@ -0,0 +1,105 @@ +AbstractVersionDiffBrowserItem subclass:#AbstractRevisionItem + instanceVariableNames:'revision' + classVariableNames:'' + poolDictionaries:'' + category:'Interface-Browsers' +! + + +!AbstractRevisionItem class methodsFor:'instance creation'! + +newForRevision:aRevision + + |theRevision| + + theRevision := self new. + theRevision revision:aRevision. + ^theRevision +! ! + +!AbstractRevisionItem methodsFor:'accessing'! + +myClass + + ^self parent myClass +! + +revision + "return the value of the instance variable 'revision' (automatically generated)" + + ^ revision! + +revision:something + "set the value of the instance variable 'revision' (automatically generated)" + + revision := something.! + +revisionString + "return the value of the instance variable 'revision' (automatically generated)" + + self subclassResponsibility + +! ! + +!AbstractRevisionItem methodsFor:'protocol'! + +icon +" +define concrete icons for revision items in subclasses + + +" + self subclassResponsibility +! + +label +" +label is the revision string + + +" + + ^self revisionString + + +! ! + +!AbstractRevisionItem methodsFor:'testing'! + +hasSourceStream +" +has the receiver a source stream? Used for testing tree items. + + +" + ^false + +! + +isLoadedRevision +" +do the receiver represents the actual revision of a class. + + +" + ^false + + + +! + +isRevisionItem +" +the receiver is a revision item. Used for testing tree items. + + +" + ^true + +! ! + +!AbstractRevisionItem class methodsFor:'documentation'! + +version + ^ '$Header: /cvs/stx/stx/libtool/AbstractRevisionItem.st,v 1.1 2000-01-14 10:49:59 ps Exp $' +! !