967
|
1 |
"{ Package: 'stx:goodies/monticello' }"
"{ NameSpace: Smalltalk }"
MCBrowserList subclass:#MCRepositoryList
instanceVariableNames:''
classVariableNames:''
poolDictionaries:''
category:'SCM-Monticello-St/X UI'
!
|
340
|
2 |
|
|
3 |
|
|
4 |
!MCRepositoryList methodsFor:'drag & drop'!
|
|
5 |
|
|
6 |
dropObjects:aCollectionOfDropObjects
|
|
7 |
"drop manager wants to drop.
|
|
8 |
This is ony sent, if #canDrop: returned true.
|
|
9 |
Must be redefined in order for drop to work."
|
|
10 |
|
|
11 |
^ self shouldImplement
|
|
12 |
! !
|
|
13 |
|
|
14 |
!MCRepositoryList methodsFor:'generators'!
|
|
15 |
|
|
16 |
makeEntry: repository
|
|
17 |
|
|
18 |
^MCRepositoryEntry repository: repository
|
|
19 |
|
|
20 |
"Created: / 16-09-2010 / 18:40:43 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
21 |
!
|
|
22 |
|
|
23 |
makeGenerator
|
|
24 |
|
|
25 |
^Iterator on:
|
|
26 |
[:whatToDo| | selection |
|
|
27 |
selection := self selectionHolder value.
|
|
28 |
selection ifNotNil:[
|
967
|
29 |
selection packages do: [:pkgentry|whatToDo value: pkgentry]
|
|
30 |
]
|
|
31 |
].
|
340
|
32 |
|
|
33 |
"Modified: / 16-09-2010 / 18:58:11 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
34 |
! !
|
|
35 |
|
|
36 |
!MCRepositoryList methodsFor:'private'!
|
|
37 |
|
|
38 |
browserNameList
|
|
39 |
"superclass Tools::BrowserList says that I am responsible to implement this method"
|
|
40 |
|
|
41 |
^ self shouldImplement
|
|
42 |
!
|
|
43 |
|
|
44 |
makeDependent
|
|
45 |
"superclass Tools::BrowserList says that I am responsible to implement this method"
|
|
46 |
|
|
47 |
"^ self shouldImplement"
|
|
48 |
|
|
49 |
"Modified: / 16-09-2010 / 16:05:46 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
50 |
!
|
|
51 |
|
|
52 |
makeIndependent
|
|
53 |
"superclass Tools::BrowserList says that I am responsible to implement this method"
|
|
54 |
|
|
55 |
"^ self shouldImplement"
|
|
56 |
|
|
57 |
"Modified: / 16-09-2010 / 16:05:51 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
58 |
!
|
|
59 |
|
|
60 |
updateList
|
536
|
61 |
| repos list |
|
340
|
62 |
|
536
|
63 |
self withWaitCursorDo:[
|
|
64 |
repos := self inGeneratorHolder value.
|
|
65 |
repos ifNil:[repos := MCRepositoryGroup default repositories].
|
|
66 |
list := repos collect: [:repo|self makeEntry:repo].
|
|
67 |
self listHolder value: list.
|
964
|
68 |
self setListValid:true.
|
536
|
69 |
]
|
340
|
70 |
|
|
71 |
"Modified: / 16-09-2010 / 18:58:47 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
536
|
72 |
"Modified: / 04-12-2011 / 09:16:57 / cg"
|
340
|
73 |
! !
|
|
74 |
|
|
75 |
!MCRepositoryList class methodsFor:'documentation'!
|
|
76 |
|
|
77 |
version
|
967
|
78 |
^ '$Header: /cvs/stx/stx/goodies/monticello/MCRepositoryList.st,v 1.5 2015-02-07 11:09:30 cg Exp $'
|
340
|
79 |
!
|
|
80 |
|
|
81 |
version_CVS
|
967
|
82 |
^ '$Header: /cvs/stx/stx/goodies/monticello/MCRepositoryList.st,v 1.5 2015-02-07 11:09:30 cg Exp $'
|
340
|
83 |
!
|
|
84 |
|
|
85 |
version_SVN
|
967
|
86 |
^ '$Id: MCRepositoryList.st,v 1.5 2015-02-07 11:09:30 cg Exp $'
|
340
|
87 |
! !
|
964
|
88 |
|