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