author | Claus Gittinger <cg@exept.de> |
Thu, 31 Aug 2000 12:10:58 +0200 | |
changeset 964 | 64282b5e5c48 |
parent 957 | 54dade11e57f |
child 1009 | 417e1752083f |
permissions | -rw-r--r-- |
25 | 1 |
" |
2 |
COPYRIGHT (c) 1993 by Claus Gittinger |
|
3 |
All Rights Reserved |
|
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 |
" |
|
15 | 12 |
|
957 | 13 |
"{ Package: 'stx:libbasic3' }" |
14 |
||
15 | 15 |
MethodChange subclass:#MethodCategoryChange |
852 | 16 |
instanceVariableNames:'' |
235 | 17 |
classVariableNames:'' |
18 |
poolDictionaries:'' |
|
19 |
category:'System-Changes' |
|
15 | 20 |
! |
21 |
||
25 | 22 |
!MethodCategoryChange class methodsFor:'documentation'! |
23 |
||
24 |
copyright |
|
25 |
" |
|
26 |
COPYRIGHT (c) 1993 by Claus Gittinger |
|
27 |
All Rights Reserved |
|
28 |
||
29 |
This software is furnished under a license and may be used |
|
30 |
only in accordance with the terms of that license and with the |
|
31 |
inclusion of the above copyright notice. This software may not |
|
32 |
be provided or otherwise made available to, or used by, any |
|
33 |
other person. No title to or ownership of the software is |
|
34 |
hereby transferred. |
|
35 |
" |
|
36 |
! |
|
37 |
||
45 | 38 |
documentation |
39 |
" |
|
40 |
instances represent method-category changes (as done in the browser). |
|
41 |
They are typically held in a ChangeSet. |
|
235 | 42 |
|
43 |
[author:] |
|
44 |
Claus Gittinger |
|
45 | 45 |
" |
25 | 46 |
! ! |
47 |
||
15 | 48 |
!MethodCategoryChange class methodsFor:'instance creation'! |
49 |
||
50 |
class:cls selector:sel category:cat |
|
51 |
^ self basicNew class:cls selector:sel category:cat |
|
52 |
||
53 |
||
54 |
! ! |
|
55 |
||
56 |
!MethodCategoryChange methodsFor:'accessing'! |
|
57 |
||
58 |
class:cls selector:sel category:cat |
|
59 |
className := cls name. |
|
60 |
selector := sel. |
|
852 | 61 |
methodCategory := cat |
15 | 62 |
|
85 | 63 |
! |
64 |
||
654 | 65 |
className:clsName selector:sel category:cat |
66 |
className := clsName. |
|
67 |
selector := sel. |
|
852 | 68 |
methodCategory := cat |
654 | 69 |
|
70 |
"Created: / 16.2.1998 / 14:14:16 / cg" |
|
71 |
! |
|
72 |
||
85 | 73 |
source |
852 | 74 |
^ '(' , className , ' compiledMethodAt:#' , selector , ') category:' , methodCategory storeString |
75 |
||
76 |
! ! |
|
77 |
||
78 |
!MethodCategoryChange methodsFor:'applying'! |
|
79 |
||
80 |
apply |
|
81 |
"apply the change" |
|
85 | 82 |
|
852 | 83 |
|cls mthd| |
84 |
||
85 |
cls := self changeClass. |
|
86 |
mthd := self changeMethod. |
|
87 |
||
88 |
mthd category:methodCategory asSymbol. |
|
89 |
cls changed:#organization with:self changeSelector. |
|
90 |
mthd changed:#category. |
|
91 |
cls addChangeRecordForMethodCategory:mthd category:methodCategory. |
|
15 | 92 |
! ! |
93 |
||
964
64282b5e5c48
added #isMEthodCategoryChange
Claus Gittinger <cg@exept.de>
parents:
957
diff
changeset
|
94 |
!MethodCategoryChange methodsFor:'queries'! |
64282b5e5c48
added #isMEthodCategoryChange
Claus Gittinger <cg@exept.de>
parents:
957
diff
changeset
|
95 |
|
64282b5e5c48
added #isMEthodCategoryChange
Claus Gittinger <cg@exept.de>
parents:
957
diff
changeset
|
96 |
isMethodCategoryChange |
64282b5e5c48
added #isMEthodCategoryChange
Claus Gittinger <cg@exept.de>
parents:
957
diff
changeset
|
97 |
^ true |
64282b5e5c48
added #isMEthodCategoryChange
Claus Gittinger <cg@exept.de>
parents:
957
diff
changeset
|
98 |
! ! |
64282b5e5c48
added #isMEthodCategoryChange
Claus Gittinger <cg@exept.de>
parents:
957
diff
changeset
|
99 |
|
235 | 100 |
!MethodCategoryChange class methodsFor:'documentation'! |
101 |
||
102 |
version |
|
964
64282b5e5c48
added #isMEthodCategoryChange
Claus Gittinger <cg@exept.de>
parents:
957
diff
changeset
|
103 |
^ '$Header: /cvs/stx/stx/libbasic3/MethodCategoryChange.st,v 1.12 2000-08-31 10:10:58 cg Exp $' |
235 | 104 |
! ! |