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 |
|
235
|
94 |
!MethodCategoryChange class methodsFor:'documentation'!
|
|
95 |
|
|
96 |
version
|
957
|
97 |
^ '$Header: /cvs/stx/stx/libbasic3/MethodCategoryChange.st,v 1.11 2000-08-22 19:57:29 cg Exp $'
|
235
|
98 |
! !
|