MCDependentsWrapper.st
author Patrik Svestka <patrik.svestka@gmail.com>
Wed, 14 Nov 2018 12:57:13 +0100
branchjv
changeset 1095 87f223484bc3
parent 995 92bb466548a9
child 1121 c5661215109c
permissions -rw-r--r--
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 - All source *.st files are now Unicode UTF8 without BOM Files are in two groups (fileOut works this way in Smalltalk/X): - containing a unicode character have "{ Encoding: utf8 }" at the header - ASCII only are without the header
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
995
92bb466548a9 Removed test classes from stx:goodies/monticello - they're in tests sub package.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 620
diff changeset
     3
"{ NameSpace: Smalltalk }"
92bb466548a9 Removed test classes from stx:goodies/monticello - they're in tests sub package.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 620
diff changeset
     4
122
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     5
ListItemWrapper subclass:#MCDependentsWrapper
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     6
	instanceVariableNames:''
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     7
	classVariableNames:''
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     8
	poolDictionaries:''
620
f924164d37c0 category change
Claus Gittinger <cg@exept.de>
parents: 122
diff changeset
     9
	category:'SCM-Monticello-UI'
122
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    10
!
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    11
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
!MCDependentsWrapper methodsFor:'as yet unclassified'!
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    15
asString
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
	^item description
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
!
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
contents
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
	| list workingCopies |
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
	workingCopies := model unsortedWorkingCopies.
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
	list := item requiredPackages collect: 
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
					[:each | 
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    24
					workingCopies detect: [:wc | wc package = each] ifNone: [nil]]
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    25
				thenSelect: [:x | x notNil].
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
	^list collect: [:each | self class with: each model: model]
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    27
!
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    28
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    29
hasContents
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    30
	^item requiredPackages isEmpty not
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    31
!
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    32
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    33
item
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    34
	^item
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    35
! !
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    36
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    37
!MCDependentsWrapper class methodsFor:'documentation'!
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    38
4452306c6887 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    39
version
620
f924164d37c0 category change
Claus Gittinger <cg@exept.de>
parents: 122
diff changeset
    40
    ^ '$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
    41
! !
995
92bb466548a9 Removed test classes from stx:goodies/monticello - they're in tests sub package.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 620
diff changeset
    42