1843
|
1 |
"
|
|
2 |
COPYRIGHT (c) 2006 by eXept Software AG
|
|
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 |
"
|
|
12 |
"{ Package: 'stx:libbasic3' }"
|
|
13 |
|
|
14 |
MethodChange subclass:#MethodPackageChange
|
|
15 |
instanceVariableNames:''
|
|
16 |
classVariableNames:''
|
|
17 |
poolDictionaries:''
|
|
18 |
category:'System-Changes'
|
|
19 |
!
|
|
20 |
|
|
21 |
!MethodPackageChange class methodsFor:'documentation'!
|
|
22 |
|
|
23 |
copyright
|
|
24 |
"
|
|
25 |
COPYRIGHT (c) 2006 by eXept Software AG
|
|
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 |
|
|
37 |
documentation
|
|
38 |
"
|
|
39 |
instances represent method-package changes (as done in the browser).
|
|
40 |
They are typically held in a ChangeSet.
|
|
41 |
|
|
42 |
[author:]
|
|
43 |
Claus Gittinger
|
|
44 |
"
|
|
45 |
! !
|
|
46 |
|
|
47 |
!MethodPackageChange class methodsFor:'instance creation'!
|
|
48 |
|
|
49 |
class:cls selector:sel package:pkg
|
|
50 |
^ self basicNew class:cls selector:sel package:pkg
|
|
51 |
|
|
52 |
"Created: / 09-10-2006 / 14:00:22 / cg"
|
|
53 |
! !
|
|
54 |
|
|
55 |
!MethodPackageChange methodsFor:'accessing'!
|
|
56 |
|
|
57 |
class:cls selector:sel package:pkg
|
|
58 |
className := cls name.
|
|
59 |
selector := sel.
|
|
60 |
package := pkg
|
|
61 |
|
|
62 |
"Created: / 09-10-2006 / 13:56:20 / cg"
|
|
63 |
!
|
|
64 |
|
|
65 |
className:clsName selector:sel package:pkg
|
|
66 |
className := clsName.
|
|
67 |
selector := sel.
|
|
68 |
package := pkg
|
|
69 |
|
|
70 |
"Created: / 09-10-2006 / 13:56:35 / cg"
|
|
71 |
!
|
|
72 |
|
|
73 |
prettyPrintedSource
|
|
74 |
^ self sourceForMethod , Character cr
|
|
75 |
, ' package:' , package storeString
|
|
76 |
|
|
77 |
"Modified: / 09-10-2006 / 13:58:52 / cg"
|
|
78 |
!
|
|
79 |
|
|
80 |
source
|
|
81 |
^ self sourceForMethod, ' package:' , package storeString
|
|
82 |
|
|
83 |
"Modified: / 09-10-2006 / 13:58:36 / cg"
|
|
84 |
! !
|
|
85 |
|
|
86 |
!MethodPackageChange methodsFor:'applying'!
|
|
87 |
|
|
88 |
apply
|
|
89 |
"apply the change"
|
|
90 |
|
|
91 |
|cls mthd|
|
|
92 |
|
|
93 |
cls := self changeClass.
|
|
94 |
mthd := self changeMethod.
|
|
95 |
|
|
96 |
mthd package:package.
|
|
97 |
cls addChangeRecordForMethodPackage:mthd package:package.
|
|
98 |
|
|
99 |
"Modified: / 09-10-2006 / 14:01:24 / cg"
|
|
100 |
! !
|
|
101 |
|
|
102 |
!MethodPackageChange methodsFor:'queries'!
|
|
103 |
|
|
104 |
isMethodPackageChange
|
|
105 |
^ true
|
|
106 |
|
|
107 |
"Created: / 09-10-2006 / 14:00:58 / cg"
|
|
108 |
! !
|
|
109 |
|
|
110 |
!MethodPackageChange class methodsFor:'documentation'!
|
|
111 |
|
|
112 |
version
|
|
113 |
^ '$Header: /cvs/stx/stx/libbasic3/MethodPackageChange.st,v 1.1 2006-10-09 12:08:35 cg Exp $'
|
|
114 |
! !
|