diff -r 6487678f817c -r ce7bf29523c2 MCPatchBrowser.st --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/MCPatchBrowser.st Wed Nov 22 14:24:48 2006 +0100 @@ -0,0 +1,169 @@ +"{ Package: 'stx:goodies/monticello' }" + +MCCodeTool subclass:#MCPatchBrowser + instanceVariableNames:'selection' + classVariableNames:'' + poolDictionaries:'' + category:'Monticello-UI' +! + + +!MCPatchBrowser class methodsFor:'as yet unclassified'! + +forPatch: aPatch + ^ self new patch: aPatch +! ! + +!MCPatchBrowser methodsFor:'accessing'! + +items + ^ items +! + +list + ^ self items collect: [:ea | ea summary] +! + +patch: aPatch + items _ aPatch operations asSortedCollection +! ! + +!MCPatchBrowser methodsFor:'as yet unclassified'! + +annotations + ^selection ifNil: [ super annotations ] + ifNotNil: [ selection annotations ] +! + +changeSetNameForInstall + "Answer the name of the change set into which my selection will be installed. + Derive this from my label. + If I have no label, use the current change set." + + | tokens | + label ifNil: [ ^ChangeSet current name ]. + tokens := label findTokens: ' '. + tokens removeAllFoundIn: { 'changes'. 'between'. 'and' }. + (tokens size = 3 and: [ tokens second = '