author | Patrik Svestka <patrik.svestka@gmail.com> |
Wed, 17 Feb 2021 15:24:09 +0100 | |
branch | jv |
changeset 4568 | 524471ef6575 |
parent 4384 | e28fcaaf93c7 |
child 4578 | 643100f26190 |
permissions | -rw-r--r-- |
4384
e28fcaaf93c7
Issue #239: Fix all Smalltak/X source files to be in unicode (UTF8 without BOM) and prefixed by "{ Encoding: utf8 }" when any unicode character is present
Patrik Svestka <patrik.svestka@gmail.com>
parents:
3128
diff
changeset
|
1 |
"{ Encoding: utf8 }" |
e28fcaaf93c7
Issue #239: Fix all Smalltak/X source files to be in unicode (UTF8 without BOM) and prefixed by "{ Encoding: utf8 }" when any unicode character is present
Patrik Svestka <patrik.svestka@gmail.com>
parents:
3128
diff
changeset
|
2 |
|
1843 | 3 |
" |
4 |
COPYRIGHT (c) 2006 by eXept Software AG |
|
5 |
All Rights Reserved |
|
6 |
||
7 |
This software is furnished under a license and may be used |
|
8 |
only in accordance with the terms of that license and with the |
|
9 |
inclusion of the above copyright notice. This software may not |
|
10 |
be provided or otherwise made available to, or used by, any |
|
11 |
other person. No title to or ownership of the software is |
|
12 |
hereby transferred. |
|
13 |
" |
|
14 |
"{ Package: 'stx:libbasic3' }" |
|
15 |
||
16 |
MethodChange subclass:#MethodPackageChange |
|
17 |
instanceVariableNames:'' |
|
18 |
classVariableNames:'' |
|
19 |
poolDictionaries:'' |
|
20 |
category:'System-Changes' |
|
21 |
! |
|
22 |
||
23 |
!MethodPackageChange class methodsFor:'documentation'! |
|
24 |
||
25 |
copyright |
|
26 |
" |
|
27 |
COPYRIGHT (c) 2006 by eXept Software AG |
|
28 |
All Rights Reserved |
|
29 |
||
30 |
This software is furnished under a license and may be used |
|
31 |
only in accordance with the terms of that license and with the |
|
32 |
inclusion of the above copyright notice. This software may not |
|
33 |
be provided or otherwise made available to, or used by, any |
|
34 |
other person. No title to or ownership of the software is |
|
35 |
hereby transferred. |
|
36 |
" |
|
37 |
! |
|
38 |
||
39 |
documentation |
|
40 |
" |
|
41 |
instances represent method-package changes (as done in the browser). |
|
42 |
They are typically held in a ChangeSet. |
|
43 |
||
44 |
[author:] |
|
45 |
Claus Gittinger |
|
46 |
" |
|
47 |
! ! |
|
48 |
||
49 |
!MethodPackageChange class methodsFor:'instance creation'! |
|
50 |
||
51 |
class:cls selector:sel package:pkg |
|
52 |
^ self basicNew class:cls selector:sel package:pkg |
|
53 |
||
54 |
"Created: / 09-10-2006 / 14:00:22 / cg" |
|
55 |
! ! |
|
56 |
||
57 |
!MethodPackageChange methodsFor:'accessing'! |
|
58 |
||
59 |
class:cls selector:sel package:pkg |
|
60 |
className := cls name. |
|
61 |
selector := sel. |
|
62 |
package := pkg |
|
63 |
||
64 |
"Created: / 09-10-2006 / 13:56:20 / cg" |
|
65 |
! |
|
66 |
||
67 |
className:clsName selector:sel package:pkg |
|
68 |
className := clsName. |
|
69 |
selector := sel. |
|
70 |
package := pkg |
|
71 |
||
72 |
"Created: / 09-10-2006 / 13:56:35 / cg" |
|
73 |
! |
|
74 |
||
75 |
prettyPrintedSource |
|
76 |
^ self sourceForMethod , Character cr |
|
77 |
, ' package:' , package storeString |
|
78 |
||
79 |
"Modified: / 09-10-2006 / 13:58:52 / cg" |
|
80 |
! |
|
81 |
||
82 |
source |
|
83 |
^ self sourceForMethod, ' package:' , package storeString |
|
84 |
||
85 |
"Modified: / 09-10-2006 / 13:58:36 / cg" |
|
86 |
! ! |
|
87 |
||
88 |
!MethodPackageChange methodsFor:'applying'! |
|
89 |
||
90 |
apply |
|
91 |
"apply the change" |
|
92 |
||
1914
b7eb2a38aa55
the method does the change-file-update; NOT me
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
93 |
|mthd| |
1843 | 94 |
|
1914
b7eb2a38aa55
the method does the change-file-update; NOT me
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
95 |
mthd := self changeMethod. |
1843 | 96 |
mthd package:package. |
97 |
||
1914
b7eb2a38aa55
the method does the change-file-update; NOT me
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
98 |
"Modified: / 23-11-2006 / 17:01:37 / cg" |
1843 | 99 |
! ! |
100 |
||
2132 | 101 |
!MethodPackageChange methodsFor:'testing'! |
1843 | 102 |
|
2264 | 103 |
isMethodCodeChange |
104 |
"true if this is a method's code change (not package, category etc.)" |
|
105 |
||
106 |
^ false |
|
107 |
! |
|
108 |
||
1843 | 109 |
isMethodPackageChange |
110 |
^ true |
|
111 |
||
112 |
"Created: / 09-10-2006 / 14:00:58 / cg" |
|
113 |
! ! |
|
114 |
||
115 |
!MethodPackageChange class methodsFor:'documentation'! |
|
116 |
||
117 |
version |
|
3121
19723298dd2c
Bugfix: reading of Java class extensions methods.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3042
diff
changeset
|
118 |
^ '$Header: MethodPackageChange.st 1909 2012-03-31 00:14:49Z vranyj1 $' |
2264 | 119 |
! |
120 |
||
121 |
version_CVS |
|
4384
e28fcaaf93c7
Issue #239: Fix all Smalltak/X source files to be in unicode (UTF8 without BOM) and prefixed by "{ Encoding: utf8 }" when any unicode character is present
Patrik Svestka <patrik.svestka@gmail.com>
parents:
3128
diff
changeset
|
122 |
^ '§Header: /cvs/stx/stx/libbasic3/MethodPackageChange.st,v 1.4 2010/04/14 13:40:49 cg Exp §' |
3012 | 123 |
! |
124 |
||
3121
19723298dd2c
Bugfix: reading of Java class extensions methods.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3042
diff
changeset
|
125 |
version_HG |
19723298dd2c
Bugfix: reading of Java class extensions methods.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3042
diff
changeset
|
126 |
|
19723298dd2c
Bugfix: reading of Java class extensions methods.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3042
diff
changeset
|
127 |
^ '$Changeset: <not expanded> $' |
19723298dd2c
Bugfix: reading of Java class extensions methods.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3042
diff
changeset
|
128 |
! |
19723298dd2c
Bugfix: reading of Java class extensions methods.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3042
diff
changeset
|
129 |
|
3012 | 130 |
version_SVN |
4384
e28fcaaf93c7
Issue #239: Fix all Smalltak/X source files to be in unicode (UTF8 without BOM) and prefixed by "{ Encoding: utf8 }" when any unicode character is present
Patrik Svestka <patrik.svestka@gmail.com>
parents:
3128
diff
changeset
|
131 |
^ '§Id: MethodPackageChange.st 1909 2012-03-31 00:14:49Z vranyj1 §' |
3012 | 132 |
! ! |
3121
19723298dd2c
Bugfix: reading of Java class extensions methods.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3042
diff
changeset
|
133 |