author | Claus Gittinger <cg@exept.de> |
Fri, 01 Jun 2012 10:38:21 +0200 | |
changeset 11531 | f5f8306664d7 |
parent 11530 | ba6b2f17e30d |
child 11546 | b1bc718b6e76 |
permissions | -rw-r--r-- |
10029 | 1 |
" |
2 |
COPYRIGHT (c) 2011 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 |
" |
|
9864 | 12 |
AbstractSourceCodeManagementSettingsAppl subclass:#PerforceSourceCodeManagementSettingsAppl |
11531 | 13 |
instanceVariableNames:'selectedPerModuleRoot perforceExecutableHolder |
14 |
listOfPerforceModules defaultSettingsHolder tableColumns |
|
15 |
defaultSettingsPrototypeList checkLabel' |
|
16 |
classVariableNames:'RecentlyUsedCVSRoots RecentlyUsedStoreHosts |
|
17 |
RecentlyUsedSmallTeamHosts LastStoreHost LastStoreUser |
|
18 |
LastStorePassword' |
|
19 |
poolDictionaries:'' |
|
20 |
category:'System-SourceCodeManagement' |
|
9837 | 21 |
! |
22 |
||
23 |
ApplicationModel subclass:#ManagerPerModuleApp |
|
11531 | 24 |
instanceVariableNames:'moduleHolder acceptChannel settingsHolder |
25 |
sourceCodeManagementSettingsApp acceptEnableChannel canceled |
|
26 |
defaultSettingsPrototypeList' |
|
27 |
classVariableNames:'' |
|
28 |
poolDictionaries:'' |
|
29 |
privateIn:PerforceSourceCodeManagementSettingsAppl |
|
9837 | 30 |
! |
31 |
||
32 |
Object subclass:#ModuleManager |
|
11531 | 33 |
instanceVariableNames:'manager module settings app check checkIcon' |
34 |
classVariableNames:'' |
|
35 |
poolDictionaries:'' |
|
36 |
privateIn:PerforceSourceCodeManagementSettingsAppl |
|
11022 | 37 |
! |
38 |
||
39 |
||
11530
ba6b2f17e30d
**** new version from Christian
Claus Gittinger <cg@exept.de>
parents:
11328
diff
changeset
|
40 |
|
ba6b2f17e30d
**** new version from Christian
Claus Gittinger <cg@exept.de>
parents:
11328
diff
changeset
|
41 |
|
9837 | 42 |
|
43 |
||
44 |
||
45 |
||
46 |
||
47 |
||
48 |
||
49 |
||
50 |
||
9864 | 51 |
!PerforceSourceCodeManagementSettingsAppl::ManagerPerModuleApp class methodsFor:'instance creation'! |
9837 | 52 |
|
53 |
openFromSourceCodeManagementSettingsApp:something |
|
54 |
||
55 |
|inst| |
|
56 |
||
57 |
inst := self new. |
|
58 |
inst sourceCodeManagementSettingsApp:something. |
|
59 |
inst openModal. |
|
60 |
^ inst |
|
61 |
! ! |
|
62 |
||
9864 | 63 |
!PerforceSourceCodeManagementSettingsAppl::ManagerPerModuleApp class methodsFor:'interface specs'! |
9837 | 64 |
|
65 |
windowSpec |
|
66 |
"This resource specification was automatically generated |
|
67 |
by the UIPainter of ST/X." |
|
68 |
||
69 |
"Do not manually edit this!! If it is corrupted, |
|
70 |
the UIPainter may not be able to read the specification." |
|
71 |
||
72 |
" |
|
11530
ba6b2f17e30d
**** new version from Christian
Claus Gittinger <cg@exept.de>
parents:
11328
diff
changeset
|
73 |
UIPainter new openOnClass:PerforceSourceCodeManagementSettingsAppl::ManagerPerModuleApp andSelector:#windowSpec |
ba6b2f17e30d
**** new version from Christian
Claus Gittinger <cg@exept.de>
parents:
11328
diff
changeset
|
74 |
PerforceSourceCodeManagementSettingsAppl::ManagerPerModuleApp new openInterface:#windowSpec |
ba6b2f17e30d
**** new version from Christian
Claus Gittinger <cg@exept.de>
parents:
11328
diff
changeset
|
75 |
PerforceSourceCodeManagementSettingsAppl::ManagerPerModuleApp open |
9837 | 76 |
" |
77 |
||
78 |
<resource: #canvas> |
|
79 |
||
80 |
^ |
|
81 |
#(FullSpec |
|
82 |
name: windowSpec |
|
83 |
window: |
|
84 |
(WindowSpec |
|
85 |
label: 'Manager per Module' |
|
86 |
name: 'Manager per Module' |
|
87 |
min: (Point 10 10) |
|
88 |
max: (Point 1024 768) |
|
89 |
bounds: (Rectangle 0 0 653 100) |
|
90 |
) |
|
91 |
component: |
|
92 |
(SpecCollection |
|
93 |
collection: ( |
|
94 |
(VerticalPanelViewSpec |
|
95 |
name: 'VerticalPanel1' |
|
96 |
layout: (LayoutFrame 0 0 0 0 -5 1 -30 1) |
|
97 |
horizontalLayout: fit |
|
98 |
verticalLayout: topSpace |
|
99 |
horizontalSpace: 3 |
|
100 |
verticalSpace: 3 |
|
101 |
component: |
|
102 |
(SpecCollection |
|
103 |
collection: ( |
|
104 |
(HorizontalPanelViewSpec |
|
105 |
name: 'HorizontalPanel1' |
|
106 |
horizontalLayout: leftFit |
|
107 |
verticalLayout: center |
|
108 |
horizontalSpace: 3 |
|
109 |
verticalSpace: 3 |
|
110 |
component: |
|
111 |
(SpecCollection |
|
112 |
collection: ( |
|
113 |
(LabelSpec |
|
114 |
label: 'Module:' |
|
115 |
name: 'Label16' |
|
116 |
translateLabel: true |
|
117 |
adjust: right |
|
118 |
extent: (Point 180 17) |
|
119 |
) |
|
120 |
(InputFieldSpec |
|
121 |
name: 'EntryField7' |
|
122 |
tabable: true |
|
123 |
model: moduleHolder |
|
124 |
acceptChannel: acceptChannel |
|
125 |
acceptOnPointerLeave: true |
|
9846 | 126 |
extent: (Point 465 22) |
9837 | 127 |
) |
128 |
) |
|
129 |
||
130 |
) |
|
131 |
extent: (Point 648 23) |
|
132 |
) |
|
133 |
(HorizontalPanelViewSpec |
|
134 |
name: 'HorizontalPanel4' |
|
135 |
horizontalLayout: leftFit |
|
136 |
verticalLayout: topSpace |
|
137 |
horizontalSpace: 3 |
|
138 |
verticalSpace: 3 |
|
139 |
component: |
|
140 |
(SpecCollection |
|
141 |
collection: ( |
|
142 |
(ViewSpec |
|
143 |
name: 'Box1' |
|
144 |
component: |
|
145 |
(SpecCollection |
|
146 |
collection: ( |
|
147 |
(LabelSpec |
|
148 |
label: 'Manager Info' |
|
149 |
name: 'Label18' |
|
150 |
layout: (LayoutFrame 0 0 0 0 149 0 16 0) |
|
151 |
translateLabel: true |
|
152 |
adjust: right |
|
153 |
) |
|
154 |
(LabelSpec |
|
155 |
label: 'client:user:pass@host:port ' |
|
156 |
name: 'Label19' |
|
157 |
layout: (LayoutFrame 0 0 14 0 180 0 29 0) |
|
158 |
style: (FontDescription helvetica medium roman 10) |
|
159 |
level: 0 |
|
160 |
translateLabel: true |
|
161 |
adjust: right |
|
162 |
) |
|
163 |
) |
|
164 |
||
165 |
) |
|
166 |
extent: (Point 180 35) |
|
167 |
) |
|
9846 | 168 |
(ComboBoxSpec |
169 |
name: 'ComboBox1' |
|
9837 | 170 |
model: settingsHolder |
11530
ba6b2f17e30d
**** new version from Christian
Claus Gittinger <cg@exept.de>
parents:
11328
diff
changeset
|
171 |
immediateAccept: false |
ba6b2f17e30d
**** new version from Christian
Claus Gittinger <cg@exept.de>
parents:
11328
diff
changeset
|
172 |
acceptOnLostFocus: true |
9846 | 173 |
acceptOnPointerLeave: false |
9837 | 174 |
comboList: defaultSettingsPrototypeList |
9846 | 175 |
extent: (Point 465 20) |
9837 | 176 |
) |
177 |
) |
|
178 |
||
179 |
) |
|
180 |
extent: (Point 648 35) |
|
181 |
) |
|
182 |
) |
|
183 |
||
184 |
) |
|
185 |
) |
|
186 |
(HorizontalPanelViewSpec |
|
187 |
name: 'HorizontalPanel2' |
|
188 |
layout: (LayoutFrame 0 0 -30 1 0 1 0 1) |
|
189 |
horizontalLayout: fitSpace |
|
190 |
verticalLayout: center |
|
191 |
horizontalSpace: 3 |
|
192 |
verticalSpace: 3 |
|
193 |
component: |
|
194 |
(SpecCollection |
|
195 |
collection: ( |
|
196 |
(ActionButtonSpec |
|
197 |
label: 'Add' |
|
198 |
name: 'Button1' |
|
199 |
translateLabel: true |
|
200 |
model: doAccept |
|
201 |
enableChannel: acceptEnableChannel |
|
202 |
extent: (Point 322 22) |
|
203 |
) |
|
204 |
(ActionButtonSpec |
|
205 |
label: 'Cancel' |
|
206 |
name: 'Button2' |
|
207 |
translateLabel: true |
|
208 |
model: doCancel |
|
209 |
extent: (Point 322 22) |
|
210 |
) |
|
211 |
) |
|
212 |
||
213 |
) |
|
214 |
) |
|
215 |
) |
|
216 |
||
217 |
) |
|
218 |
) |
|
219 |
! ! |
|
220 |
||
9864 | 221 |
!PerforceSourceCodeManagementSettingsAppl::ManagerPerModuleApp methodsFor:'accessing'! |
9837 | 222 |
|
223 |
canceled |
|
224 |
^ canceled |
|
225 |
! |
|
226 |
||
227 |
defaultSettingsPrototypeList |
|
228 |
||
229 |
defaultSettingsPrototypeList isNil ifTrue:[ |
|
9861 | 230 |
defaultSettingsPrototypeList := sourceCodeManagementSettingsApp perforcePrototypeList. |
9837 | 231 |
]. |
232 |
^ defaultSettingsPrototypeList. |
|
233 |
! |
|
234 |
||
235 |
sourceCodeManagementSettingsApp |
|
236 |
^ sourceCodeManagementSettingsApp |
|
237 |
! |
|
238 |
||
239 |
sourceCodeManagementSettingsApp:something |
|
240 |
sourceCodeManagementSettingsApp := something. |
|
241 |
! ! |
|
242 |
||
9864 | 243 |
!PerforceSourceCodeManagementSettingsAppl::ManagerPerModuleApp methodsFor:'aspects'! |
9837 | 244 |
|
245 |
acceptChannel |
|
246 |
<resource: #uiAspect> |
|
247 |
||
248 |
"automatically generated by UIPainter ..." |
|
249 |
||
250 |
"*** the code below creates a default model when invoked." |
|
251 |
"*** (which may not be the one you wanted)" |
|
252 |
"*** Please change as required and accept it in the browser." |
|
253 |
"*** (and replace this comment by something more useful ;-)" |
|
254 |
||
255 |
acceptChannel isNil ifTrue:[ |
|
9861 | 256 |
acceptChannel := TriggerValue new. |
9837 | 257 |
]. |
258 |
^ acceptChannel. |
|
259 |
! |
|
260 |
||
261 |
acceptEnableChannel |
|
262 |
<resource: #uiAspect> |
|
263 |
||
264 |
"automatically generated by UIPainter ..." |
|
265 |
||
266 |
"*** the code below creates a default model when invoked." |
|
267 |
"*** (which may not be the one you wanted)" |
|
268 |
"*** Please change as required and accept it in the browser." |
|
269 |
"*** (and replace this comment by something more useful ;-)" |
|
270 |
||
271 |
acceptEnableChannel isNil ifTrue:[ |
|
9861 | 272 |
acceptEnableChannel := true asValue. |
9837 | 273 |
"/ if your app needs to be notified of changes, uncomment one of the lines below: |
274 |
"/ acceptEnableChannel addDependent:self. |
|
275 |
"/ acceptEnableChannel onChangeSend:#acceptEnableChannelChanged to:self. |
|
276 |
]. |
|
277 |
^ acceptEnableChannel. |
|
278 |
! |
|
279 |
||
280 |
moduleHolder |
|
281 |
<resource: #uiAspect> |
|
282 |
||
283 |
"automatically generated by UIPainter ..." |
|
284 |
||
285 |
"*** the code below creates a default model when invoked." |
|
286 |
"*** (which may not be the one you wanted)" |
|
287 |
"*** Please change as required and accept it in the browser." |
|
288 |
"*** (and replace this comment by something more useful ;-)" |
|
289 |
||
290 |
moduleHolder isNil ifTrue:[ |
|
9861 | 291 |
moduleHolder := ValueHolder new. |
9837 | 292 |
"/ if your app needs to be notified of changes, uncomment one of the lines below: |
9861 | 293 |
moduleHolder addDependent:self. |
9837 | 294 |
"/ moduleHolder onChangeSend:#moduleHolderChanged to:self. |
295 |
]. |
|
296 |
^ moduleHolder. |
|
297 |
! |
|
298 |
||
299 |
settingsHolder |
|
300 |
<resource: #uiAspect> |
|
301 |
||
302 |
"automatically generated by UIPainter ..." |
|
303 |
||
304 |
"*** the code below creates a default model when invoked." |
|
305 |
"*** (which may not be the one you wanted)" |
|
306 |
"*** Please change as required and accept it in the browser." |
|
307 |
"*** (and replace this comment by something more useful ;-)" |
|
308 |
||
309 |
settingsHolder isNil ifTrue:[ |
|
9861 | 310 |
settingsHolder := ValueHolder new. |
9837 | 311 |
"/ if your app needs to be notified of changes, uncomment one of the lines below: |
312 |
"/ settingsHolder addDependent:self. |
|
313 |
"/ settingsHolder onChangeSend:#settingsHolderChanged to:self. |
|
314 |
]. |
|
315 |
^ settingsHolder. |
|
316 |
! ! |
|
317 |
||
9864 | 318 |
!PerforceSourceCodeManagementSettingsAppl::ManagerPerModuleApp methodsFor:'initialization & release'! |
9837 | 319 |
|
320 |
doCancel |
|
321 |
||
322 |
canceled := true. |
|
323 |
^ super doCancel |
|
324 |
! |
|
325 |
||
326 |
postBuildWith:aBuilder |
|
327 |
"This is a hook method generated by the Browser. |
|
328 |
It will be invoked during the initialization of your app/dialog, |
|
9846 | 329 |
after all of the visual components have been built, |
9837 | 330 |
but BEFORE the top window is made visible. |
331 |
Add any app-specific actions here (reading files, setting up values etc.) |
|
332 |
See also #postOpenWith:, which is invoked after opening." |
|
333 |
||
334 |
"/ add any code here ... |
|
335 |
||
336 |
canceled := false. |
|
337 |
^ super postBuildWith:aBuilder |
|
338 |
! |
|
339 |
||
340 |
postOpenWith:aBuilder |
|
341 |
"This is a hook method generated by the Browser. |
|
342 |
It will be invoked right after the applications window has been opened. |
|
343 |
Add any app-specific actions here (starting background processes etc.). |
|
344 |
See also #postBuildWith:, which is invoked before opening." |
|
345 |
||
346 |
"/ add any code here ... |
|
347 |
||
348 |
^ super postOpenWith:aBuilder |
|
349 |
! ! |
|
350 |
||
9864 | 351 |
!PerforceSourceCodeManagementSettingsAppl::ModuleManager class methodsFor:'instance creation'! |
9848
74fc0d845a9b
comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents:
9846
diff
changeset
|
352 |
|
74fc0d845a9b
comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents:
9846
diff
changeset
|
353 |
newForApplication:anApplication |
74fc0d845a9b
comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents:
9846
diff
changeset
|
354 |
|instance| |
74fc0d845a9b
comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents:
9846
diff
changeset
|
355 |
|
74fc0d845a9b
comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents:
9846
diff
changeset
|
356 |
instance := self new. |
74fc0d845a9b
comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents:
9846
diff
changeset
|
357 |
instance app:anApplication. |
74fc0d845a9b
comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents:
9846
diff
changeset
|
358 |
^instance |
74fc0d845a9b
comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents:
9846
diff
changeset
|
359 |
! ! |
74fc0d845a9b
comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents:
9846
diff
changeset
|
360 |
|
9864 | 361 |
!PerforceSourceCodeManagementSettingsAppl::ModuleManager methodsFor:'accessing'! |
9837 | 362 |
|
9848
74fc0d845a9b
comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents:
9846
diff
changeset
|
363 |
app |
74fc0d845a9b
comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents:
9846
diff
changeset
|
364 |
^ app |
74fc0d845a9b
comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents:
9846
diff
changeset
|
365 |
! |
74fc0d845a9b
comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents:
9846
diff
changeset
|
366 |
|
74fc0d845a9b
comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents:
9846
diff
changeset
|
367 |
app:something |
74fc0d845a9b
comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents:
9846
diff
changeset
|
368 |
app := something. |
74fc0d845a9b
comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents:
9846
diff
changeset
|
369 |
! |
74fc0d845a9b
comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents:
9846
diff
changeset
|
370 |
|
11530
ba6b2f17e30d
**** new version from Christian
Claus Gittinger <cg@exept.de>
parents:
11328
diff
changeset
|
371 |
check |
ba6b2f17e30d
**** new version from Christian
Claus Gittinger <cg@exept.de>
parents:
11328
diff
changeset
|
372 |
|
ba6b2f17e30d
**** new version from Christian
Claus Gittinger <cg@exept.de>
parents:
11328
diff
changeset
|
373 |
|icon| |
ba6b2f17e30d
**** new version from Christian
Claus Gittinger <cg@exept.de>
parents:
11328
diff
changeset
|
374 |
|
ba6b2f17e30d
**** new version from Christian
Claus Gittinger <cg@exept.de>
parents:
11328
diff
changeset
|
375 |
check isNil ifTrue:[ |
ba6b2f17e30d
**** new version from Christian
Claus Gittinger <cg@exept.de>
parents:
11328
diff
changeset
|
376 |
^'unchecked' |
ba6b2f17e30d
**** new version from Christian
Claus Gittinger <cg@exept.de>
parents:
11328
diff
changeset
|
377 |
]. |
ba6b2f17e30d
**** new version from Christian
Claus Gittinger <cg@exept.de>
parents:
11328
diff
changeset
|
378 |
check ifTrue:[ |
ba6b2f17e30d
**** new version from Christian
Claus Gittinger <cg@exept.de>
parents:
11328
diff
changeset
|
379 |
icon := GenericToolbarIconLibrary ledGreen14x14. |
ba6b2f17e30d
**** new version from Christian
Claus Gittinger <cg@exept.de>
parents:
11328
diff
changeset
|
380 |
] ifFalse:[ |
ba6b2f17e30d
**** new version from Christian
Claus Gittinger <cg@exept.de>
parents:
11328
diff
changeset
|
381 |
icon := GenericToolbarIconLibrary ledRed14x14. |
ba6b2f17e30d
**** new version from Christian
Claus Gittinger <cg@exept.de>
parents:
11328
diff
changeset
|
382 |
]. |
ba6b2f17e30d
**** new version from Christian
Claus Gittinger <cg@exept.de>
parents:
11328
diff
changeset
|
383 |
|
ba6b2f17e30d
**** new version from Christian
Claus Gittinger <cg@exept.de>
parents:
11328
diff
changeset
|
384 |
^icon |
ba6b2f17e30d
**** new version from Christian
Claus Gittinger <cg@exept.de>
parents:
11328
diff
changeset
|
385 |
! |
ba6b2f17e30d
**** new version from Christian
Claus Gittinger <cg@exept.de>
parents:
11328
diff
changeset
|
386 |
|
ba6b2f17e30d
**** new version from Christian
Claus Gittinger <cg@exept.de>
parents:
11328
diff
changeset
|
387 |
check:something |
ba6b2f17e30d
**** new version from Christian
Claus Gittinger <cg@exept.de>
parents:
11328
diff
changeset
|
388 |
check := something. |
ba6b2f17e30d
**** new version from Christian
Claus Gittinger <cg@exept.de>
parents:
11328
diff
changeset
|
389 |
! |
ba6b2f17e30d
**** new version from Christian
Claus Gittinger <cg@exept.de>
parents:
11328
diff
changeset
|
390 |
|
ba6b2f17e30d
**** new version from Christian
Claus Gittinger <cg@exept.de>
parents:
11328
diff
changeset
|
391 |
checkIcon |
ba6b2f17e30d
**** new version from Christian
Claus Gittinger <cg@exept.de>
parents:
11328
diff
changeset
|
392 |
^ checkIcon |
ba6b2f17e30d
**** new version from Christian
Claus Gittinger <cg@exept.de>
parents:
11328
diff
changeset
|
393 |
! |
ba6b2f17e30d
**** new version from Christian
Claus Gittinger <cg@exept.de>
parents:
11328
diff
changeset
|
394 |
|
ba6b2f17e30d
**** new version from Christian
Claus Gittinger <cg@exept.de>
parents:
11328
diff
changeset
|
395 |
checkIcon:something |
ba6b2f17e30d
**** new version from Christian
Claus Gittinger <cg@exept.de>
parents:
11328
diff
changeset
|
396 |
checkIcon := something. |
ba6b2f17e30d
**** new version from Christian
Claus Gittinger <cg@exept.de>
parents:
11328
diff
changeset
|
397 |
! |
ba6b2f17e30d
**** new version from Christian
Claus Gittinger <cg@exept.de>
parents:
11328
diff
changeset
|
398 |
|
9837 | 399 |
manager |
400 |
^ manager |
|
401 |
! |
|
402 |
||
403 |
manager:something |
|
404 |
manager := something. |
|
405 |
! |
|
406 |
||
407 |
module |
|
408 |
^ module |
|
409 |
! |
|
410 |
||
411 |
module:something |
|
412 |
module := something. |
|
413 |
! |
|
414 |
||
415 |
settings |
|
416 |
^ settings |
|
417 |
! |
|
418 |
||
419 |
settings:something |
|
420 |
settings := something. |
|
9848
74fc0d845a9b
comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents:
9846
diff
changeset
|
421 |
app notNil ifTrue:[ |
74fc0d845a9b
comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents:
9846
diff
changeset
|
422 |
app listOfModules changed. |
74fc0d845a9b
comment/format in: #update:with:from:
Claus Gittinger <cg@exept.de>
parents:
9846
diff
changeset
|
423 |
]. |
9837 | 424 |
! ! |
425 |
||
11530
ba6b2f17e30d
**** new version from Christian
Claus Gittinger <cg@exept.de>
parents:
11328
diff
changeset
|
426 |
!PerforceSourceCodeManagementSettingsAppl::ModuleManager methodsFor:'actions'! |
ba6b2f17e30d
**** new version from Christian
Claus Gittinger <cg@exept.de>
parents:
11328
diff
changeset
|
427 |
|
ba6b2f17e30d
**** new version from Christian
Claus Gittinger <cg@exept.de>
parents:
11328
diff
changeset
|
428 |
doubleClick |
ba6b2f17e30d
**** new version from Christian
Claus Gittinger <cg@exept.de>
parents:
11328
diff
changeset
|
429 |
|
ba6b2f17e30d
**** new version from Christian
Claus Gittinger <cg@exept.de>
parents:
11328
diff
changeset
|
430 |
PerforceSourceCodeManager perforceError handle:[:ex| |
ba6b2f17e30d
**** new version from Christian
Claus Gittinger <cg@exept.de>
parents:
11328
diff
changeset
|
431 |
self warn:ex description. |
ba6b2f17e30d
**** new version from Christian
Claus Gittinger <cg@exept.de>
parents:
11328
diff
changeset
|
432 |
check := false. |
ba6b2f17e30d
**** new version from Christian
Claus Gittinger <cg@exept.de>
parents:
11328
diff
changeset
|
433 |
] do:[ |
ba6b2f17e30d
**** new version from Christian
Claus Gittinger <cg@exept.de>
parents:
11328
diff
changeset
|
434 |
check := PerforceSourceCodeManager checkPerforceSettings:settings forPackage:module. |
ba6b2f17e30d
**** new version from Christian
Claus Gittinger <cg@exept.de>
parents:
11328
diff
changeset
|
435 |
]. |
ba6b2f17e30d
**** new version from Christian
Claus Gittinger <cg@exept.de>
parents:
11328
diff
changeset
|
436 |
self changed. |
ba6b2f17e30d
**** new version from Christian
Claus Gittinger <cg@exept.de>
parents:
11328
diff
changeset
|
437 |
! ! |
ba6b2f17e30d
**** new version from Christian
Claus Gittinger <cg@exept.de>
parents:
11328
diff
changeset
|
438 |
|
9864 | 439 |
!PerforceSourceCodeManagementSettingsAppl::ModuleManager methodsFor:'comparing'! |
9837 | 440 |
|
441 |
< aModuleManager |
|
442 |
||
443 |
^ self module < aModuleManager module |
|
444 |
! ! |
|
445 |
||
9864 | 446 |
!PerforceSourceCodeManagementSettingsAppl::ModuleManager methodsFor:'queries'! |
9837 | 447 |
|
448 |
availableManagerTypeNames |
|
449 |
^ AbstractSourceCodeManager availableManagers collect:[:cls | cls managerTypeName]. |
|
450 |
! |
|
451 |
||
452 |
managerClass |
|
453 |
||
454 |
^ AbstractSourceCodeManager availableManagers detect:[:cls | cls managerTypeName = manager] ifNone:[nil]. |
|
455 |
! ! |
|
456 |