author | Claus Gittinger <cg@exept.de> |
Wed, 14 Apr 2010 15:40:43 +0200 | |
changeset 2263 | c514b61ac1b2 |
parent 2131 | 0feb8bbb287d |
child 2622 | 853e24f6b303 |
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 methodsFor:'accessing'! |
48 |
||
49 |
class:cls selector:sel category:cat |
|
1902
20db5f942dbd
changed #class:selector:category:
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
50 |
self className:cls name selector:sel category:cat |
15 | 51 |
|
1902
20db5f942dbd
changed #class:selector:category:
Claus Gittinger <cg@exept.de>
parents:
1846
diff
changeset
|
52 |
"Modified: / 12-11-2006 / 15:55:11 / cg" |
85 | 53 |
! |
54 |
||
654 | 55 |
className:clsName selector:sel category:cat |
56 |
className := clsName. |
|
57 |
selector := sel. |
|
852 | 58 |
methodCategory := cat |
654 | 59 |
|
60 |
"Created: / 16.2.1998 / 14:14:16 / cg" |
|
61 |
! |
|
62 |
||
1052 | 63 |
prettyPrintedSource |
1846 | 64 |
^ self sourceForMethod, Character cr |
1052 | 65 |
, ' category:' , methodCategory storeString |
1846 | 66 |
|
67 |
"Modified: / 09-10-2006 / 13:59:15 / cg" |
|
1052 | 68 |
! |
69 |
||
85 | 70 |
source |
1846 | 71 |
^ self sourceForMethod , ' category:' , methodCategory storeString |
852 | 72 |
|
1846 | 73 |
"Modified: / 09-10-2006 / 13:59:10 / cg" |
852 | 74 |
! ! |
75 |
||
76 |
!MethodCategoryChange methodsFor:'applying'! |
|
77 |
||
78 |
apply |
|
79 |
"apply the change" |
|
85 | 80 |
|
1915
d23534c8ab03
the method does the change-file-update; NOT me
Claus Gittinger <cg@exept.de>
parents:
1902
diff
changeset
|
81 |
|mthd| |
852 | 82 |
|
83 |
mthd := self changeMethod. |
|
1915
d23534c8ab03
the method does the change-file-update; NOT me
Claus Gittinger <cg@exept.de>
parents:
1902
diff
changeset
|
84 |
mthd category:methodCategory asSymbol. |
852 | 85 |
|
1915
d23534c8ab03
the method does the change-file-update; NOT me
Claus Gittinger <cg@exept.de>
parents:
1902
diff
changeset
|
86 |
"Modified: / 23-11-2006 / 16:59:09 / cg" |
15 | 87 |
! ! |
88 |
||
2131 | 89 |
!MethodCategoryChange methodsFor:'testing'! |
964
64282b5e5c48
added #isMEthodCategoryChange
Claus Gittinger <cg@exept.de>
parents:
957
diff
changeset
|
90 |
|
64282b5e5c48
added #isMEthodCategoryChange
Claus Gittinger <cg@exept.de>
parents:
957
diff
changeset
|
91 |
isMethodCategoryChange |
64282b5e5c48
added #isMEthodCategoryChange
Claus Gittinger <cg@exept.de>
parents:
957
diff
changeset
|
92 |
^ true |
2263 | 93 |
! |
94 |
||
95 |
isMethodCodeChange |
|
96 |
"true if this is a method's code change (not package, category etc.)" |
|
97 |
||
98 |
^ false |
|
964
64282b5e5c48
added #isMEthodCategoryChange
Claus Gittinger <cg@exept.de>
parents:
957
diff
changeset
|
99 |
! ! |
64282b5e5c48
added #isMEthodCategoryChange
Claus Gittinger <cg@exept.de>
parents:
957
diff
changeset
|
100 |
|
235 | 101 |
!MethodCategoryChange class methodsFor:'documentation'! |
102 |
||
103 |
version |
|
2263 | 104 |
^ '$Header: /cvs/stx/stx/libbasic3/MethodCategoryChange.st,v 1.20 2010-04-14 13:40:43 cg Exp $' |
105 |
! |
|
106 |
||
107 |
version_CVS |
|
108 |
^ '$Header: /cvs/stx/stx/libbasic3/MethodCategoryChange.st,v 1.20 2010-04-14 13:40:43 cg Exp $' |
|
235 | 109 |
! ! |