author | Claus Gittinger <cg@exept.de> |
Sun, 03 Dec 1995 19:12:46 +0100 | |
changeset 102 | 3f85fe87cc58 |
parent 101 | 9a1c22e807e0 |
child 235 | 3ebfdc6edab9 |
permissions | -rw-r--r-- |
3 | 1 |
" |
2 |
COPYRIGHT (c) 1993 by Claus Gittinger |
|
16 | 3 |
All Rights Reserved |
3 | 4 |
|
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
0 | 12 |
|
13 |
OrderedCollection subclass:#ChangeSet |
|
14 |
instanceVariableNames:'' |
|
15 |
classVariableNames:'' |
|
16 |
poolDictionaries:'' |
|
17 |
category:'System-Changes' |
|
18 |
! |
|
19 |
||
9 | 20 |
!ChangeSet class methodsFor:'documentation'! |
21 |
||
22 |
copyright |
|
23 |
" |
|
24 |
COPYRIGHT (c) 1993 by Claus Gittinger |
|
16 | 25 |
All Rights Reserved |
9 | 26 |
|
27 |
This software is furnished under a license and may be used |
|
28 |
only in accordance with the terms of that license and with the |
|
29 |
inclusion of the above copyright notice. This software may not |
|
30 |
be provided or otherwise made available to, or used by, any |
|
31 |
other person. No title to or ownership of the software is |
|
32 |
hereby transferred. |
|
33 |
" |
|
34 |
! |
|
35 |
||
36 |
documentation |
|
37 |
" |
|
38 |
used in the changes management to keep track of changes |
|
39 |
" |
|
40 |
! ! |
|
41 |
||
27 | 42 |
!ChangeSet class methodsFor:'queries'! |
43 |
||
44 |
current |
|
45 |
"ST-80 compatibility: return the current changeSet" |
|
46 |
||
47 |
|p| |
|
48 |
||
49 |
(Project notNil and:[(p := Project current) notNil]) ifTrue:[ |
|
50 |
^ p changeSet |
|
51 |
] |
|
52 |
||
53 |
" |
|
54 |
ChangeSet current |
|
55 |
" |
|
56 |
! ! |
|
57 |
||
0 | 58 |
!ChangeSet methodsFor:'change management'! |
59 |
||
100 | 60 |
addClassCategoryChange:newCategory for:aClass |
61 |
|newChange| |
|
62 |
||
63 |
newChange := ClassCategoryChange class:aClass category:newCategory. |
|
64 |
self add:newChange |
|
65 |
||
66 |
"Created: 3.12.1995 / 13:45:53 / cg" |
|
67 |
! |
|
68 |
||
69 |
addClassDefinitionChangeFor:aClass |
|
70 |
|newChange| |
|
71 |
||
72 |
newChange := ClassDefinitionChange class:aClass. |
|
73 |
self add:newChange |
|
74 |
||
75 |
"Modified: 3.12.1995 / 14:05:57 / cg" |
|
76 |
! |
|
77 |
||
101 | 78 |
addPrimitiveDefinitionsChangeFor:aClass |
79 |
|newChange| |
|
80 |
||
81 |
newChange := ClassPrimitiveDefinitionsChange class:aClass. |
|
82 |
self add:newChange |
|
83 |
! |
|
84 |
||
85 |
addPrimitiveFunctionsChangeFor:aClass |
|
86 |
|newChange| |
|
87 |
||
88 |
newChange := ClassPrimitiveFunctionsChange class:aClass. |
|
89 |
self add:newChange |
|
90 |
! |
|
91 |
||
92 |
addPrimitiveVariablesChangeFor:aClass |
|
93 |
|newChange| |
|
94 |
||
95 |
newChange := ClassPrimitiveVariablesChange class:aClass. |
|
96 |
self add:newChange |
|
97 |
! |
|
98 |
||
16 | 99 |
addMethodCategoryChange:aMethod category:newCategory in:aClass |
100 |
|newChange| |
|
101 |
||
102 |
newChange := MethodCategoryChange class:aClass |
|
27 | 103 |
selector:(aClass selectorAtMethod:aMethod) |
16 | 104 |
category:newCategory. |
105 |
self add:newChange |
|
106 |
||
44 | 107 |
! |
108 |
||
85 | 109 |
addMethodChange:aMethod in:aClass |
110 |
|newChange| |
|
111 |
||
112 |
newChange := MethodChange class:aClass |
|
113 |
selector:(aClass selectorAtMethod:aMethod) |
|
102
3f85fe87cc58
include category in methodChanges
Claus Gittinger <cg@exept.de>
parents:
101
diff
changeset
|
114 |
source:aMethod source |
3f85fe87cc58
include category in methodChanges
Claus Gittinger <cg@exept.de>
parents:
101
diff
changeset
|
115 |
category:aMethod category. |
85 | 116 |
self add:newChange |
117 |
! |
|
118 |
||
44 | 119 |
addMethodPrivacyChange:aMethod in:aClass |
120 |
|newChange| |
|
121 |
||
122 |
newChange := MethodPrivacyChange class:aClass |
|
123 |
selector:(aClass selectorAtMethod:aMethod) |
|
124 |
privacy:aMethod privacy. |
|
125 |
self add:newChange |
|
126 |
||
127 |
"Modified: 27.8.1995 / 22:55:22 / claus" |
|
0 | 128 |
! ! |
129 |
||
85 | 130 |
!ChangeSet methodsFor:'misc'! |
131 |
||
132 |
addPatch:nameOfPatch |
|
133 |
"ignored for now - allows fileIn of ST-80 patch stuff .." |
|
134 |
||
135 |
^ self |
|
136 |
! ! |
|
137 |
||
100 | 138 |
!ChangeSet class methodsFor:'documentation'! |
139 |
||
140 |
version |
|
102
3f85fe87cc58
include category in methodChanges
Claus Gittinger <cg@exept.de>
parents:
101
diff
changeset
|
141 |
^ '$Header: /cvs/stx/stx/libbasic3/ChangeSet.st,v 1.16 1995-12-03 18:12:45 cg Exp $' |
100 | 142 |
! ! |