author | Claus Gittinger <cg@exept.de> |
Sat, 11 Nov 1995 16:20:50 +0100 | |
changeset 68 | 5f7ac0b5c903 |
parent 44 | 27caba2cee6b |
child 85 | c354e2f81394 |
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 |
version |
|
68
5f7ac0b5c903
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
44
diff
changeset
|
37 |
^ '$Header: /cvs/stx/stx/libbasic3/ChangeSet.st,v 1.12 1995-11-11 15:20:26 cg Exp $' |
9 | 38 |
! |
39 |
||
40 |
documentation |
|
41 |
" |
|
42 |
used in the changes management to keep track of changes |
|
43 |
" |
|
44 |
! ! |
|
45 |
||
46 |
||
27 | 47 |
!ChangeSet class methodsFor:'queries'! |
48 |
||
49 |
current |
|
50 |
"ST-80 compatibility: return the current changeSet" |
|
51 |
||
52 |
|p| |
|
53 |
||
54 |
(Project notNil and:[(p := Project current) notNil]) ifTrue:[ |
|
55 |
^ p changeSet |
|
56 |
] |
|
57 |
||
58 |
" |
|
59 |
ChangeSet current |
|
60 |
" |
|
61 |
! ! |
|
62 |
||
28 | 63 |
!ChangeSet methodsFor:'misc'! |
64 |
||
65 |
addPatch:nameOfPatch |
|
66 |
"ignored for now - allows fileIn of ST-80 patch stuff .." |
|
67 |
||
68 |
^ self |
|
69 |
! ! |
|
70 |
||
0 | 71 |
!ChangeSet methodsFor:'change management'! |
72 |
||
73 |
addMethodChange:aMethod in:aClass |
|
74 |
|newChange| |
|
75 |
||
76 |
newChange := MethodChange class:aClass |
|
27 | 77 |
selector:(aClass selectorAtMethod:aMethod) |
16 | 78 |
source:aMethod source. |
0 | 79 |
self add:newChange |
16 | 80 |
! |
81 |
||
82 |
addMethodCategoryChange:aMethod category:newCategory in:aClass |
|
83 |
|newChange| |
|
84 |
||
85 |
newChange := MethodCategoryChange class:aClass |
|
27 | 86 |
selector:(aClass selectorAtMethod:aMethod) |
16 | 87 |
category:newCategory. |
88 |
self add:newChange |
|
89 |
||
44 | 90 |
! |
91 |
||
92 |
addMethodPrivacyChange:aMethod in:aClass |
|
93 |
|newChange| |
|
94 |
||
95 |
newChange := MethodPrivacyChange class:aClass |
|
96 |
selector:(aClass selectorAtMethod:aMethod) |
|
97 |
privacy:aMethod privacy. |
|
98 |
self add:newChange |
|
99 |
||
100 |
"Modified: 27.8.1995 / 22:55:22 / claus" |
|
0 | 101 |
! ! |
102 |