MetacelloProjectSpecGenerator.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Wed, 05 Sep 2012 16:35:54 +0000
changeset 7 759ff40b4754
parent 1 9e312de5f694
permissions -rw-r--r--
- stx_goodies_metacello_stx added: #extensionMethodNames changed: #classNamesAndAttributes #preRequisites
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
9e312de5f694 - Initial commit
jv
parents:
diff changeset
     1
"{ Package: 'stx:goodies/metacello' }"
9e312de5f694 - Initial commit
jv
parents:
diff changeset
     2
9e312de5f694 - Initial commit
jv
parents:
diff changeset
     3
Object subclass:#MetacelloProjectSpecGenerator
9e312de5f694 - Initial commit
jv
parents:
diff changeset
     4
	instanceVariableNames:'target'
9e312de5f694 - Initial commit
jv
parents:
diff changeset
     5
	classVariableNames:''
9e312de5f694 - Initial commit
jv
parents:
diff changeset
     6
	poolDictionaries:''
9e312de5f694 - Initial commit
jv
parents:
diff changeset
     7
	category:'Metacello-Core-Scripts'
9e312de5f694 - Initial commit
jv
parents:
diff changeset
     8
!
9e312de5f694 - Initial commit
jv
parents:
diff changeset
     9
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    10
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    11
!MetacelloProjectSpecGenerator methodsFor:'accessing'!
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    12
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    13
projectSpecCreationBlock
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    14
    ^ [ :projectName | {(MetacelloMCProject new projectSpec name: projectName)} ]
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    15
!
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    16
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    17
projectSpecListBlock
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    18
    ^ [ MetacelloProjectRegistration projectSpecs ]
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    19
!
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    20
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    21
projectSpecLookupBlock
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    22
    ^ [ :projectName | 
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    23
    {(MetacelloProjectRegistration
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    24
        projectSpecForClassNamed: (MetacelloScriptEngine baselineNameFrom: projectName)
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    25
        ifAbsent: [  ]).
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    26
    (MetacelloProjectRegistration
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    27
        projectSpecForClassNamed: (MetacelloScriptEngine configurationNameFrom: projectName)
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    28
        ifAbsent: [  ])} ]
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    29
!
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    30
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    31
target
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    32
	^ target
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    33
!
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    34
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    35
target: anObject
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    36
	target := anObject
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    37
! !
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    38
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    39
!MetacelloProjectSpecGenerator class methodsFor:'documentation'!
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    40
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    41
version_SVN
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    42
    ^ '$Id::                                                                                                                        $'
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    43
! !