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