306
|
1 |
"{ Package: 'stx:goodies/monticello' }"
|
|
2 |
|
|
3 |
MCBrowserList subclass:#MCVersionList
|
|
4 |
instanceVariableNames:''
|
|
5 |
classVariableNames:''
|
|
6 |
poolDictionaries:''
|
606
|
7 |
category:'SCM-Monticello-St/X UI'
|
306
|
8 |
!
|
|
9 |
|
|
10 |
|
|
11 |
!MCVersionList methodsFor:'generators'!
|
|
12 |
|
|
13 |
makeGenerator
|
|
14 |
"superclass Tools::BrowserList says that I am responsible to implement this method"
|
|
15 |
|
|
16 |
^Iterator on:
|
|
17 |
[:whatToDo| | selection |
|
|
18 |
selection := self selectionHolder value.
|
|
19 |
selection ifNotNil:[whatToDo value: selection]].
|
|
20 |
|
|
21 |
"Modified: / 17-09-2010 / 09:53:33 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
22 |
! !
|
|
23 |
|
|
24 |
!MCVersionList methodsFor:'private'!
|
|
25 |
|
|
26 |
makeDependent
|
|
27 |
"superclass Tools::BrowserList says that I am responsible to implement this method"
|
|
28 |
|
|
29 |
"^ self shouldImplement"
|
|
30 |
|
|
31 |
"Modified: / 16-09-2010 / 19:03:00 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
32 |
!
|
|
33 |
|
|
34 |
makeIndependent
|
|
35 |
"superclass Tools::BrowserList says that I am responsible to implement this method"
|
|
36 |
|
|
37 |
"^ self shouldImplement"
|
|
38 |
|
|
39 |
"Modified: / 16-09-2010 / 19:03:06 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
40 |
!
|
|
41 |
|
|
42 |
updateList
|
397
|
43 |
| generator list |
|
306
|
44 |
|
397
|
45 |
self withWaitCursorDo:[
|
|
46 |
generator := self inGeneratorHolder value ? #().
|
|
47 |
list := SortedCollection sortBlock:
|
|
48 |
[:v1 :v2| | vn1 vn2 |
|
|
49 |
vn1 := v1 versionNumber.
|
|
50 |
vn2 := v2 versionNumber.
|
|
51 |
(vn1 notNil and:[vn2 notNil])
|
|
52 |
ifTrue:[vn1 > vn2]
|
|
53 |
ifFalse:[v1 name > v2 name]].
|
|
54 |
generator do:[:verentry|list add: verentry].
|
|
55 |
listHolder value: list.
|
|
56 |
listValid := true.
|
|
57 |
].
|
306
|
58 |
|
|
59 |
"Modified: / 13-10-2010 / 15:32:07 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
397
|
60 |
"Modified: / 20-08-2011 / 16:24:11 / cg"
|
306
|
61 |
! !
|
|
62 |
|
|
63 |
!MCVersionList class methodsFor:'documentation'!
|
|
64 |
|
|
65 |
version
|
606
|
66 |
^ '$Header: /cvs/stx/stx/goodies/monticello/MCVersionList.st,v 1.4 2012-09-11 21:15:40 cg Exp $'
|
306
|
67 |
!
|
|
68 |
|
|
69 |
version_CVS
|
606
|
70 |
^ '$Header: /cvs/stx/stx/goodies/monticello/MCVersionList.st,v 1.4 2012-09-11 21:15:40 cg Exp $'
|
306
|
71 |
!
|
|
72 |
|
|
73 |
version_SVN
|
|
74 |
^ '§Id: MCVersionList.st 19 2010-10-14 10:51:48Z vranyj1 §'
|
|
75 |
! !
|