MCDependentsWrapper.st
author Claus Gittinger <cg@exept.de>
Mon, 14 May 2018 02:21:18 +0200
changeset 1048 582b3a028cbc
parent 620 f924164d37c0
child 995 92bb466548a9
permissions -rw-r--r--
#FEATURE by cg class: MCMethodDefinition changed: #postloadOver:
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
122
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     1
"{ Package: 'stx:goodies/monticello' }"
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     2
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     3
ListItemWrapper subclass:#MCDependentsWrapper
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     4
	instanceVariableNames:''
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     5
	classVariableNames:''
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     6
	poolDictionaries:''
620
f924164d37c0 category change
Claus Gittinger <cg@exept.de>
parents: 122
diff changeset
     7
	category:'SCM-Monticello-UI'
122
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     8
!
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     9
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    10
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    11
!MCDependentsWrapper methodsFor:'as yet unclassified'!
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
asString
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
	^item description
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    15
!
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
contents
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
	| list workingCopies |
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
	workingCopies := model unsortedWorkingCopies.
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
	list := item requiredPackages collect: 
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
					[:each | 
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
					workingCopies detect: [:wc | wc package = each] ifNone: [nil]]
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
				thenSelect: [:x | x notNil].
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    24
	^list collect: [:each | self class with: each model: model]
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    25
!
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    27
hasContents
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    28
	^item requiredPackages isEmpty not
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    29
!
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    30
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    31
item
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    32
	^item
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    33
! !
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    34
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    35
!MCDependentsWrapper class methodsFor:'documentation'!
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    36
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    37
version
620
f924164d37c0 category change
Claus Gittinger <cg@exept.de>
parents: 122
diff changeset
    38
    ^ '$Header: /cvs/stx/stx/goodies/monticello/MCDependentsWrapper.st,v 1.2 2012-09-11 21:21:24 cg Exp $'
122
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    39
! !