MetacelloAllowProjectUpgrade.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
MetacelloResolveProjectUpgrade subclass:#MetacelloAllowProjectUpgrade
9e312de5f694 - Initial commit
jv
parents:
diff changeset
     4
	instanceVariableNames:''
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
!MetacelloAllowProjectUpgrade methodsFor:'accessing'!
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    12
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    13
operationString
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    14
    ^ 'upgrade'
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    15
! !
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    16
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    17
!MetacelloAllowProjectUpgrade methodsFor:'exception handling'!
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    18
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    19
defaultAction
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    20
    "Default for Upgrade is to allow"
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    21
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    22
    self checkAllowed.
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    23
    ^ self newProjectRegistration
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    24
! !
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    25
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    26
!MetacelloAllowProjectUpgrade methodsFor:'handlers'!
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    27
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    28
handleOnDownGrade: onDownGradeBlock onUpgrade: onUpgradeBlock
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    29
    ^ onUpgradeBlock cull: self cull: self existingProjectRegistration cull: self newProjectRegistration
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    30
!
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    31
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    32
handleResolutionFor: aScriptEngine
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    33
    ^ aScriptEngine handleUpgrade: self
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    34
! !
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    35
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    36
!MetacelloAllowProjectUpgrade class methodsFor:'documentation'!
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    37
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    38
version_SVN
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    39
    ^ '$Id::                                                                                                                        $'
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    40
! !