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