author | Claus Gittinger <cg@exept.de> |
Fri, 20 Jul 2001 14:17:49 +0200 | |
changeset 1052 | cc84f5e27bb5 |
parent 1009 | 417e1752083f |
child 1846 | c0f8e12c9611 |
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 |
||
1052 | 73 |
prettyPrintedSource |
74 |
^ '(' , className , ' compiledMethodAt:#' , selector , ')' , Character cr |
|
75 |
, ' category:' , methodCategory storeString |
|
76 |
! |
|
77 |
||
85 | 78 |
source |
852 | 79 |
^ '(' , className , ' compiledMethodAt:#' , selector , ') category:' , methodCategory storeString |
80 |
||
81 |
! ! |
|
82 |
||
83 |
!MethodCategoryChange methodsFor:'applying'! |
|
84 |
||
85 |
apply |
|
86 |
"apply the change" |
|
85 | 87 |
|
852 | 88 |
|cls mthd| |
89 |
||
90 |
cls := self changeClass. |
|
91 |
mthd := self changeMethod. |
|
92 |
||
93 |
mthd category:methodCategory asSymbol. |
|
94 |
cls addChangeRecordForMethodCategory:mthd category:methodCategory. |
|
15 | 95 |
! ! |
96 |
||
964
64282b5e5c48
added #isMEthodCategoryChange
Claus Gittinger <cg@exept.de>
parents:
957
diff
changeset
|
97 |
!MethodCategoryChange methodsFor:'queries'! |
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 |
isMethodCategoryChange |
64282b5e5c48
added #isMEthodCategoryChange
Claus Gittinger <cg@exept.de>
parents:
957
diff
changeset
|
100 |
^ true |
64282b5e5c48
added #isMEthodCategoryChange
Claus Gittinger <cg@exept.de>
parents:
957
diff
changeset
|
101 |
! ! |
64282b5e5c48
added #isMEthodCategoryChange
Claus Gittinger <cg@exept.de>
parents:
957
diff
changeset
|
102 |
|
235 | 103 |
!MethodCategoryChange class methodsFor:'documentation'! |
104 |
||
105 |
version |
|
1052 | 106 |
^ '$Header: /cvs/stx/stx/libbasic3/MethodCategoryChange.st,v 1.14 2001-07-20 12:17:40 cg Exp $' |
235 | 107 |
! ! |