author | Claus Gittinger <cg@exept.de> |
Sun, 23 Feb 2020 16:35:34 +0100 | |
changeset 4557 | 069040b49bec |
parent 2264 | e3cfba6ae292 |
child 3011 | 1997ff6e7e55 |
permissions | -rw-r--r-- |
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 |
||
1914
b7eb2a38aa55
the method does the change-file-update; NOT me
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
91 |
|mthd| |
1843 | 92 |
|
1914
b7eb2a38aa55
the method does the change-file-update; NOT me
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
93 |
mthd := self changeMethod. |
1843 | 94 |
mthd package:package. |
95 |
||
1914
b7eb2a38aa55
the method does the change-file-update; NOT me
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
96 |
"Modified: / 23-11-2006 / 17:01:37 / cg" |
1843 | 97 |
! ! |
98 |
||
2132 | 99 |
!MethodPackageChange methodsFor:'testing'! |
1843 | 100 |
|
2264 | 101 |
isMethodCodeChange |
102 |
"true if this is a method's code change (not package, category etc.)" |
|
103 |
||
104 |
^ false |
|
105 |
! |
|
106 |
||
1843 | 107 |
isMethodPackageChange |
108 |
^ true |
|
109 |
||
110 |
"Created: / 09-10-2006 / 14:00:58 / cg" |
|
111 |
! ! |
|
112 |
||
113 |
!MethodPackageChange class methodsFor:'documentation'! |
|
114 |
||
115 |
version |
|
2264 | 116 |
^ '$Header: /cvs/stx/stx/libbasic3/MethodPackageChange.st,v 1.4 2010-04-14 13:40:49 cg Exp $' |
117 |
! |
|
118 |
||
119 |
version_CVS |
|
120 |
^ '$Header: /cvs/stx/stx/libbasic3/MethodPackageChange.st,v 1.4 2010-04-14 13:40:49 cg Exp $' |
|
1843 | 121 |
! ! |