author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Fri, 07 Sep 2012 18:28:09 +0100 | |
branch | jv |
changeset 12287 | 400a99059170 |
parent 12265 | f1b3696cf042 |
child 12308 | 5d9291c0fc27 |
permissions | -rw-r--r-- |
9822 | 1 |
" |
2 |
COPYRIGHT (c) 2002 by eXept Software AG |
|
3 |
All Rights Reserved |
|
4 |
||
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
12 |
"{ Package: 'stx:libtool' }" |
|
13 |
||
9858 | 14 |
AbstractSourceCodeManagementSettingsAppl subclass:#CVSSourceCodeManagementSettingsAppl |
12205 | 15 |
instanceVariableNames:'repositoryHolder manager repository cvsRootPrototypeList |
16 |
addPerModuleRoot perModuleRootModule removePerModuleRoot |
|
17 |
perModuleRoot cvsRootHolder selectedPerModuleRoot |
|
18 |
cvsBinDirectoryHolder cvsExecutableHolder cvsCommandTimeoutHolder |
|
19 |
rootsPerModule cvsLoginInModuleEnabled cvsLoginEnabled' |
|
12125 | 20 |
classVariableNames:'RecentlyUsedCVSRoots' |
9822 | 21 |
poolDictionaries:'' |
22 |
category:'System-SourceCodeManagement' |
|
23 |
! |
|
24 |
||
25 |
!CVSSourceCodeManagementSettingsAppl class methodsFor:'documentation'! |
|
26 |
||
27 |
copyright |
|
28 |
" |
|
29 |
COPYRIGHT (c) 2002 by eXept Software AG |
|
30 |
All Rights Reserved |
|
31 |
||
32 |
This software is furnished under a license and may be used |
|
33 |
only in accordance with the terms of that license and with the |
|
34 |
inclusion of the above copyright notice. This software may not |
|
35 |
be provided or otherwise made available to, or used by, any |
|
36 |
other person. No title to or ownership of the software is |
|
37 |
hereby transferred. |
|
38 |
" |
|
39 |
! |
|
40 |
||
41 |
documentation |
|
42 |
" |
|
12125 | 43 |
CVS part of the source code settings. |
44 |
This settings app controls the parameters of the CVSSourceCodeManager. |
|
45 |
||
12205 | 46 |
Extracted for pluggability from SourceCodeManagerSettings in the AbstractSettingsApplication. |
9822 | 47 |
" |
48 |
! ! |
|
49 |
||
9845
bfb845fd9ff2
added: #defaultRepositoryName
Claus Gittinger <cg@exept.de>
parents:
9822
diff
changeset
|
50 |
!CVSSourceCodeManagementSettingsAppl class methodsFor:'defaults'! |
bfb845fd9ff2
added: #defaultRepositoryName
Claus Gittinger <cg@exept.de>
parents:
9822
diff
changeset
|
51 |
|
bfb845fd9ff2
added: #defaultRepositoryName
Claus Gittinger <cg@exept.de>
parents:
9822
diff
changeset
|
52 |
defaultRepositoryName |
bfb845fd9ff2
added: #defaultRepositoryName
Claus Gittinger <cg@exept.de>
parents:
9822
diff
changeset
|
53 |
|
bfb845fd9ff2
added: #defaultRepositoryName
Claus Gittinger <cg@exept.de>
parents:
9822
diff
changeset
|
54 |
^ '/cvs/stx' |
bfb845fd9ff2
added: #defaultRepositoryName
Claus Gittinger <cg@exept.de>
parents:
9822
diff
changeset
|
55 |
|
bfb845fd9ff2
added: #defaultRepositoryName
Claus Gittinger <cg@exept.de>
parents:
9822
diff
changeset
|
56 |
"Created: / 19-04-2011 / 11:00:11 / cg" |
bfb845fd9ff2
added: #defaultRepositoryName
Claus Gittinger <cg@exept.de>
parents:
9822
diff
changeset
|
57 |
! ! |
bfb845fd9ff2
added: #defaultRepositoryName
Claus Gittinger <cg@exept.de>
parents:
9822
diff
changeset
|
58 |
|
12125 | 59 |
!CVSSourceCodeManagementSettingsAppl class methodsFor:'help specs'! |
60 |
||
61 |
helpSpec |
|
62 |
"This resource specification was automatically generated |
|
63 |
by the UIHelpTool of ST/X." |
|
64 |
||
65 |
"Do not manually edit this!! If it is corrupted, |
|
66 |
the UIHelpTool may not be able to read the specification." |
|
67 |
||
68 |
" |
|
69 |
UIHelpTool openOnClass:CVSSourceCodeManagementSettingsAppl |
|
70 |
" |
|
71 |
||
72 |
<resource: #help> |
|
73 |
||
74 |
^ super helpSpec addPairsFrom:#( |
|
75 |
||
76 |
#addPerModuleRoot |
|
77 |
'Add this per-module entry' |
|
78 |
||
79 |
#addPerPackageManager |
|
80 |
'Add a new per-package manager definition' |
|
81 |
||
82 |
#browseSourceCache |
|
83 |
'Open a file browser on the source cache directory' |
|
84 |
||
85 |
#checkClassesWhenCheckingIn |
|
12287 | 86 |
'Before checking into the repository, check classes for leftover halt and breakpoint code' |
12125 | 87 |
|
88 |
#checkPerPackageManager |
|
12287 | 89 |
'Open a window to show which scm-manager is responsible for which package' |
12125 | 90 |
|
91 |
#condenseSourceCache |
|
92 |
'Cleanup old cached versions from the source cache.\Will keep only the current (newest) version in the cache.\Access to older code versions will be slowed down (compare with old version browser function)' |
|
93 |
||
94 |
#cvsCommand |
|
95 |
'The command to use for cvs operations\(the path to "cvs"/"cvs.exe"-command. Not needed, if already in the shell''s PATH value)' |
|
96 |
||
97 |
#cvsCommandTimeout |
|
12287 | 98 |
'The command timeout.\For slow connections (ssl-tunnel), it may make sense to increase this value' |
12125 | 99 |
|
100 |
#cvsLogin |
|
101 |
'Perform a "cvs login" operation for the default CVSROOT' |
|
102 |
||
103 |
#cvsRootDefault |
|
12287 | 104 |
'The default CVSROOT.\This will be used for all modules which are not listed below' |
12125 | 105 |
|
106 |
#cvsRootPerModule |
|
12287 | 107 |
'Specifies per-module CVSROOTs.\This allows for individual projects to be stored in different cvs repositories' |
12125 | 108 |
|
109 |
#cvsRootPerModuleModule |
|
110 |
'The module for which a specific CVSROOT is defined' |
|
111 |
||
112 |
#cvsRootPerModuleRoot |
|
113 |
'The CVSROOT for which this specific module is defined' |
|
114 |
||
115 |
#defaultManagerType |
|
116 |
'The default repository type.\This is used for packages for which no entry matches in the list below' |
|
117 |
||
118 |
#editPerPackageManager |
|
119 |
'Modify the selected per-package manager definition' |
|
120 |
||
121 |
#flushSourceCache |
|
122 |
'Remove all files from the source cache.\Access to source code will temporarily be slowed down,\until sources have been refetched from the repository' |
|
123 |
||
124 |
#keepMethodSourceInImage |
|
125 |
'After first file access, keep the method sources in the image itself.\All following text search operations will be much faster.\Grows the image over time (but who cares, these days)' |
|
126 |
||
127 |
#loginPerModuleRoot |
|
128 |
'Execute a "cvs login" operation for this CVSROOT' |
|
129 |
||
130 |
#moveManagerDown |
|
131 |
'Move the selected entry down in the list.\(The first matching definition is used to determine which repository type is used.)' |
|
132 |
||
133 |
#moveManagerUp |
|
134 |
'Move the selected entry up in the list.\(The first matching definition is used to determine which repository type is used.)' |
|
135 |
||
136 |
#perPackageConfiguration |
|
12287 | 137 |
'Define per-package repository types here.\For any non-matching package-id, the default repository type is used' |
12125 | 138 |
|
139 |
#removePerModuleRoot |
|
140 |
'Remove this per-module entry' |
|
141 |
||
142 |
#removePerPackageManager |
|
143 |
'Remove the selected per-package manager definition' |
|
144 |
||
145 |
#sourceCache |
|
146 |
'After checkout, keep the sourcefile in a local file (to avoid repeated checkout of the same file)' |
|
147 |
||
148 |
#useLocalSources |
|
12287 | 149 |
'If present, use the local source files (from the development system''s tree).\If checkout fails, these will always be tried as second chance' |
12125 | 150 |
|
151 |
#useManager |
|
152 |
'Enable source code management.\If off, all queries for sourcecode are resolved by local files (offline operation)' |
|
153 |
||
154 |
#verboseSourceCodeAccess |
|
155 |
'Output debugging messages on the Transcript\(mostly traces of the underlying scm mechanism, such as cvs commands)' |
|
156 |
||
157 |
) |
|
158 |
||
12287 | 159 |
"Modified: / 09-08-2012 / 09:41:23 / cg" |
12125 | 160 |
! ! |
161 |
||
11010 | 162 |
!CVSSourceCodeManagementSettingsAppl class methodsFor:'image specs'! |
163 |
||
164 |
defaultIcon |
|
12125 | 165 |
^ self defaultIcon2 |
166 |
||
167 |
"Created: / 22-12-2011 / 13:47:11 / cg" |
|
168 |
! |
|
169 |
||
170 |
defaultIcon1 |
|
11010 | 171 |
"This resource specification was automatically generated |
172 |
by the ImageEditor of ST/X." |
|
173 |
||
174 |
"Do not manually edit this!! If it is corrupted, |
|
175 |
the ImageEditor may not be able to read the specification." |
|
176 |
||
177 |
" |
|
12125 | 178 |
self defaultIcon1 inspect |
179 |
ImageEditor openOnClass:self andSelector:#defaultIcon1 |
|
11010 | 180 |
Icon flushCachedIcons |
181 |
" |
|
182 |
||
183 |
<resource: #image> |
|
184 |
||
185 |
^Icon |
|
12125 | 186 |
constantNamed:'CVSSourceCodeManagementSettingsAppl class defaultIcon1' |
187 |
ifAbsentPut:[(Depth8Image new) width: 24; height: 24; photometric:(#palette); bitsPerSample:(#[8]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
188 |
@@@@@@@@@@DB@@@@@@@@@@@@@@@@@@@@@@@@@@LDAPLFA0 I@@@@@@@@@@@@@@@@@@@@@@(KC@0MC <D@@@@@@@@@@@@@@@@@@@CB04LD@DAA@8C@ D@@@@@ |
|
189 |
@@@@@@@@@@@OC 4HDP(IBAHND0 @@@@@@@@@@@@@@@@EE@PU@@@@APLV@0@@@@@@@@@@@@@@@@LVC!!\E@@@@@@PXA Y@@@@@@@@@@@@@@PVEA$Z@@@@@@P[ |
|
190 |
A!!0]@@@@@@@@@@@@@@@EEAXW@@@@APL[G @@@@@@@@@@@@@@@@@SD!!P_DB@JHQ8FD0 @@@@@@@@@@@@@@@@]BRHTF2L$IRX''D0 @@PH@@@@@@@@@@@@@JBD) |
|
191 |
J",,KR$!!@0PE@0XGB@$@@@@@@@@@@B8!!F"4-F"D.B ,LC@4NC0P@@@@@@@@@@@@@@A\]@@LKCP0P@PDDC LB@P@@@@@@@@@@@@@@@@<NCP QB $HD 8SB@@@ |
|
192 |
@@@@@@@@@@@@@@TTAAT@@@@E@1XC@@@@@@@@@@@@@@@@@1XNE0T@@@@@AA FBA$@@@@@@@@@@@@@AAXTFQ(@@@@@AA,FGA4@@@@@@@@@@@@@@@TTE!!\@@@@E |
|
193 |
@1,^@@@@@@@@@@@@@@@@@ALREA<PH@(!!G XSB@@@@@@@@@@@@@@@@A4IH!!P[H2P%I"\SB@@@@@@@@@@@@@@@@@@(HR$*J20-JRD@@@@@@@@@@@@@@@@@@@@@ |
|
194 |
K"DZKR4ZHR8@@@@@@@@@@@@@@@@@@@@@@@@@E14@@@@@@@@@') ; colorMapFromArray:#[0 0 0 160 176 200 176 192 210 176 200 220 192 208 220 224 232 240 176 208 220 208 224 220 144 168 180 192 200 220 208 216 220 208 224 240 224 232 250 224 240 250 208 232 240 160 192 210 176 184 180 128 136 140 192 216 220 160 184 210 208 240 250 144 144 160 192 224 240 160 168 180 192 232 240 160 176 180 224 224 220 192 232 250 144 168 200 176 184 200 160 200 220 192 216 240 176 192 200 160 184 200 192 224 220 176 224 250 176 216 250 160 208 240 144 192 250 144 176 210 255 248 250 160 192 220 144 184 210 160 200 240 160 192 240 128 160 180 128 152 180]; mask:((Depth1Image new) width: 24; height: 24; photometric:(#blackIs0); bitsPerSample:(#[1]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@X@@C?@@C?@@O?0@O?0@OG @_C8@_C8@OG @O?0@O?6@G??0C??0@[?<@C?<@C18@G0>@G0>@C18@C?<@C?<@A?0@@?0@@F@') ; yourself); yourself] |
|
195 |
! |
|
196 |
||
197 |
defaultIcon2 |
|
198 |
"This resource specification was automatically generated |
|
199 |
by the ImageEditor of ST/X." |
|
200 |
||
201 |
"Do not manually edit this!! If it is corrupted, |
|
202 |
the ImageEditor may not be able to read the specification." |
|
203 |
||
204 |
" |
|
205 |
self defaultIcon2 inspect |
|
206 |
ImageEditor openOnClass:self andSelector:#defaultIcon2 |
|
207 |
Icon flushCachedIcons |
|
208 |
" |
|
209 |
||
210 |
<resource: #image> |
|
211 |
||
212 |
^Icon |
|
213 |
constantNamed:'CVSSourceCodeManagementSettingsAppl class defaultIcon2' |
|
214 |
ifAbsentPut:[(Depth8Image new) width: 24; height: 24; photometric:(#palette); bitsPerSample:(#[8]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
215 |
@@@@@@@@@@DB@@@@@@@@@@@@@@@@@@@@@@@@@@LDAPLFA0 I@@@@@@@@@@@@@@@@@@@@@@(KC@0MC <D@@@@@@@@@@@@@@@@@@@CB04LD@DAA@8C@ D@@@@@ |
|
216 |
@@@@@@@@@@@OC 4HDP(IBAHND0 @@@@@@@@@@@@@@@@EE@PU@@@@APLV@0@@@@@@@@@@@@@@@@LVC!!\E@@@@@@PXA Y@@@@@@@@@@@@@@PVEA$Z@@@@@@P[ |
|
217 |
A!!0]@@@@@@@@@@@@@@@EEAXW@@@@APL[G @@@@@@@@@@@@@@@@@SD!!P_DB@JHQ8FD0 @@@@@@@@@@@@@@@@]BRHTF2L$IRX''D0 @@PH@@@@@@@@@@@@@JBD) |
|
218 |
J",,KR$!!@0PE@0XGB@$@@@@@@@@@@B83L3@0F"D.B ,LC@4NC0P@@@@@@@@@@C@3L3L3L@LKCP0P@PDDC LB@P@@@@@@K3L3@@@@@C@NCP QB $HD 8SB@@@ |
|
219 |
@@@@LCD0@@@@@@TTAAT@@@@E@1XC@@@@@C@0L3H3M@@@MQXNE0T@@@@@AA FBA$@@@@0L#L0@@@5MSTTFQ(@@@@@AA,FGA4@@@@@LC$@@CT8NC\5E!!\@@@@E |
|
220 |
@1,^@@@@@@@@@@@@MST6MST5EA<PH@(!!G XSB@@@@@@5@@@@@@@5MQ4IH!!P[H2P%I"\SB@@@@@@@MST5MST5@@@(HR$*J20-JRD@@@@@@@@@@CX5MST@@@@@ |
|
221 |
K"DZKR4ZHR8@@@@@@@@@@@@@@@@@@@@@@@@@E14@@@@@@@@@') ; colorMapFromArray:#[0 0 0 160 176 200 176 192 210 176 200 220 192 208 220 224 232 240 176 208 220 208 224 220 144 168 180 192 200 220 208 216 220 208 224 240 224 232 250 224 240 250 208 232 240 160 192 210 176 184 180 128 136 140 192 216 220 160 184 210 208 240 250 144 144 160 192 224 240 160 168 180 192 232 240 160 176 180 224 224 220 192 232 250 144 168 200 176 184 200 160 200 220 192 216 240 176 192 200 160 184 200 192 224 220 176 224 250 176 216 250 160 208 240 144 192 250 144 176 210 255 248 250 160 192 220 144 184 210 160 200 240 160 192 240 128 160 180 128 152 180 0 64 0 32 96 32 96 192 128 32 128 64 32 160 64 32 128 32 64 64 64 96 96 96 128 128 128 32 32 32 32 64 32]; mask:((Depth1Image new) width: 24; height: 24; photometric:(#blackIs0); bitsPerSample:(#[1]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@X@@C?@@C?@@O?0@O?0@OG @_C8@_C8@OG @O?0@O?6@G??0C??0C??<GC?<GC18_''0>OO0>F_18@??<HO?<G=?0C8?0@@F@') ; yourself); yourself] |
|
11010 | 222 |
! ! |
223 |
||
9822 | 224 |
!CVSSourceCodeManagementSettingsAppl class methodsFor:'interface specs'! |
225 |
||
226 |
windowSpec |
|
227 |
"This resource specification was automatically generated |
|
228 |
by the UIPainter of ST/X." |
|
229 |
||
230 |
"Do not manually edit this!! If it is corrupted, |
|
231 |
the UIPainter may not be able to read the specification." |
|
232 |
||
233 |
" |
|
234 |
UIPainter new openOnClass:CVSSourceCodeManagementSettingsAppl andSelector:#windowSpec |
|
235 |
CVSSourceCodeManagementSettingsAppl new openInterface:#windowSpec |
|
236 |
CVSSourceCodeManagementSettingsAppl open |
|
237 |
" |
|
238 |
||
239 |
<resource: #canvas> |
|
240 |
||
241 |
^ |
|
242 |
#(FullSpec |
|
243 |
name: windowSpec |
|
244 |
window: |
|
245 |
(WindowSpec |
|
246 |
label: 'CVS Settings' |
|
247 |
name: 'CVS Settings' |
|
248 |
min: (Point 10 10) |
|
12125 | 249 |
bounds: (Rectangle 0 0 800 497) |
9822 | 250 |
) |
251 |
component: |
|
252 |
(SpecCollection |
|
253 |
collection: ( |
|
254 |
(VerticalPanelViewSpec |
|
12125 | 255 |
name: 'VerticalPanel3' |
256 |
layout: (LayoutFrame 0 0 0 0 0 1 0 1) |
|
9822 | 257 |
horizontalLayout: fit |
258 |
verticalLayout: topSpace |
|
259 |
horizontalSpace: 3 |
|
12125 | 260 |
verticalSpace: 4 |
9822 | 261 |
component: |
262 |
(SpecCollection |
|
263 |
collection: ( |
|
12125 | 264 |
(ViewSpec |
265 |
name: 'ManagerSetupBoxx' |
|
9822 | 266 |
component: |
267 |
(SpecCollection |
|
268 |
collection: ( |
|
12125 | 269 |
(FramedBoxSpec |
270 |
label: 'CVS Sourcecode Manager Settings' |
|
271 |
name: 'CVSSetupBox' |
|
272 |
layout: (LayoutFrame 0 0 0 0 0 1 0 1) |
|
273 |
labelPosition: topLeft |
|
274 |
translateLabel: true |
|
9822 | 275 |
component: |
276 |
(SpecCollection |
|
277 |
collection: ( |
|
12205 | 278 |
(ComboBoxSpec |
279 |
name: 'ComboBox1' |
|
280 |
layout: (LayoutFrame 64 0.25 275 0 0 1 297 0) |
|
281 |
activeHelpKey: cvsRootPerModuleModule |
|
282 |
tabable: true |
|
283 |
model: perModuleRootModule |
|
284 |
acceptChannel: acceptChannel |
|
285 |
acceptOnPointerLeave: true |
|
286 |
comboList: sampleModuleList |
|
287 |
) |
|
12125 | 288 |
(CheckBoxSpec |
289 |
label: 'Show in Browser Menus' |
|
290 |
name: 'CheckBox1' |
|
291 |
layout: (LayoutFrame 0 0 5 0 0 1 27 0) |
|
292 |
activeHelpKey: shownInBrowserMenus |
|
293 |
model: shownInBrowserMenusHolder |
|
9822 | 294 |
translateLabel: true |
12125 | 295 |
) |
296 |
(ViewSpec |
|
297 |
name: 'Box1' |
|
298 |
layout: (LayoutFrame 0 0 35 0 0 1 60 0) |
|
9822 | 299 |
component: |
300 |
(SpecCollection |
|
301 |
collection: ( |
|
302 |
(LabelSpec |
|
12125 | 303 |
label: 'CVS Command or Path:' |
304 |
name: 'Label1' |
|
305 |
layout: (LayoutFrame 0 0.0 0 0 60 0.25 22 0) |
|
306 |
activeHelpKey: cvsCommand |
|
307 |
level: 0 |
|
9822 | 308 |
translateLabel: true |
309 |
adjust: right |
|
310 |
) |
|
311 |
(InputFieldSpec |
|
12125 | 312 |
name: 'CVSExecutableField' |
313 |
layout: (LayoutFrame 64 0.25 0 0 0 1 22 0) |
|
314 |
activeHelpKey: cvsCommand |
|
9822 | 315 |
tabable: true |
12125 | 316 |
model: cvsExecutableHolder |
9822 | 317 |
acceptChannel: acceptChannel |
318 |
acceptOnPointerLeave: true |
|
319 |
) |
|
12125 | 320 |
) |
321 |
||
322 |
) |
|
323 |
) |
|
324 |
(ViewSpec |
|
325 |
name: 'Box12' |
|
326 |
layout: (LayoutFrame 0 0 61 0 0 1 86 0) |
|
327 |
component: |
|
328 |
(SpecCollection |
|
329 |
collection: ( |
|
9822 | 330 |
(LabelSpec |
12125 | 331 |
label: 'CVS Command Timeout:' |
332 |
name: 'Label2' |
|
333 |
layout: (LayoutFrame 0 0.0 0 0 60 0.25 22 0) |
|
334 |
activeHelpKey: cvsCommandTimeout |
|
335 |
level: 0 |
|
336 |
translateLabel: true |
|
337 |
adjust: right |
|
338 |
) |
|
339 |
(InputFieldSpec |
|
340 |
name: 'EntryField1' |
|
341 |
layout: (LayoutFrame 64 0.25 0 0 152 0.25 22 0) |
|
342 |
activeHelpKey: cvsCommandTimeout |
|
343 |
tabable: true |
|
344 |
model: cvsCommandTimeoutHolder |
|
345 |
type: timeDuration |
|
346 |
acceptChannel: acceptChannel |
|
347 |
acceptOnPointerLeave: true |
|
348 |
) |
|
349 |
) |
|
350 |
||
351 |
) |
|
352 |
) |
|
353 |
(ViewSpec |
|
354 |
name: 'Box7' |
|
355 |
layout: (LayoutFrame 0 0.0 92 0 0 1 117 0) |
|
356 |
component: |
|
357 |
(SpecCollection |
|
358 |
collection: ( |
|
359 |
(LabelSpec |
|
360 |
label: 'CVSRoot default:' |
|
361 |
name: 'defaultCvsRootLabel' |
|
362 |
layout: (LayoutFrame 0 0.0 2 0 60 0.25 24 0) |
|
363 |
activeHelpKey: cvsRootDefault |
|
364 |
level: 0 |
|
9822 | 365 |
translateLabel: true |
366 |
adjust: right |
|
367 |
) |
|
368 |
(ComboBoxSpec |
|
12125 | 369 |
name: 'cvsRootComboBox' |
370 |
layout: (LayoutFrame 64 0.25 2 0 0 1 24 0) |
|
371 |
activeHelpKey: cvsRootDefault |
|
9822 | 372 |
tabable: true |
12125 | 373 |
model: cvsRootHolder |
9822 | 374 |
immediateAccept: true |
375 |
acceptOnLeave: true |
|
376 |
acceptOnReturn: true |
|
377 |
acceptOnTab: true |
|
378 |
acceptOnLostFocus: true |
|
379 |
acceptChannel: acceptChannel |
|
380 |
acceptOnPointerLeave: true |
|
381 |
comboList: cvsRootPrototypeList |
|
382 |
) |
|
12125 | 383 |
) |
384 |
||
385 |
) |
|
386 |
) |
|
387 |
(ActionButtonSpec |
|
388 |
label: 'CVS-Login' |
|
389 |
name: 'Button1' |
|
390 |
layout: (LayoutFrame -117 1 122 0 0 1 144 0) |
|
391 |
activeHelpKey: cvsLogin |
|
392 |
translateLabel: true |
|
393 |
tabable: true |
|
394 |
model: loginCVSRoot |
|
395 |
enableChannel: cvsLoginEnabled |
|
396 |
) |
|
397 |
(LabelSpec |
|
398 |
label: 'CVSRoot per Module:' |
|
399 |
name: 'knownModulesLabel' |
|
400 |
layout: (LayoutFrame 0 0.0 150 0 60 0.25 172 0) |
|
401 |
activeHelpKey: cvsRootPerModule |
|
402 |
translateLabel: true |
|
403 |
adjust: right |
|
404 |
) |
|
405 |
(SequenceViewSpec |
|
406 |
name: 'List1' |
|
407 |
layout: (LayoutFrame 64 0.25 150 0 0 1 269 0) |
|
408 |
activeHelpKey: cvsRootPerModule |
|
409 |
tabable: true |
|
410 |
model: selectedPerModuleRoot |
|
411 |
hasHorizontalScrollBar: true |
|
412 |
hasVerticalScrollBar: true |
|
413 |
miniScrollerHorizontal: true |
|
414 |
useIndex: false |
|
415 |
sequenceList: listOfModules |
|
416 |
) |
|
417 |
(LabelSpec |
|
418 |
label: 'Module:' |
|
419 |
name: 'moduleLabel' |
|
420 |
layout: (LayoutFrame 0 0.0 279 0 60 0.25 296 0) |
|
421 |
activeHelpKey: cvsRootPerModuleModule |
|
422 |
translateLabel: true |
|
423 |
adjust: right |
|
424 |
) |
|
425 |
(LabelSpec |
|
426 |
label: 'CVSRoot:' |
|
427 |
name: 'cvsRootLabel' |
|
428 |
layout: (LayoutFrame 0 0.0 304 0 60 0.25 321 0) |
|
429 |
activeHelpKey: cvsRootPerModuleRoot |
|
430 |
translateLabel: true |
|
431 |
adjust: right |
|
432 |
) |
|
433 |
(ComboBoxSpec |
|
434 |
name: 'perModuleRootComboBox' |
|
435 |
layout: (LayoutFrame 64 0.25 300 0 0 1.0 322 0) |
|
436 |
activeHelpKey: cvsRootPerModuleRoot |
|
437 |
tabable: true |
|
438 |
model: perModuleRoot |
|
439 |
immediateAccept: true |
|
440 |
acceptOnLeave: true |
|
441 |
acceptOnReturn: true |
|
442 |
acceptOnTab: true |
|
443 |
acceptOnLostFocus: true |
|
444 |
acceptChannel: acceptChannel |
|
445 |
acceptOnPointerLeave: true |
|
446 |
comboList: cvsRootPrototypeList |
|
447 |
) |
|
448 |
(HorizontalPanelViewSpec |
|
449 |
name: 'HorizontalPanel2' |
|
450 |
layout: (LayoutFrame 64 0.25 327 0 -1 1 352 0) |
|
451 |
horizontalLayout: fitSpace |
|
452 |
verticalLayout: center |
|
453 |
horizontalSpace: 3 |
|
454 |
verticalSpace: 3 |
|
455 |
component: |
|
456 |
(SpecCollection |
|
457 |
collection: ( |
|
458 |
(ActionButtonSpec |
|
459 |
label: 'Add/Apply' |
|
460 |
name: 'addButton' |
|
461 |
activeHelpKey: addPerModuleRoot |
|
462 |
translateLabel: true |
|
463 |
tabable: true |
|
464 |
model: addPerModuleRoot |
|
465 |
extent: (Point 123 22) |
|
466 |
) |
|
467 |
(ActionButtonSpec |
|
468 |
label: 'Remove' |
|
469 |
name: 'removeButton' |
|
470 |
activeHelpKey: removePerModuleRoot |
|
471 |
translateLabel: true |
|
472 |
tabable: true |
|
473 |
model: removePerModuleRoot |
|
474 |
enableChannel: removeEnabled |
|
475 |
extent: (Point 124 22) |
|
476 |
) |
|
477 |
(ViewSpec |
|
478 |
name: 'Box11' |
|
479 |
extent: (Point 124 10) |
|
480 |
) |
|
481 |
(ActionButtonSpec |
|
482 |
label: 'CVS-Login' |
|
483 |
name: 'loginButton2' |
|
484 |
activeHelpKey: loginPerModuleRoot |
|
485 |
translateLabel: true |
|
486 |
tabable: true |
|
487 |
model: loginPerModuleRoot |
|
488 |
enableChannel: cvsLoginInModuleEnabled |
|
489 |
extent: (Point 124 22) |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
11174
diff
changeset
|
490 |
) |
11061
0742839089e1
preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents:
11059
diff
changeset
|
491 |
) |
0742839089e1
preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents:
11059
diff
changeset
|
492 |
|
0742839089e1
preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents:
11059
diff
changeset
|
493 |
) |
0742839089e1
preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents:
11059
diff
changeset
|
494 |
) |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
11174
diff
changeset
|
495 |
) |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
11174
diff
changeset
|
496 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
11174
diff
changeset
|
497 |
) |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
11174
diff
changeset
|
498 |
) |
12125 | 499 |
) |
500 |
||
501 |
) |
|
502 |
extent: (Point 800 389) |
|
503 |
) |
|
504 |
(FramedBoxSpec |
|
505 |
label: 'Source Cache' |
|
506 |
name: 'FramedBox1' |
|
507 |
visibilityChannel: false |
|
508 |
labelPosition: topLeft |
|
509 |
translateLabel: true |
|
510 |
component: |
|
511 |
(SpecCollection |
|
512 |
collection: ( |
|
513 |
(ViewSpec |
|
514 |
name: 'SourceCacheDirBox' |
|
515 |
layout: (LayoutFrame 0 0 0 0 0 1 30 0) |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
11174
diff
changeset
|
516 |
component: |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
11174
diff
changeset
|
517 |
(SpecCollection |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
11174
diff
changeset
|
518 |
collection: ( |
12125 | 519 |
(LabelSpec |
520 |
label: 'Source Cache Dir:' |
|
521 |
name: 'SourceCacheDirLabel' |
|
522 |
layout: (LayoutFrame 0 0.0 0 0 60 0.25 22 0) |
|
523 |
translateLabel: true |
|
524 |
adjust: right |
|
11061
0742839089e1
preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents:
11059
diff
changeset
|
525 |
) |
12125 | 526 |
(InputFieldSpec |
527 |
name: 'SourceCacheDirEntryField' |
|
528 |
layout: (LayoutFrame 64 0.25 0 0 0 1 22 0) |
|
529 |
model: sourceCacheDir |
|
530 |
immediateAccept: false |
|
531 |
acceptOnReturn: true |
|
532 |
acceptOnTab: true |
|
533 |
acceptOnLostFocus: true |
|
534 |
acceptOnPointerLeave: true |
|
9822 | 535 |
) |
536 |
) |
|
537 |
||
538 |
) |
|
12125 | 539 |
) |
540 |
(HorizontalPanelViewSpec |
|
541 |
name: 'CacheActionsHorizontalPanel' |
|
542 |
layout: (LayoutFrame 44 0.25 33 0 0 1 67 0) |
|
543 |
horizontalLayout: fitSpace |
|
544 |
verticalLayout: center |
|
545 |
horizontalSpace: 3 |
|
546 |
verticalSpace: 3 |
|
547 |
component: |
|
548 |
(SpecCollection |
|
549 |
collection: ( |
|
550 |
(ActionButtonSpec |
|
551 |
label: 'Flush Cache now' |
|
552 |
name: 'FlushCacheNowButton' |
|
553 |
translateLabel: true |
|
554 |
tabable: true |
|
555 |
model: flushSourceCache |
|
556 |
extent: (Point 261 22) |
|
557 |
) |
|
558 |
(ActionButtonSpec |
|
559 |
label: 'Condense Cache now' |
|
560 |
name: 'CondenseCacheNowButton' |
|
561 |
translateLabel: true |
|
562 |
tabable: true |
|
563 |
model: condenseSourceCache |
|
564 |
extent: (Point 261 22) |
|
565 |
) |
|
566 |
) |
|
567 |
||
568 |
) |
|
9822 | 569 |
) |
11061
0742839089e1
preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents:
11059
diff
changeset
|
570 |
) |
0742839089e1
preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents:
11059
diff
changeset
|
571 |
|
0742839089e1
preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents:
11059
diff
changeset
|
572 |
) |
12125 | 573 |
extent: (Point 800 95) |
9822 | 574 |
) |
575 |
) |
|
576 |
||
577 |
) |
|
578 |
) |
|
579 |
) |
|
580 |
||
581 |
) |
|
582 |
) |
|
583 |
! ! |
|
584 |
||
9858 | 585 |
!CVSSourceCodeManagementSettingsAppl class methodsFor:'queries'! |
586 |
||
587 |
managerClass |
|
588 |
"backlink to my manager class (needed by the settings app)" |
|
589 |
||
590 |
^ CVSSourceCodeManager |
|
591 |
||
592 |
"Created: / 19-04-2011 / 12:46:52 / cg" |
|
593 |
! ! |
|
594 |
||
9822 | 595 |
!CVSSourceCodeManagementSettingsAppl methodsFor:'actions'! |
596 |
||
597 |
addModule:module withData:data |
|
598 |
(self listOfModules includes:module) ifFalse:[ |
|
599 |
self listOfModules add:module; sort. |
|
600 |
]. |
|
601 |
rootsPerModule at:module put:data. |
|
602 |
||
603 |
self updateModifiedChannel. |
|
604 |
||
605 |
"Created: / 08-11-2006 / 19:25:21 / cg" |
|
606 |
! |
|
607 |
||
608 |
basicReadSettings |
|
12125 | 609 |
|infoPerModule| |
610 |
||
9822 | 611 |
self initialize. |
612 |
||
613 |
self sourceCacheDir value:(CVSSourceCodeManager cacheDirectoryName). |
|
614 |
||
615 |
CVSSourceCodeManager forgetDisabledModules. |
|
616 |
repository := CVSSourceCodeManager repositoryName. |
|
617 |
repositoryHolder := (repository ? '') asValue. |
|
618 |
||
12125 | 619 |
infoPerModule := CVSSourceCodeManager repositoryInfoPerModule. |
620 |
infoPerModule keysAndValuesDo:[:module :info | |
|
621 |
rootsPerModule at:module put:(Array with:CVSSourceCodeManager with:info). |
|
9822 | 622 |
]. |
623 |
||
9845
bfb845fd9ff2
added: #defaultRepositoryName
Claus Gittinger <cg@exept.de>
parents:
9822
diff
changeset
|
624 |
self cvsRootHolder value:CVSSourceCodeManager repositoryName ? self class defaultRepositoryName. |
9822 | 625 |
self cvsExecutableHolder value:CVSSourceCodeManager cvsExecutable. |
12125 | 626 |
self cvsCommandTimeoutHolder value:CVSSourceCodeManager cvsCommandTimeout. |
9822 | 627 |
self verboseSourceCodeAccess value:CVSSourceCodeManager verboseSourceCodeAccess. |
12125 | 628 |
self shownInBrowserMenusHolder value:CVSSourceCodeManager shownInBrowserMenus. |
9822 | 629 |
|
630 |
rootsPerModule notNil ifTrue:[ |
|
631 |
self listOfModules removeAll. |
|
632 |
listOfModules addAll:rootsPerModule keys asList. |
|
633 |
]. |
|
634 |
"/ self selectedPerModuleRootChanged. |
|
635 |
||
12125 | 636 |
"Modified: / 10-01-2012 / 00:17:09 / cg" |
9822 | 637 |
! |
638 |
||
639 |
basicSaveSettings |
|
640 |
|modules nm fn| |
|
641 |
||
642 |
nm := self sourceCacheDir value. |
|
643 |
nm notEmptyOrNil ifTrue:[ |
|
644 |
(fn := nm asFilename) exists ifFalse:[ |
|
645 |
(self confirm:('CVS cache directory ''' , nm , ''' does not exist\create ?' withCRs)) ifTrue:[ |
|
646 |
fn recursiveMakeDirectory; |
|
647 |
makeReadableForAll; |
|
648 |
makeWritableForAll; |
|
649 |
makeExecutableForAll. |
|
650 |
] |
|
651 |
]. |
|
652 |
(fn isDirectory |
|
653 |
and:[fn isReadable |
|
654 |
and:[fn isWritable]]) ifTrue:[ |
|
655 |
CVSSourceCodeManager cacheDirectoryName:nm. |
|
656 |
] ifFalse:[ |
|
657 |
self warn:'Invalid sourceCache directory.' |
|
658 |
] |
|
659 |
]. |
|
660 |
||
12125 | 661 |
CVSSourceCodeManager cvsCommandTimeout:(self cvsCommandTimeoutHolder value). |
662 |
||
9822 | 663 |
(Array with:CVSSourceCodeManager) "self availableManagers" do:[:eachManager | |
664 |
|infoPerModule| |
|
12125 | 665 |
|
9822 | 666 |
modules := rootsPerModule select:[:entry | entry first == eachManager]. |
667 |
infoPerModule := Dictionary new. |
|
668 |
modules keysAndValuesDo:[:module :entry | |
|
669 |
entry first == eachManager ifTrue:[ |
|
670 |
infoPerModule at:module put:(entry second). |
|
671 |
]. |
|
672 |
]. |
|
673 |
eachManager repositoryInfoPerModule:infoPerModule. |
|
674 |
]. |
|
675 |
||
676 |
self basicSaveCVSSettings. |
|
677 |
||
678 |
self sourceCacheDir value:(AbstractSourceCodeManager cacheDirectoryName). |
|
679 |
||
680 |
DebugView newDebugger. "/ ??? |
|
681 |
||
682 |
self acceptChannel value. |
|
683 |
||
12125 | 684 |
"Modified: / 08-01-2012 / 18:59:58 / cg" |
9822 | 685 |
! |
686 |
||
12205 | 687 |
|
9822 | 688 |
|
689 |
||
690 |
||
691 |
removePerModuleRoot |
|
692 |
|module| |
|
693 |
||
694 |
acceptChannel value:true. |
|
695 |
module := self perModuleRootModule value. |
|
696 |
self listOfModules remove:module ifAbsent:nil. |
|
697 |
rootsPerModule removeKey:module ifAbsent:nil. |
|
698 |
self perModuleRootModule value:nil. |
|
699 |
self perModuleRoot value:nil. |
|
700 |
self updateModifiedChannel. |
|
701 |
||
12125 | 702 |
"Modified (format): / 21-12-2011 / 14:25:29 / cg" |
9822 | 703 |
! ! |
704 |
||
705 |
!CVSSourceCodeManagementSettingsAppl methodsFor:'actions - cvs'! |
|
706 |
||
707 |
addPerModuleRoot |
|
708 |
|module cvsRoot| |
|
709 |
||
710 |
acceptChannel value:true. |
|
711 |
||
712 |
module := self perModuleRootModule value. |
|
713 |
cvsRoot := self perModuleRoot value. |
|
714 |
||
715 |
cvsRoot size > 0 ifTrue:[ |
|
716 |
self addModule:module withData:(Array with:CVSSourceCodeManager with:cvsRoot). |
|
717 |
]. |
|
718 |
||
719 |
"Modified: / 08-11-2006 / 19:27:39 / cg" |
|
720 |
! |
|
721 |
||
722 |
basicSaveCVSSettings |
|
723 |
|cvsRoot| |
|
724 |
||
725 |
repositoryHolder notNil ifTrue:[ |
|
726 |
repositoryHolder value size > 0 ifTrue:[ |
|
727 |
manager notNil ifTrue:[ |
|
728 |
manager initializeForRepository:repositoryHolder value. |
|
729 |
] |
|
730 |
]. |
|
731 |
]. |
|
732 |
CVSSourceCodeManager cvsExecutable:((self cvsExecutableHolder value ? '') withoutSeparators). |
|
733 |
CVSSourceCodeManager initializeForRepository:(cvsRoot := self cvsRootHolder value). |
|
734 |
CVSSourceCodeManager verboseSourceCodeAccess: verboseSourceCodeAccess value. |
|
12125 | 735 |
CVSSourceCodeManager shownInBrowserMenus:self shownInBrowserMenusHolder value. |
9822 | 736 |
|
737 |
RecentlyUsedCVSRoots isNil ifTrue:[ |
|
738 |
RecentlyUsedCVSRoots := OrderedCollection new. |
|
739 |
]. |
|
740 |
(RecentlyUsedCVSRoots includes:cvsRoot) ifFalse:[ |
|
741 |
RecentlyUsedCVSRoots addFirst:cvsRoot. |
|
742 |
RecentlyUsedCVSRoots size > 20 ifTrue:[ |
|
743 |
RecentlyUsedCVSRoots removeLast. |
|
744 |
]. |
|
745 |
]. |
|
746 |
||
12125 | 747 |
"Modified: / 10-01-2012 / 00:18:15 / cg" |
9822 | 748 |
! |
749 |
||
750 |
cvsLogin:cvsRoot |
|
751 |
|cmd term| |
|
752 |
||
753 |
VT100TerminalView isNil ifTrue:[ |
|
754 |
self warn:'Function not available'. |
|
755 |
^ self. |
|
756 |
]. |
|
757 |
||
758 |
cmd := 'cvs -d ' , cvsRoot , ' login ; exit'. |
|
759 |
term := VT100TerminalView open. |
|
760 |
term topView |
|
761 |
label:'CVS Login for ' , cvsRoot; |
|
762 |
waitUntilVisible. |
|
763 |
term shellTerminateAction:[ |
|
764 |
"/ term topView destroy |
|
765 |
]. |
|
766 |
||
767 |
term showCR:(('Please enter the CVS-password then close this terminal window.') allBold colorizeAllWith:Color red). |
|
768 |
term showCR:''. |
|
769 |
term endEntry. |
|
770 |
Delay waitForSeconds:1. |
|
771 |
term sendLine:cmd. |
|
772 |
||
773 |
" |
|
774 |
self basicNew cvsLogin:':pserver:stx@exept.eu.org:/stx' |
|
775 |
" |
|
776 |
||
777 |
"Modified: / 25-08-2010 / 23:03:19 / cg" |
|
778 |
! |
|
779 |
||
780 |
loginCVSRoot |
|
781 |
self cvsLogin:cvsRootHolder value. |
|
782 |
! |
|
783 |
||
784 |
loginPerModuleRoot |
|
785 |
self cvsLogin:perModuleRoot value. |
|
786 |
! ! |
|
787 |
||
788 |
!CVSSourceCodeManagementSettingsAppl methodsFor:'aspects'! |
|
789 |
||
12125 | 790 |
cvsCommandTimeoutHolder |
791 |
cvsCommandTimeoutHolder isNil ifTrue:[ |
|
792 |
cvsCommandTimeoutHolder := ValueHolder new. |
|
793 |
cvsCommandTimeoutHolder onChangeSend:#updateModifiedChannel to:self |
|
11059 | 794 |
]. |
12125 | 795 |
^ cvsCommandTimeoutHolder. |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
11174
diff
changeset
|
796 |
|
12125 | 797 |
"Created: / 08-01-2012 / 18:57:05 / cg" |
11059 | 798 |
! |
799 |
||
9822 | 800 |
cvsExecutableHolder |
801 |
cvsExecutableHolder isNil ifTrue:[ |
|
802 |
cvsExecutableHolder := ValueHolder new. |
|
803 |
cvsExecutableHolder onChangeSend:#updateModifiedChannel to:self |
|
804 |
]. |
|
805 |
^ cvsExecutableHolder. |
|
806 |
||
807 |
"Created: / 21-09-2006 / 15:37:06 / cg" |
|
808 |
! |
|
809 |
||
810 |
cvsLoginEnabled |
|
811 |
cvsLoginEnabled isNil ifTrue:[ |
|
812 |
cvsLoginEnabled := false asValue. |
|
813 |
]. |
|
814 |
^ cvsLoginEnabled. |
|
815 |
! |
|
816 |
||
817 |
cvsLoginInModuleEnabled |
|
818 |
cvsLoginInModuleEnabled isNil ifTrue:[ |
|
819 |
cvsLoginInModuleEnabled := false asValue. |
|
820 |
]. |
|
821 |
^ cvsLoginInModuleEnabled. |
|
822 |
! |
|
823 |
||
824 |
cvsRootHolder |
|
825 |
||
826 |
cvsRootHolder isNil ifTrue:[ |
|
827 |
cvsRootHolder := self cvsRootFromCVSRootFileOrNil asValue. |
|
828 |
cvsRootHolder addDependent:self. |
|
829 |
]. |
|
830 |
^ cvsRootHolder. |
|
831 |
! |
|
832 |
||
833 |
cvsRootPrototypeList |
|
834 |
|cvsRoot prototypeList| |
|
835 |
||
836 |
cvsRootPrototypeList isNil ifTrue:[ |
|
837 |
prototypeList := OrderedSet new. |
|
838 |
||
839 |
cvsRoot := self cvsRootFromCVSRootFileOrNil. |
|
840 |
cvsRoot notNil ifTrue:[ |
|
841 |
prototypeList add:cvsRoot |
|
842 |
]. |
|
843 |
||
844 |
prototypeList add:(':pserver:cvs@cvs.smalltalk-x.de:/cvs/stx'). |
|
845 |
||
846 |
OperatingSystem getDomainName = 'bh.exept.de' ifTrue:[ |
|
847 |
prototypeList add:(':pserver:' , OperatingSystem getLoginName , '@cvs.bh.exept.de:/cvs/stx') |
|
848 |
] ifFalse:[ |
|
849 |
prototypeList add:(':pserver:' , OperatingSystem getLoginName , '@CVSHOST:/cvs/stx'). |
|
850 |
]. |
|
851 |
||
852 |
OperatingSystem isUNIXlike ifTrue:[ |
|
853 |
prototypeList add:'/cvs/stx'. |
|
854 |
] ifFalse:[ |
|
855 |
OperatingSystem isMSDOSlike ifTrue:[ |
|
12125 | 856 |
prototypeList add:':local:c:\cvs\stx'. |
9822 | 857 |
] ifFalse:[ |
858 |
"there might be more here in the future" |
|
859 |
] |
|
860 |
]. |
|
861 |
||
862 |
cvsRootPrototypeList := prototypeList asOrderedCollection. |
|
863 |
]. |
|
864 |
^ cvsRootPrototypeList. |
|
11166
3e6429352ab7
changed: #cvsRootPrototypeList
Claus Gittinger <cg@exept.de>
parents:
11124
diff
changeset
|
865 |
|
12125 | 866 |
"Modified: / 20-01-2012 / 16:17:35 / cg" |
9822 | 867 |
! |
868 |
||
12205 | 869 |
initialListOfModules |
870 |
^ rootsPerModule keys asList sort. |
|
9822 | 871 |
|
12205 | 872 |
"Created: / 02-03-2012 / 14:39:15 / cg" |
9822 | 873 |
! |
874 |
||
12205 | 875 |
|
876 |
||
9822 | 877 |
perModuleRoot |
878 |
perModuleRoot isNil ifTrue:[ |
|
879 |
perModuleRoot := ValueHolder new. |
|
880 |
perModuleRoot addDependent:self. |
|
881 |
]. |
|
882 |
^ perModuleRoot. |
|
883 |
! |
|
884 |
||
885 |
perModuleRootModule |
|
886 |
perModuleRootModule isNil ifTrue:[ |
|
887 |
perModuleRootModule := ValueHolder new. |
|
888 |
]. |
|
889 |
^ perModuleRootModule. |
|
890 |
! |
|
891 |
||
892 |
||
893 |
||
894 |
selectedPerModuleRoot |
|
895 |
selectedPerModuleRoot isNil ifTrue:[ |
|
896 |
selectedPerModuleRoot := ValueHolder new. |
|
897 |
selectedPerModuleRoot addDependent:self. |
|
898 |
]. |
|
899 |
^ selectedPerModuleRoot. |
|
900 |
! |
|
901 |
||
12205 | 902 |
! |
9822 | 903 |
|
904 |
!CVSSourceCodeManagementSettingsAppl methodsFor:'change & update'! |
|
905 |
||
906 |
selectedPerModuleRootChanged |
|
907 |
|module entry| |
|
908 |
||
909 |
self acceptChannel value:true. |
|
910 |
module := self selectedPerModuleRoot value. |
|
911 |
module isNil ifTrue:[ |
|
912 |
self removeEnabled value:false. |
|
913 |
self perModuleRootModule value:' '. |
|
914 |
self perModuleRoot value:''. |
|
915 |
^ self |
|
916 |
]. |
|
917 |
||
918 |
entry := rootsPerModule at:module ifAbsent:#(). |
|
919 |
(entry first = CVSSourceCodeManager) ifTrue:[ |
|
920 |
self removeEnabled value:true. |
|
921 |
self perModuleRootModule value:module. |
|
922 |
self perModuleRoot value:(entry at:2). |
|
923 |
] ifFalse:[ |
|
924 |
self removeEnabled value:false. |
|
925 |
self perModuleRootModule value:module , ' ',('<<use ',entry first managerTypeName,'>>') allBold. |
|
926 |
self perModuleRoot value:''. |
|
927 |
]. |
|
928 |
! |
|
929 |
||
930 |
update:something with:aParameter from:changedObject |
|
931 |
||
932 |
"/ cvs |
|
933 |
changedObject == cvsRootHolder ifTrue:[ |
|
934 |
self updateModifiedChannel. |
|
935 |
self updateLoginEnableHolders. |
|
936 |
^ self |
|
937 |
]. |
|
938 |
changedObject == perModuleRoot ifTrue:[ |
|
939 |
self updateLoginEnableHolders. |
|
940 |
^ self |
|
941 |
]. |
|
942 |
changedObject == selectedPerModuleRoot ifTrue:[ |
|
943 |
self selectedPerModuleRootChanged. |
|
944 |
^ self |
|
945 |
]. |
|
946 |
||
947 |
super update:something with:aParameter from:changedObject |
|
948 |
||
949 |
"Modified: / 18-04-2011 / 18:18:04 / cg" |
|
950 |
! |
|
951 |
||
952 |
updateLoginEnableHolders |
|
953 |
self cvsLoginEnabled value:((cvsRootHolder value ? '') startsWith:':pserver:'). |
|
954 |
self cvsLoginInModuleEnabled value:((perModuleRoot value ? '') startsWith:':pserver:'). |
|
955 |
! ! |
|
956 |
||
957 |
!CVSSourceCodeManagementSettingsAppl methodsFor:'help'! |
|
958 |
||
959 |
helpFilename |
|
960 |
^ 'Launcher/cvsSetup.html' |
|
961 |
! ! |
|
962 |
||
963 |
!CVSSourceCodeManagementSettingsAppl methodsFor:'initialization & release'! |
|
964 |
||
965 |
initialize |
|
966 |
(AbstractSourceCodeManager notNil) ifTrue:[ AbstractSourceCodeManager autoload ]. |
|
967 |
||
968 |
sourceCacheDir := nil asValue. |
|
969 |
sourceCacheDir addDependent:self. |
|
970 |
||
971 |
repositoryHolder := '' asValue. |
|
972 |
rootsPerModule := Dictionary new. |
|
973 |
||
12125 | 974 |
CVSSourceCodeManager repositoryInfoPerModule |
975 |
keysAndValuesDo:[:module :info | |
|
976 |
module withoutSeparators ~= module ifTrue:[ |
|
977 |
self halt:'should not happen any longer' |
|
9822 | 978 |
]. |
12125 | 979 |
rootsPerModule at:module put:(Array with:CVSSourceCodeManager with:info) |
980 |
]. |
|
9822 | 981 |
|
982 |
super initialize. |
|
983 |
||
12125 | 984 |
"Modified: / 14-01-2012 / 20:28:00 / cg" |
9822 | 985 |
! ! |
986 |
||
987 |
!CVSSourceCodeManagementSettingsAppl methodsFor:'queries'! |
|
988 |
||
989 |
cvsRootFromCVSRootFileOrNil |
|
12125 | 990 |
"see if there is a local CVS directory; if so, extract a default CVSRoot from it" |
991 |
||
9822 | 992 |
|cvsDir cvsRootFile cvsRoot| |
993 |
||
994 |
cvsDir := 'CVS' asFilename. |
|
12125 | 995 |
cvsDir isDirectory ifFalse:[ ^ nil ]. |
996 |
||
997 |
cvsRootFile := cvsDir construct:'Root'. |
|
998 |
cvsRootFile isReadable ifTrue:[ |
|
999 |
cvsRoot := cvsRootFile contents firstIfEmpty:nil. |
|
9822 | 1000 |
]. |
1001 |
^ cvsRoot |
|
12125 | 1002 |
|
1003 |
"Modified: / 22-12-2011 / 00:12:42 / cg" |
|
1004 |
"Modified (comment): / 14-01-2012 / 20:29:11 / cg" |
|
9822 | 1005 |
! |
1006 |
||
1007 |
hasUnsavedChanges |
|
12125 | 1008 |
|modules| |
1009 |
||
9822 | 1010 |
((CVSSourceCodeManager cacheDirectoryName ? '') ~= (self sourceCacheDir value ? '')) ifTrue:[^ true]. |
1011 |
||
12125 | 1012 |
modules := rootsPerModule select:[:entry | entry first == CVSSourceCodeManager]. |
9822 | 1013 |
|
12125 | 1014 |
CVSSourceCodeManager repositoryInfoPerModule keysAndValuesDo:[:module :info | |
1015 |
((modules includesKey:module) and:[info = (modules at:module) second]) |
|
1016 |
ifFalse:[^ true]. |
|
10999 | 1017 |
]. |
12125 | 1018 |
modules keysAndValuesDo:[:module :info| |
1019 |
((CVSSourceCodeManager repositoryInfoPerModule includesKey:module) and:[(CVSSourceCodeManager repositoryInfoPerModule at:module) = info second]) |
|
1020 |
ifFalse:[^ true]. |
|
1021 |
]. |
|
1022 |
(CVSSourceCodeManager cvsCommandTimeout ~= self cvsCommandTimeoutHolder value) |
|
1023 |
ifTrue:[^ true]. |
|
9822 | 1024 |
|
1025 |
((CVSSourceCodeManager cvsExecutable ? '') ~= (self cvsExecutableHolder value ? '') withoutSeparators) |
|
1026 |
ifTrue:[^ true]. |
|
1027 |
||
9845
bfb845fd9ff2
added: #defaultRepositoryName
Claus Gittinger <cg@exept.de>
parents:
9822
diff
changeset
|
1028 |
(CVSSourceCodeManager repositoryName ? self class defaultRepositoryName ~= self cvsRootHolder value) |
9822 | 1029 |
ifTrue:[^ true]. |
1030 |
||
1031 |
(CVSSourceCodeManager verboseSourceCodeAccess ~= self verboseSourceCodeAccess value) |
|
1032 |
ifTrue:[^ true]. |
|
1033 |
||
12125 | 1034 |
(CVSSourceCodeManager shownInBrowserMenus ~= self shownInBrowserMenusHolder value) |
1035 |
ifTrue:[^ true]. |
|
1036 |
||
9822 | 1037 |
^ false |
1038 |
||
12125 | 1039 |
"Modified: / 22-01-2012 / 11:25:53 / cg" |
9822 | 1040 |
! ! |
1041 |
||
1042 |
!CVSSourceCodeManagementSettingsAppl class methodsFor:'documentation'! |
|
1043 |
||
12125 | 1044 |
version |
12287 | 1045 |
^ '$Header: /cvs/stx/stx/libtool/CVSSourceCodeManagementSettingsAppl.st,v 1.25 2012/08/09 08:58:40 cg Exp $' |
12125 | 1046 |
! |
1047 |
||
9822 | 1048 |
version_CVS |
12287 | 1049 |
^ '§Header: /cvs/stx/stx/libtool/CVSSourceCodeManagementSettingsAppl.st,v 1.25 2012/08/09 08:58:40 cg Exp §' |
12128
a7ff7d66ee85
Improvements in LintHighlighter, few fixes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12125
diff
changeset
|
1050 |
! |
a7ff7d66ee85
Improvements in LintHighlighter, few fixes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12125
diff
changeset
|
1051 |
|
a7ff7d66ee85
Improvements in LintHighlighter, few fixes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12125
diff
changeset
|
1052 |
version_SVN |
12287 | 1053 |
^ '$Id: CVSSourceCodeManagementSettingsAppl.st 8048 2012-09-07 17:28:09Z vranyj1 $' |
12125 | 1054 |
! ! |