133
|
1 |
"{ Package: 'stx:goodies/monticello' }"
|
|
2 |
|
|
3 |
MCTool subclass:#MCWorkingCopyBrowser
|
|
4 |
instanceVariableNames:'workingCopy workingCopyWrapper repository defaults'
|
|
5 |
classVariableNames:''
|
|
6 |
poolDictionaries:''
|
602
|
7 |
category:'SCM-Monticello-UI'
|
133
|
8 |
!
|
|
9 |
|
|
10 |
|
|
11 |
!MCWorkingCopyBrowser class methodsFor:'as yet unclassified'!
|
|
12 |
|
|
13 |
initialize
|
|
14 |
(TheWorldMenu respondsTo: #registerOpenCommand:)
|
|
15 |
ifTrue: [TheWorldMenu registerOpenCommand: {'Monticello Browser'. {self. #open}}]
|
|
16 |
!
|
|
17 |
|
|
18 |
new
|
|
19 |
^ self basicNew initialize
|
|
20 |
!
|
|
21 |
|
|
22 |
open
|
|
23 |
self new show
|
|
24 |
! !
|
|
25 |
|
|
26 |
!MCWorkingCopyBrowser methodsFor:'actions'!
|
|
27 |
|
|
28 |
addRepository
|
|
29 |
self newRepository ifNotNilDo:
|
|
30 |
[:repos | self addRepository: repos ].
|
|
31 |
!
|
|
32 |
|
|
33 |
addRepository: aRepository
|
|
34 |
self repository: aRepository.
|
|
35 |
self repositoryGroup addRepository: aRepository.
|
|
36 |
self changed: #repositoryList; changed: #repositorySelection.
|
|
37 |
self changedButtons.
|
|
38 |
!
|
|
39 |
|
|
40 |
addRepositoryToPackage
|
|
41 |
self repository ifNotNilDo:
|
|
42 |
[:repos |
|
|
43 |
(self pickWorkingCopySatisfying: [ :p | (p repositoryGroup includes: repos) not ]) ifNotNilDo:
|
|
44 |
[:wc |
|
|
45 |
workingCopy _ wc.
|
|
46 |
workingCopy repositoryGroup addRepository: repos.
|
|
47 |
self repository: repos.
|
|
48 |
self
|
|
49 |
changed: #workingCopySelection;
|
|
50 |
changed: #repositoryList;
|
|
51 |
changed: #repositorySelection.
|
|
52 |
self changedButtons]]
|
|
53 |
!
|
|
54 |
|
|
55 |
addRepositoryToWorkingCopy
|
|
56 |
workingCopy ifNotNilDo:
|
|
57 |
[:wc |
|
|
58 |
workingCopy repositoryGroup addRepository: self repository.
|
|
59 |
self
|
|
60 |
changed: #workingCopySelection;
|
|
61 |
changed: #repositoryList;
|
|
62 |
changed: #repositorySelection.
|
|
63 |
self changedButtons]
|
|
64 |
!
|
|
65 |
|
|
66 |
addRequiredPackage
|
|
67 |
workingCopy ifNotNilDo:
|
|
68 |
[:wc |
|
|
69 |
self pickWorkingCopy ifNotNilDo:
|
|
70 |
[:required |
|
|
71 |
wc requirePackage: required package.
|
|
72 |
self workingCopyListChanged]]
|
|
73 |
!
|
|
74 |
|
|
75 |
addWorkingCopy
|
|
76 |
|name|
|
|
77 |
name _ FillInTheBlankMorph request: 'Name of package:'.
|
|
78 |
name isEmptyOrNil ifFalse:
|
|
79 |
[PackageInfo registerPackageName: name.
|
|
80 |
workingCopy _ MCWorkingCopy forPackage: (MCPackage new name: name).
|
|
81 |
workingCopyWrapper _ nil.
|
|
82 |
self repositorySelection: 0].
|
|
83 |
self workingCopyListChanged; changed: #workingCopySelection; changed: #repositoryList.
|
|
84 |
self changedButtons.
|
|
85 |
!
|
|
86 |
|
|
87 |
backportChanges
|
|
88 |
self canBackport ifFalse: [^self].
|
|
89 |
workingCopy ifNotNil:
|
|
90 |
[workingCopy needsSaving ifTrue: [^ self inform: 'You must save the working copy before backporting.'].
|
|
91 |
self pickAncestorVersionInfo ifNotNilDo:
|
|
92 |
[:baseVersionInfo |
|
|
93 |
workingCopy backportChangesTo: baseVersionInfo]]
|
|
94 |
!
|
|
95 |
|
|
96 |
browseWorkingCopy
|
|
97 |
workingCopy ifNotNil:
|
|
98 |
[(MCSnapshotBrowser forSnapshot: workingCopy package snapshot)
|
|
99 |
label: 'Snapshot Browser: ', workingCopy packageName;
|
|
100 |
show]
|
|
101 |
!
|
|
102 |
|
|
103 |
canBackport
|
|
104 |
^ self hasWorkingCopy and: [workingCopy needsSaving not]
|
|
105 |
!
|
|
106 |
|
|
107 |
checkForNewerVersions
|
|
108 |
| newer |
|
|
109 |
newer _ workingCopy possiblyNewerVersionsIn: self repository.
|
|
110 |
^ newer isEmpty or: [
|
|
111 |
self confirm: 'CAUTION!! These versions in the repository may be newer:',
|
|
112 |
String cr, newer asString, String cr,
|
|
113 |
'Do you really want to save this version?'].
|
|
114 |
!
|
|
115 |
|
|
116 |
clearRequiredPackages
|
|
117 |
workingCopy ifNotNilDo:
|
|
118 |
[:wc |
|
|
119 |
wc clearRequiredPackages.
|
|
120 |
self workingCopyListChanged]
|
|
121 |
!
|
|
122 |
|
|
123 |
deleteWorkingCopy
|
|
124 |
workingCopy unregister.
|
|
125 |
self workingCopySelection: 0.
|
|
126 |
self workingCopyListChanged.
|
|
127 |
!
|
|
128 |
|
|
129 |
editRepository
|
|
130 |
| newRepo |
|
|
131 |
|
|
132 |
newRepo := self repository openAndEditTemplateCopy.
|
|
133 |
newRepo ifNotNil: [
|
|
134 |
newRepo class = self repository class
|
|
135 |
ifTrue: [self repository copyFrom: newRepo]
|
|
136 |
ifFalse: [self inform: 'Must not change repository type!!']]
|
|
137 |
!
|
|
138 |
|
|
139 |
flushAllCaches
|
|
140 |
| beforeBytes afterBytes beforeVersions afterVersions |
|
|
141 |
Cursor wait showWhile: [
|
|
142 |
beforeBytes := Smalltalk garbageCollect.
|
|
143 |
beforeVersions := MCVersion allSubInstances size.
|
|
144 |
MCFileBasedRepository flushAllCaches.
|
|
145 |
afterBytes := Smalltalk garbageCollect.
|
|
146 |
afterVersions := MCVersion allSubInstances size.
|
|
147 |
].
|
|
148 |
^self inform: (beforeVersions - afterVersions) asString, ' versions flushed', String cr,
|
|
149 |
(afterBytes - beforeBytes) asStringWithCommas, ' bytes reclaimed'
|
|
150 |
!
|
|
151 |
|
|
152 |
inspectWorkingCopy
|
|
153 |
workingCopy ifNotNil: [workingCopy inspect]
|
|
154 |
!
|
|
155 |
|
|
156 |
loadRepositories
|
|
157 |
FileStream fileIn: 'MCRepositories.st'.
|
|
158 |
self changed: #repositoryList.
|
|
159 |
self changedButtons.
|
|
160 |
!
|
|
161 |
|
|
162 |
newRepository
|
|
163 |
| types index |
|
|
164 |
types _ MCRepository allConcreteSubclasses asArray.
|
|
165 |
index _ (PopUpMenu labelArray: (types collect: [:ea | ea description]))
|
|
166 |
startUpWithCaption: 'Repository type:'.
|
|
167 |
^ index = 0 ifFalse: [(types at: index) morphicConfigure]
|
|
168 |
!
|
|
169 |
|
|
170 |
openRepository
|
|
171 |
self repository ifNotNilDo: [:repos | repos morphicOpen: workingCopy ]
|
|
172 |
!
|
|
173 |
|
|
174 |
recompilePackage
|
|
175 |
workingCopy package packageInfo methods
|
|
176 |
do: [:ea | ea actualClass recompile: ea methodSymbol]
|
|
177 |
displayingProgress: 'Recompiling...'
|
|
178 |
!
|
|
179 |
|
|
180 |
removeRepository
|
|
181 |
self repository ifNotNilDo:
|
|
182 |
[:repos |
|
|
183 |
self repositoryGroup removeRepository: repos.
|
|
184 |
self repositorySelection: (1 min: self repositories size)].
|
|
185 |
self changed: #repositoryList.
|
|
186 |
self changedButtons.
|
|
187 |
!
|
|
188 |
|
|
189 |
repository
|
|
190 |
workingCopy ifNotNil: [repository _ self defaults at: workingCopy ifAbsent: []].
|
|
191 |
^ repository
|
|
192 |
!
|
|
193 |
|
|
194 |
repository: aRepository
|
|
195 |
repository _ aRepository.
|
|
196 |
workingCopy ifNotNil: [self defaults at: workingCopy put: aRepository]
|
|
197 |
!
|
|
198 |
|
|
199 |
revertPackage
|
|
200 |
self pickAncestorVersionInfo ifNotNilDo: [:info |
|
|
201 |
(self repositoryGroup versionWithInfo: info
|
|
202 |
ifNone: [^self inform: 'No repository found for ', info name]
|
|
203 |
) load]
|
|
204 |
!
|
|
205 |
|
|
206 |
saveRepositories
|
|
207 |
| f |
|
|
208 |
f := FileStream forceNewFileNamed: 'MCRepositories.st'.
|
|
209 |
MCRepositoryGroup default repositoriesDo: [:r |
|
|
210 |
f nextPutAll: 'MCRepositoryGroup default addRepository: (', r asCreationTemplate, ')!!'; cr.]
|
|
211 |
!
|
|
212 |
|
|
213 |
saveVersion
|
|
214 |
| repo |
|
|
215 |
self canSave ifFalse: [^self].
|
|
216 |
self checkForNewerVersions ifFalse: [^self].
|
|
217 |
repo _ self repository.
|
|
218 |
workingCopy newVersion ifNotNilDo:
|
|
219 |
[:v |
|
|
220 |
(MCVersionInspector new version: v) show.
|
|
221 |
Cursor wait showWhile: [repo storeVersion: v].
|
|
222 |
MCCacheRepository default cacheAllFileNamesDuring:
|
|
223 |
[repo cacheAllFileNamesDuring:
|
|
224 |
[v allAvailableDependenciesDo:
|
|
225 |
[:dep |
|
|
226 |
(repo includesVersionNamed: dep info name)
|
|
227 |
ifFalse: [repo storeVersion: dep]]]]]
|
|
228 |
!
|
|
229 |
|
|
230 |
trimAncestry
|
|
231 |
self pickAncestorVersionInfo ifNotNilDo:
|
|
232 |
[:ancestor |
|
|
233 |
workingCopy ancestry trimAfterVersionInfo: ancestor]
|
|
234 |
!
|
|
235 |
|
|
236 |
unloadPackage
|
|
237 |
workingCopy unload.
|
|
238 |
self workingCopySelection: 0.
|
|
239 |
self workingCopyListChanged.
|
|
240 |
!
|
|
241 |
|
|
242 |
viewChanges
|
|
243 |
| patch |
|
|
244 |
self canSave ifTrue:
|
|
245 |
[patch _ workingCopy changesRelativeToRepository: self repository.
|
|
246 |
patch isNil ifTrue: [^ self].
|
|
247 |
patch isEmpty
|
|
248 |
ifTrue: [ workingCopy modified: false.
|
|
249 |
self inform: 'No changes' ]
|
|
250 |
ifFalse:
|
|
251 |
[ workingCopy modified: true.
|
|
252 |
(MCPatchBrowser forPatch: patch)
|
|
253 |
label: 'Patch Browser: ', workingCopy description;
|
|
254 |
show]]
|
|
255 |
!
|
|
256 |
|
|
257 |
viewHistory
|
|
258 |
workingCopy ifNotNil:
|
|
259 |
[(MCWorkingHistoryBrowser new
|
|
260 |
ancestry: workingCopy ancestry;
|
|
261 |
package: workingCopy package)
|
|
262 |
label: 'Version History: ', workingCopy packageName;
|
|
263 |
show]
|
|
264 |
! !
|
|
265 |
|
|
266 |
!MCWorkingCopyBrowser methodsFor:'morphic ui'!
|
|
267 |
|
|
268 |
buttonSpecs
|
|
269 |
^ #(
|
|
270 |
('+Package' addWorkingCopy 'Add a new package and make it the working copy')
|
|
271 |
(Browse browseWorkingCopy 'Browse the working copy of the selected package' hasWorkingCopy)
|
|
272 |
(Scripts editLoadScripts 'Edit the load/unload scripts of this package' hasWorkingCopy)
|
|
273 |
(History viewHistory 'View the working copy''s history' hasWorkingCopy)
|
|
274 |
(Changes viewChanges 'View the working copy''s changes relative to the installed version from the repository' canSave)
|
|
275 |
(Backport backportChanges 'Backport the working copy''s changes to an ancestor' canBackport)
|
|
276 |
(Save saveVersion 'Save the working copy as a new version to the selected repository' canSave)
|
|
277 |
('+Repository' addRepository 'Add an existing repository to the list of those visible')
|
|
278 |
(Open openRepository 'Open a browser on the selected repository' hasRepository)
|
|
279 |
)
|
|
280 |
!
|
|
281 |
|
|
282 |
canSave
|
|
283 |
^ self hasWorkingCopy and: [self hasRepository]
|
|
284 |
!
|
|
285 |
|
|
286 |
changedButtons
|
|
287 |
self changed: #hasWorkingCopy.
|
|
288 |
self changed: #canSave.
|
|
289 |
self changed: #canBackport.
|
|
290 |
self changed: #hasRepository.
|
|
291 |
!
|
|
292 |
|
|
293 |
defaultExtent
|
|
294 |
^ 550@200
|
|
295 |
!
|
|
296 |
|
|
297 |
defaultLabel
|
|
298 |
^ 'Monticello Browser'
|
|
299 |
!
|
|
300 |
|
|
301 |
defaults
|
|
302 |
^ defaults ifNil: [defaults _ Dictionary new]
|
|
303 |
!
|
|
304 |
|
|
305 |
editLoadScripts
|
|
306 |
|
|
307 |
| menu |
|
|
308 |
self hasWorkingCopy ifFalse: [^self].
|
|
309 |
menu _ MenuMorph new defaultTarget: self.
|
|
310 |
menu add: 'edit preamble' selector: #editScript: argument: #preamble.
|
|
311 |
menu add: 'edit postscript' selector: #editScript: argument: #postscript.
|
|
312 |
menu add: 'edit preambleOfRemoval' selector: #editScript: argument: #preambleOfRemoval.
|
|
313 |
menu add: 'edit postscriptOfRemoval' selector: #editScript: argument: #postscriptOfRemoval.
|
|
314 |
menu popUpInWorld.
|
|
315 |
!
|
|
316 |
|
|
317 |
editScript: scriptSymbol
|
|
318 |
|
|
319 |
| script |
|
|
320 |
script _ workingCopy packageInfo perform: scriptSymbol.
|
|
321 |
script openLabel: scriptSymbol asString, ' of the Package ', workingCopy package name.
|
|
322 |
!
|
|
323 |
|
|
324 |
hasRepository
|
|
325 |
^ self repository notNil
|
|
326 |
!
|
|
327 |
|
|
328 |
hasWorkingCopy
|
|
329 |
^ workingCopy notNil
|
|
330 |
!
|
|
331 |
|
|
332 |
initialize
|
|
333 |
MCWorkingCopy addDependent: self.
|
|
334 |
self workingCopies do: [:ea | ea addDependent: self].
|
|
335 |
!
|
|
336 |
|
|
337 |
pickAncestorVersionInfo
|
|
338 |
| ancestors index |
|
|
339 |
ancestors _ workingCopy ancestry breadthFirstAncestors.
|
|
340 |
index _ (PopUpMenu labelArray: (ancestors collect: [:ea | ea name]))
|
|
341 |
startUpWithCaption: 'Ancestor:'.
|
|
342 |
^ index = 0 ifFalse: [ ancestors at: index]
|
|
343 |
!
|
|
344 |
|
|
345 |
pickWorkingCopy
|
|
346 |
^self pickWorkingCopySatisfying: [ :c | true ]
|
|
347 |
!
|
|
348 |
|
|
349 |
pickWorkingCopySatisfying: aBlock
|
|
350 |
| copies index |
|
|
351 |
copies _ self workingCopies select: aBlock.
|
|
352 |
copies isEmpty ifTrue: [ ^nil ].
|
|
353 |
index _ (PopUpMenu labelArray: (copies collect: [:ea | ea packageName]))
|
|
354 |
startUpWithCaption: 'Package:'.
|
|
355 |
^ index = 0 ifFalse: [ copies at: index]
|
|
356 |
!
|
|
357 |
|
|
358 |
repositories
|
|
359 |
^ self repositoryGroup repositories
|
|
360 |
!
|
|
361 |
|
|
362 |
repositoryGroup
|
|
363 |
^ workingCopy
|
|
364 |
ifNil: [MCRepositoryGroup default]
|
|
365 |
ifNotNil: [workingCopy repositoryGroup]
|
|
366 |
!
|
|
367 |
|
|
368 |
repositoryList
|
|
369 |
^ self repositories collect: [:ea | ea description]
|
|
370 |
!
|
|
371 |
|
|
372 |
repositoryListMenu: aMenu
|
|
373 |
self repository ifNil: [^ aMenu].
|
|
374 |
self fillMenu: aMenu fromSpecs:
|
|
375 |
#(('open repository' #openRepository)
|
|
376 |
('edit repository info' #editRepository)
|
|
377 |
('add to package...' #addRepositoryToPackage)
|
|
378 |
('remove repository' #removeRepository)
|
|
379 |
('load repositories' #loadRepositories)
|
|
380 |
('save repositories' #saveRepositories)
|
|
381 |
('flush cached versions' #flushAllCaches)
|
|
382 |
).
|
|
383 |
aMenu
|
|
384 |
add: (self repository alwaysStoreDiffs
|
|
385 |
ifTrue: ['store full versions']
|
|
386 |
ifFalse: ['store diffs'])
|
|
387 |
target: self
|
|
388 |
selector: #toggleDiffs.
|
|
389 |
^ aMenu
|
|
390 |
|
|
391 |
!
|
|
392 |
|
|
393 |
repositorySelection
|
|
394 |
^ self repositories indexOf: self repository
|
|
395 |
!
|
|
396 |
|
|
397 |
repositorySelection: aNumber
|
|
398 |
aNumber = 0
|
|
399 |
ifTrue: [self repository: nil]
|
|
400 |
ifFalse: [self repository: (self repositories at: aNumber)].
|
|
401 |
self changed: #repositorySelection.
|
|
402 |
self changedButtons.
|
|
403 |
!
|
|
404 |
|
|
405 |
toggleDiffs
|
|
406 |
self repository alwaysStoreDiffs
|
|
407 |
ifTrue: [self repository doNotAlwaysStoreDiffs]
|
|
408 |
ifFalse: [self repository doAlwaysStoreDiffs]
|
|
409 |
!
|
|
410 |
|
|
411 |
unsortedWorkingCopies
|
|
412 |
^ MCWorkingCopy allManagers
|
|
413 |
!
|
|
414 |
|
|
415 |
update: aSymbol
|
|
416 |
self unsortedWorkingCopies do: [:ea | ea addDependent: self].
|
|
417 |
self workingCopyListChanged.
|
|
418 |
!
|
|
419 |
|
|
420 |
widgetSpecs
|
|
421 |
^ #(
|
|
422 |
((buttonRow) (0 0 1 0) (0 0 0 30))
|
|
423 |
((treeOrListMorph: workingCopy) (0 0 0.5 1) (0 30 0 0))
|
|
424 |
((listMorph: repository) (0.5 0 1 1) (0 30 0 0))
|
|
425 |
)
|
|
426 |
!
|
|
427 |
|
|
428 |
workingCopies
|
|
429 |
^ MCWorkingCopy allManagers asSortedCollection:
|
|
430 |
[ :a :b | a package name <= b package name ]
|
|
431 |
!
|
|
432 |
|
|
433 |
workingCopy: wc
|
|
434 |
workingCopy _ wc.
|
|
435 |
self changed: #workingCopyList; changed: #workingCopySelection; changed: #repositoryList.
|
|
436 |
self changedButtons.
|
|
437 |
!
|
|
438 |
|
|
439 |
workingCopyList
|
|
440 |
^ self workingCopies collect:
|
|
441 |
[:ea |
|
|
442 |
(workingCopy notNil and: [workingCopy requiredPackages includes: ea package])
|
|
443 |
ifTrue: [Text string: ea description emphasis: (Array with: TextEmphasis bold)]
|
|
444 |
ifFalse: [ea description]]
|
|
445 |
!
|
|
446 |
|
|
447 |
workingCopyListChanged
|
|
448 |
self changed: #workingCopyList.
|
|
449 |
self changed: #workingCopyTree.
|
|
450 |
self changedButtons.
|
|
451 |
!
|
|
452 |
|
|
453 |
workingCopyListMenu: aMenu
|
|
454 |
workingCopy ifNil: [^ aMenu].
|
|
455 |
self fillMenu: aMenu fromSpecs:
|
|
456 |
#(('add required package' #addRequiredPackage)
|
|
457 |
('clear required packages' #clearRequiredPackages)
|
|
458 |
('browse package' #browseWorkingCopy)
|
|
459 |
('view changes' #viewChanges)
|
|
460 |
('view history' #viewHistory)
|
|
461 |
('recompile package' #recompilePackage)
|
|
462 |
('revert package...' #revertPackage)
|
|
463 |
('trim ancestry' #trimAncestry)
|
|
464 |
('unload package' #unloadPackage)
|
|
465 |
('delete working copy' #deleteWorkingCopy)).
|
|
466 |
(Smalltalk includesKey: #SARMCPackageDumper) ifTrue: [
|
|
467 |
aMenu add: 'make SAR' target: self selector: #fileOutAsSAR
|
|
468 |
].
|
|
469 |
^aMenu
|
|
470 |
!
|
|
471 |
|
|
472 |
workingCopyListMorph
|
|
473 |
^ PluggableMultiColumnListMorph
|
|
474 |
on: self
|
|
475 |
list: #workingCopyList
|
|
476 |
selected: #workingCopySelection
|
|
477 |
changeSelected: #workingCopySelection:
|
|
478 |
menu: #workingCopyListMenu:
|
|
479 |
!
|
|
480 |
|
|
481 |
workingCopySelection
|
|
482 |
^ self workingCopies indexOf: workingCopy
|
|
483 |
!
|
|
484 |
|
|
485 |
workingCopySelection: aNumber
|
|
486 |
self workingCopy:
|
|
487 |
(aNumber = 0
|
|
488 |
ifTrue:[nil]
|
|
489 |
ifFalse:[self workingCopies at: aNumber]).
|
|
490 |
!
|
|
491 |
|
|
492 |
workingCopySelectionWrapper
|
|
493 |
^workingCopyWrapper
|
|
494 |
!
|
|
495 |
|
|
496 |
workingCopySelectionWrapper: aWrapper
|
|
497 |
workingCopyWrapper := aWrapper.
|
|
498 |
self changed: #workingCopySelectionWrapper.
|
|
499 |
self workingCopy: (aWrapper ifNotNil:[aWrapper item])
|
|
500 |
!
|
|
501 |
|
|
502 |
workingCopyTree
|
|
503 |
^ self workingCopies collect:[:each| MCDependentsWrapper with: each model: self].
|
|
504 |
!
|
|
505 |
|
|
506 |
workingCopyTreeMenu: aMenu
|
|
507 |
workingCopy ifNil: [^ aMenu].
|
|
508 |
self fillMenu: aMenu fromSpecs:
|
|
509 |
#(('add required package' #addRequiredPackage)
|
|
510 |
('clear required packages' #clearRequiredPackages)
|
|
511 |
('browse package' #browseWorkingCopy)
|
|
512 |
('view changes' #viewChanges)
|
|
513 |
('view history' #viewHistory)
|
|
514 |
('recompile package' #recompilePackage)
|
|
515 |
('revert package...' #revertPackage)
|
|
516 |
('unload package' #unloadPackage)
|
|
517 |
('trim ancestry' #trimAncestry)
|
|
518 |
('delete working copy' #deleteWorkingCopy)
|
|
519 |
('inspect working copy' #inspectWorkingCopy)).
|
|
520 |
(Smalltalk includesKey: #SARMCPackageDumper) ifTrue: [
|
|
521 |
aMenu add: 'make SAR' target: self selector: #fileOutAsSAR
|
|
522 |
].
|
|
523 |
^aMenu
|
|
524 |
!
|
|
525 |
|
|
526 |
workingCopyTreeMorph
|
|
527 |
^ SimpleHierarchicalListMorph
|
|
528 |
on: self
|
|
529 |
list: #workingCopyTree
|
|
530 |
selected: #workingCopyWrapper
|
|
531 |
changeSelected: #workingCopyWrapper:
|
|
532 |
menu: #workingCopyListMenu:
|
|
533 |
! !
|
|
534 |
|
|
535 |
!MCWorkingCopyBrowser class methodsFor:'documentation'!
|
|
536 |
|
|
537 |
version
|
602
|
538 |
^ '$Header: /cvs/stx/stx/goodies/monticello/MCWorkingCopyBrowser.st,v 1.2 2012-09-11 21:15:12 cg Exp $'
|
133
|
539 |
! !
|
|
540 |
|
|
541 |
MCWorkingCopyBrowser initialize!
|