62
|
1 |
"{ Package: 'stx:goodies/monticello' }"
|
|
2 |
|
|
3 |
MCPatchOperation subclass:#MCAddition
|
|
4 |
instanceVariableNames:'definition'
|
|
5 |
classVariableNames:''
|
|
6 |
poolDictionaries:''
|
608
|
7 |
category:'SCM-Monticello-Patching'
|
62
|
8 |
!
|
|
9 |
|
|
10 |
|
|
11 |
!MCAddition class methodsFor:'as yet unclassified'!
|
|
12 |
|
|
13 |
of: aDefinition
|
|
14 |
^ self new intializeWithDefinition: aDefinition
|
|
15 |
! !
|
|
16 |
|
|
17 |
!MCAddition methodsFor:'accessing'!
|
|
18 |
|
|
19 |
applyTo: anObject
|
|
20 |
anObject addDefinition: definition
|
|
21 |
!
|
|
22 |
|
|
23 |
baseDefinition
|
|
24 |
^ nil
|
|
25 |
!
|
|
26 |
|
|
27 |
definition
|
|
28 |
^ definition
|
|
29 |
!
|
|
30 |
|
|
31 |
fromSource
|
|
32 |
^ ''
|
|
33 |
!
|
|
34 |
|
|
35 |
sourceString
|
|
36 |
^(self toSource asText)
|
|
37 |
addAttribute: TextColor red;
|
|
38 |
yourself
|
|
39 |
!
|
|
40 |
|
|
41 |
summary
|
|
42 |
^ definition summary
|
|
43 |
!
|
|
44 |
|
|
45 |
targetClass
|
|
46 |
^definition actualClass
|
|
47 |
!
|
|
48 |
|
|
49 |
targetDefinition
|
|
50 |
^ definition
|
|
51 |
!
|
|
52 |
|
|
53 |
toSource
|
|
54 |
^ definition source
|
|
55 |
! !
|
|
56 |
|
|
57 |
!MCAddition methodsFor:'as yet unclassified'!
|
|
58 |
|
|
59 |
inverse
|
|
60 |
^ MCRemoval of: definition
|
|
61 |
!
|
|
62 |
|
|
63 |
isClassPatch
|
|
64 |
^definition isClassDefinition
|
|
65 |
! !
|
|
66 |
|
|
67 |
!MCAddition methodsFor:'initializing'!
|
|
68 |
|
|
69 |
intializeWithDefinition: aDefinition
|
|
70 |
definition _ aDefinition
|
|
71 |
! !
|
|
72 |
|
|
73 |
!MCAddition methodsFor:'testing'!
|
|
74 |
|
|
75 |
isAddition
|
|
76 |
^ true
|
|
77 |
! !
|
|
78 |
|
|
79 |
!MCAddition class methodsFor:'documentation'!
|
|
80 |
|
|
81 |
version
|
608
|
82 |
^ '$Header: /cvs/stx/stx/goodies/monticello/MCAddition.st,v 1.2 2012-09-11 21:20:14 cg Exp $'
|
62
|
83 |
! !
|