author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Thu, 28 Mar 2013 12:22:48 +0000 | |
branch | jv |
changeset 3158 | f8c56a311307 |
parent 3128 | 87750af738dc |
parent 3136 | 5521c309e826 |
child 3208 | e8bdf898d7ac |
permissions | -rw-r--r-- |
3 | 1 |
" |
2 |
COPYRIGHT (c) 1993 by Claus Gittinger |
|
38 | 3 |
All Rights Reserved |
3 | 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 |
" |
|
932 | 12 |
"{ Package: 'stx:libbasic3' }" |
13 |
||
0 | 14 |
Object subclass:#Change |
2489 | 15 |
instanceVariableNames:'source timeOfChangeIfKnown mcDefinition' |
235 | 16 |
classVariableNames:'' |
17 |
poolDictionaries:'' |
|
18 |
category:'System-Changes' |
|
0 | 19 |
! |
20 |
||
633 | 21 |
!Change class methodsFor:'documentation'! |
9 | 22 |
|
23 |
copyright |
|
24 |
" |
|
25 |
COPYRIGHT (c) 1993 by Claus Gittinger |
|
38 | 26 |
All Rights Reserved |
9 | 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 |
abstract superclass for all kind of changes - managed in changeSets. |
|
235 | 40 |
|
2513 | 41 |
[instance variables:] |
42 |
mcDefinition .... prep for monticello |
|
43 |
||
235 | 44 |
[author:] |
45 |
Claus Gittinger |
|
9 | 46 |
" |
47 |
! ! |
|
48 |
||
3158
f8c56a311307
Merged 87750af738dc and 72ca7e81fbbf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
49 |
|
2882 | 50 |
!Change class methodsFor:'others'! |
51 |
||
52 |
version_CVS |
|
3136 | 53 |
^ '$Header: /cvs/stx/stx/libbasic3/Change.st,v 1.63 2013-03-26 12:13:16 cg Exp $' |
2882 | 54 |
! ! |
55 |
||
3158
f8c56a311307
Merged 87750af738dc and 72ca7e81fbbf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
56 |
|
1510 | 57 |
!Change class methodsFor:'support'! |
58 |
||
59 |
isSource:source1Arg sameSourceAs:source2Arg |
|
60 |
"return true, if the given sources are the same, ignoring tabs and whitespace differences." |
|
61 |
||
3136 | 62 |
|source1 source2 tSource1 tSource2| |
1510 | 63 |
|
64 |
source1 := source1Arg. |
|
65 |
source2 := source2Arg. |
|
66 |
||
67 |
source1 = source2 ifTrue:[^ true]. |
|
2507
d657fabea438
changed: #isSource:sameSourceAs:
Claus Gittinger <cg@exept.de>
parents:
2494
diff
changeset
|
68 |
source1 isNil ifTrue:[^ false]. |
d657fabea438
changed: #isSource:sameSourceAs:
Claus Gittinger <cg@exept.de>
parents:
2494
diff
changeset
|
69 |
source2 isNil ifTrue:[^ false]. |
1510 | 70 |
|
71 |
source1 := source1 withoutTrailingSeparators asCollectionOfLines. |
|
72 |
source2 := source2 withoutTrailingSeparators asCollectionOfLines. |
|
3136 | 73 |
[source1 last isEmptyOrNil] whileTrue:[ source1 removeLast ]. |
74 |
[source2 last isEmptyOrNil] whileTrue:[ source2 removeLast ]. |
|
75 |
||
1510 | 76 |
source1 size ~~ source2 size ifTrue:[^ false]. |
3136 | 77 |
source1 = source2 ifTrue:[^ true]. |
78 |
||
79 |
tSource1 := source1 collect:[:line | (line withTabsExpanded:8) withoutTrailingSeparators]. |
|
80 |
tSource2 := source2 collect:[:line | (line withTabsExpanded:8) withoutTrailingSeparators]. |
|
81 |
tSource1 = tSource2 ifTrue:[^ true]. |
|
82 |
||
83 |
"/ how about that one? |
|
84 |
"/ tSource1 := source1 collect:[:line | line withoutLeadingSeparators withoutTrailingSeparators]. |
|
85 |
"/ tSource2 := source2 collect:[:line | line withoutLeadingSeparators withoutTrailingSeparators]. |
|
86 |
"/ tSource1 = tSource2 ifTrue:[^ true]. |
|
87 |
||
88 |
^ false. |
|
1510 | 89 |
|
90 |
"Created: / 25-07-2006 / 11:22:21 / cg" |
|
91 |
! ! |
|
92 |
||
3158
f8c56a311307
Merged 87750af738dc and 72ca7e81fbbf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
93 |
|
647 | 94 |
!Change methodsFor:'accessing'! |
95 |
||
850 | 96 |
changeClass |
97 |
"the class of the change (nil if not present)" |
|
98 |
||
99 |
^ nil |
|
100 |
||
101 |
! |
|
102 |
||
2378 | 103 |
changeLanguage |
2844 | 104 |
"Answer the programming language of the receiver. |
105 |
Since changesets are currently only supported for Smalltalk, |
|
106 |
return SmalltalkLanguage unconditionally" |
|
2378 | 107 |
|
2844 | 108 |
^ SmalltalkLanguage instance |
2378 | 109 |
|
2844 | 110 |
"Modified (comment): / 25-07-2012 / 17:40:47 / cg" |
2378 | 111 |
! |
112 |
||
850 | 113 |
changeSelector |
2844 | 114 |
"the selector, if it is a method change. Nil oherwise" |
115 |
||
850 | 116 |
^ nil |
117 |
||
2844 | 118 |
"Created: / 06-02-1998 / 13:29:35 / cg" |
850 | 119 |
! |
120 |
||
2471 | 121 |
changeSource |
2844 | 122 |
"Return the source of the change" |
2471 | 123 |
|
124 |
^ self source |
|
125 |
||
126 |
"Created: / 19-07-2011 / 19:03:27 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
2844 | 127 |
"Modified (comment): / 25-07-2012 / 17:39:24 / cg" |
2471 | 128 |
! |
129 |
||
647 | 130 |
className |
131 |
"the className of the change" |
|
132 |
||
133 |
^ nil |
|
134 |
||
135 |
"Modified: / 15.7.1996 / 09:26:34 / cg" |
|
136 |
"Created: / 6.2.1998 / 13:06:56 / cg" |
|
137 |
! |
|
138 |
||
2378 | 139 |
delta |
140 |
"Returns a delta to current state as symbol: |
|
141 |
#+ .....the subject is to be added to the image (new) |
|
142 |
#- .....the subject is to be removed from the image (old) |
|
143 |
#= .....the image is up to date |
|
144 |
#~ .....change version and image version differ |
|
145 |
#? .....delta is unknown or N/A for this kind of change |
|
146 |
" |
|
147 |
||
2494 | 148 |
"/ obsolete: please use deltaDetail |
2378 | 149 |
^#? "We don't know how to compute delta for generic change" |
2494 | 150 |
|
151 |
"Modified (comment): / 31-08-2011 / 10:29:47 / cg" |
|
152 |
! |
|
153 |
||
154 |
deltaDetail |
|
155 |
"Returns a delta to the current state as a ChangeDelta object" |
|
156 |
||
157 |
^ ChangeDeltaInformation unknown "We don't know how to compute delta for generic change" |
|
158 |
||
159 |
"Created: / 31-08-2011 / 09:59:15 / cg" |
|
2378 | 160 |
! |
161 |
||
909 | 162 |
file |
163 |
^ nil "/ to be added as instvar |
|
164 |
! |
|
165 |
||
166 |
file:aFile position:anInteger |
|
167 |
^ self "/ to be added |
|
168 |
! |
|
169 |
||
2471 | 170 |
imageSource |
2844 | 171 |
"Return the source of the in-image version |
172 |
or nil if there is no source for this change" |
|
2471 | 173 |
|
2844 | 174 |
^ nil |
2471 | 175 |
|
176 |
"Created: / 19-07-2011 / 11:58:39 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
2844 | 177 |
"Modified (format): / 25-07-2012 / 17:37:23 / cg" |
2471 | 178 |
! |
179 |
||
2816 | 180 |
nameSpaceOverride:ns |
181 |
||
182 |
"Created: / 20-03-2012 / 17:18:17 / cg" |
|
183 |
! |
|
184 |
||
2411 | 185 |
nonMetaClassName |
186 |
||
187 |
^nil |
|
188 |
||
189 |
"Created: / 26-11-2009 / 16:14:26 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
190 |
! |
|
191 |
||
909 | 192 |
objectType:aSymbol |
193 |
^ self "/ to be added as instvar |
|
194 |
! |
|
195 |
||
2287 | 196 |
package |
197 |
^ nil |
|
198 |
! |
|
199 |
||
1052 | 200 |
prettyPrintedSource |
201 |
"return the prettyPrinted or normal source of the change" |
|
202 |
||
203 |
^ self source |
|
204 |
! |
|
205 |
||
647 | 206 |
selector |
207 |
^ nil |
|
208 |
||
209 |
"Created: / 6.2.1998 / 13:29:35 / cg" |
|
787 | 210 |
! |
211 |
||
212 |
source |
|
213 |
"return the source of the change" |
|
214 |
||
1096 | 215 |
|s| |
216 |
||
217 |
source isNil ifTrue:[ |
|
1385
495fc9f2c9da
replaced '' writeStream by String writeStream
Claus Gittinger <cg@exept.de>
parents:
1290
diff
changeset
|
218 |
s := String writeStream. |
1096 | 219 |
self printOn:s. |
220 |
^ s contents. |
|
221 |
]. |
|
787 | 222 |
^ source |
223 |
||
224 |
"Modified: 15.7.1996 / 09:26:34 / cg" |
|
225 |
! |
|
226 |
||
227 |
source:someString |
|
228 |
"set the source of the change" |
|
229 |
||
1290 | 230 |
"/ debugging only ... |
231 |
someString isString ifFalse:[ |
|
232 |
(someString respondsTo:#string) ifFalse:[ |
|
233 |
self halt:'argument should be string-like' |
|
234 |
] |
|
235 |
]. |
|
787 | 236 |
source := someString |
237 |
||
238 |
"Modified: / 15.7.1996 / 09:26:34 / cg" |
|
239 |
"Created: / 16.2.1998 / 13:05:16 / cg" |
|
1147 | 240 |
! |
241 |
||
242 |
timeOfChangeIfKnown |
|
243 |
^ timeOfChangeIfKnown |
|
244 |
! |
|
245 |
||
246 |
timeStamp:aTimestamp |
|
247 |
timeOfChangeIfKnown := aTimestamp |
|
647 | 248 |
! ! |
249 |
||
3158
f8c56a311307
Merged 87750af738dc and 72ca7e81fbbf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
250 |
|
849 | 251 |
!Change methodsFor:'applying'! |
252 |
||
253 |
apply |
|
254 |
"apply the change" |
|
255 |
||
256 |
self subclassResponsibility |
|
1873
2cbdfc5da6d7
changes for compare-project functionality
Claus Gittinger <cg@exept.de>
parents:
1868
diff
changeset
|
257 |
|
2cbdfc5da6d7
changes for compare-project functionality
Claus Gittinger <cg@exept.de>
parents:
1868
diff
changeset
|
258 |
"Modified: / 13-10-2006 / 00:41:05 / cg" |
849 | 259 |
! ! |
260 |
||
3158
f8c56a311307
Merged 87750af738dc and 72ca7e81fbbf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
261 |
|
1234 | 262 |
!Change methodsFor:'change notification'! |
263 |
||
264 |
sendChangeNotificationThroughSmalltalk |
|
265 |
"intentionally left blank" |
|
266 |
! ! |
|
267 |
||
3158
f8c56a311307
Merged 87750af738dc and 72ca7e81fbbf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
268 |
|
784
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
269 |
!Change methodsFor:'comparing'! |
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
270 |
|
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
271 |
isForSameAs:changeB |
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
272 |
"return true, if the given change represents a change for the same |
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
273 |
thingy as the receiver (i.e. same method, same definition etc.)." |
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
274 |
|
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
275 |
^ false |
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
276 |
|
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
277 |
! |
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
278 |
|
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
279 |
sameAs:changeB |
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
280 |
"return true, if the given change represents the same change as the receiver." |
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
281 |
|
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
282 |
^ false |
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
283 |
|
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
284 |
! |
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
285 |
|
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
286 |
sameSourceAs:changeB |
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
287 |
"return true, if the given change has the same source as the receiver." |
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
288 |
|
1510 | 289 |
^ self class isSource:(self source) sameSourceAs:(changeB source) |
784
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
290 |
|
1510 | 291 |
"Modified: / 25-07-2006 / 11:22:46 / cg" |
784
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
292 |
! ! |
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
293 |
|
3158
f8c56a311307
Merged 87750af738dc and 72ca7e81fbbf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
294 |
|
2411 | 295 |
!Change methodsFor:'converting'! |
296 |
||
297 |
asAntiChange |
|
298 |
"Returns my anti-change, i.e. change that do the |
|
299 |
opposite. For class defintion change it returns |
|
300 |
class remove change, for method defintion change |
|
301 |
it returns method remove change. If there is no way |
|
302 |
how to revert the change, an error is trigerred. |
|
303 |
||
304 |
JV: personal note: we should switch to deltastreams |
|
305 |
(http://wiki.squeak.org/squeak/6001) |
|
3136 | 306 |
|
307 |
CG: is the above really true - what about a classDefChange for |
|
308 |
an existing class???? |
|
2411 | 309 |
" |
310 |
||
311 |
"/self error: 'Could not create antichange' |
|
312 |
^self copy |
|
313 |
||
314 |
"Created: / 02-11-2009 / 11:11:03 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
315 |
"Modified: / 26-11-2009 / 16:10:44 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
316 |
! ! |
|
2378 | 317 |
|
3158
f8c56a311307
Merged 87750af738dc and 72ca7e81fbbf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
318 |
|
2378 | 319 |
!Change methodsFor:'enumerating'! |
320 |
||
321 |
do: aBlock |
|
322 |
||
323 |
^aBlock value: self |
|
324 |
||
325 |
"Created: / 29-10-2010 / 14:02:31 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
326 |
! ! |
|
327 |
||
3158
f8c56a311307
Merged 87750af738dc and 72ca7e81fbbf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
328 |
|
2378 | 329 |
!Change methodsFor:'fileout'! |
330 |
||
331 |
basicFileOutOn: aStream |
|
332 |
||
333 |
aStream |
|
334 |
cr; |
|
335 |
nextPutAllAsChunk: self source; |
|
336 |
cr; |
|
337 |
nextPutChunkSeparator; cr |
|
338 |
! |
|
339 |
||
340 |
fileOutOn: aStream |
|
341 |
||
342 |
self removed ifFalse:[self basicFileOutOn: aStream] |
|
343 |
! ! |
|
344 |
||
3158
f8c56a311307
Merged 87750af738dc and 72ca7e81fbbf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
345 |
|
778 | 346 |
!Change methodsFor:'printing & storing'! |
347 |
||
897 | 348 |
printStringWithoutClassName |
778 | 349 |
|s| |
350 |
||
1385
495fc9f2c9da
replaced '' writeStream by String writeStream
Claus Gittinger <cg@exept.de>
parents:
1290
diff
changeset
|
351 |
s := String writeStream. |
897 | 352 |
self printWithoutClassNameOn:s. |
778 | 353 |
^ s contents |
354 |
! |
|
355 |
||
897 | 356 |
printWithoutClassNameOn:aStream |
778 | 357 |
self printOn:aStream |
358 |
||
359 |
||
360 |
! ! |
|
361 |
||
2378 | 362 |
|
2167 | 363 |
!Change methodsFor:'queries'! |
364 |
||
365 |
isForGeneratedSubject |
|
366 |
" |
|
367 |
Answers true iff subject of this method is somewhat |
|
368 |
auto-generated by some tool - just like version methods |
|
369 |
are. |
|
370 |
" |
|
371 |
||
372 |
^ false |
|
373 |
||
374 |
"Created: / 08-04-2009 / 09:45:26 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
375 |
"Modified: / 17-08-2009 / 18:55:20 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
376 |
! ! |
|
377 |
||
3158
f8c56a311307
Merged 87750af738dc and 72ca7e81fbbf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
378 |
|
2135 | 379 |
!Change methodsFor:'testing'! |
651 | 380 |
|
1175 | 381 |
isClassCategoryChange |
2135 | 382 |
"return true, if this is a class-category change" |
383 |
||
1175 | 384 |
^ false |
385 |
||
386 |
"Created: / 7.2.1998 / 19:26:50 / cg" |
|
387 |
! |
|
388 |
||
932 | 389 |
isClassChange |
2135 | 390 |
"return true, if this is a class-related change" |
391 |
||
932 | 392 |
^ false |
393 |
||
394 |
"Created: / 7.2.1998 / 19:26:50 / cg" |
|
395 |
! |
|
396 |
||
777 | 397 |
isClassCommentChange |
2135 | 398 |
"return true, if this is a class-comment change" |
399 |
||
777 | 400 |
^ false |
401 |
||
402 |
"Created: / 7.2.1998 / 19:26:50 / cg" |
|
403 |
! |
|
404 |
||
771 | 405 |
isClassDefinitionChange |
2135 | 406 |
"return true, if this is a class-definition change" |
407 |
||
771 | 408 |
^ false |
409 |
||
410 |
"Created: / 7.2.1998 / 19:26:50 / cg" |
|
411 |
! |
|
412 |
||
798 | 413 |
isClassInstVarDefinitionChange |
414 |
^ false |
|
415 |
||
416 |
! |
|
417 |
||
1234 | 418 |
isClassRemoveChange |
419 |
^ false |
|
420 |
||
421 |
"Created: / 7.2.1998 / 19:26:50 / cg" |
|
422 |
! |
|
423 |
||
2411 | 424 |
isClassRemoveChangeOrMethodRemoveChange |
425 |
^self isClassRemoveChange or: [self isMethodRemoveChange] |
|
426 |
||
427 |
"Created: / 25-11-2009 / 08:16:17 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
428 |
! |
|
429 |
||
1234 | 430 |
isClassRenameChange |
431 |
^ false |
|
432 |
||
433 |
"Created: / 7.2.1998 / 19:26:50 / cg" |
|
434 |
! |
|
435 |
||
2378 | 436 |
isCompositeChange |
437 |
^ false |
|
438 |
||
439 |
"Created: / 7.2.1998 / 19:26:50 / cg" |
|
440 |
! |
|
441 |
||
773 | 442 |
isDoIt |
443 |
^ false |
|
444 |
||
445 |
"Created: / 7.2.1998 / 19:26:50 / cg" |
|
446 |
! |
|
447 |
||
964
64282b5e5c48
added #isMEthodCategoryChange
Claus Gittinger <cg@exept.de>
parents:
932
diff
changeset
|
448 |
isMethodCategoryChange |
64282b5e5c48
added #isMEthodCategoryChange
Claus Gittinger <cg@exept.de>
parents:
932
diff
changeset
|
449 |
^ false |
64282b5e5c48
added #isMEthodCategoryChange
Claus Gittinger <cg@exept.de>
parents:
932
diff
changeset
|
450 |
! |
64282b5e5c48
added #isMEthodCategoryChange
Claus Gittinger <cg@exept.de>
parents:
932
diff
changeset
|
451 |
|
1234 | 452 |
isMethodCategoryRenameChange |
453 |
^ false |
|
454 |
||
455 |
"Created: / 7.2.1998 / 19:26:50 / cg" |
|
456 |
! |
|
457 |
||
651 | 458 |
isMethodChange |
2135 | 459 |
"true if this is a method related change" |
460 |
||
461 |
^ false |
|
462 |
||
463 |
"Created: / 7.2.1998 / 19:26:50 / cg" |
|
464 |
! |
|
465 |
||
3074
e38a06f751a5
Some more testing methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3069
diff
changeset
|
466 |
isMethodChangeForCopyrightMethod |
e38a06f751a5
Some more testing methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3069
diff
changeset
|
467 |
"Return true if this is a change of #copyright method" |
e38a06f751a5
Some more testing methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3069
diff
changeset
|
468 |
|
e38a06f751a5
Some more testing methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3069
diff
changeset
|
469 |
^ false |
e38a06f751a5
Some more testing methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3069
diff
changeset
|
470 |
|
e38a06f751a5
Some more testing methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3069
diff
changeset
|
471 |
"Created: / 01-08-2012 / 16:34:39 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
e38a06f751a5
Some more testing methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3069
diff
changeset
|
472 |
! |
e38a06f751a5
Some more testing methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3069
diff
changeset
|
473 |
|
2945 | 474 |
isMethodChangeForExtensionsVersionMethod |
475 |
"true if this is a change for an extensionsVersion method" |
|
476 |
||
477 |
^ false |
|
478 |
||
479 |
"Created: / 7.2.1998 / 19:26:50 / cg" |
|
480 |
! |
|
481 |
||
2185 | 482 |
isMethodChangeForVersionMethod |
2945 | 483 |
"true if this is a change for a version method" |
2185 | 484 |
|
485 |
^ false |
|
486 |
||
487 |
"Created: / 7.2.1998 / 19:26:50 / cg" |
|
488 |
! |
|
489 |
||
2135 | 490 |
isMethodCodeChange |
491 |
"true if this is a method's code change (not package, category etc.)" |
|
492 |
||
651 | 493 |
^ false |
494 |
||
495 |
"Created: / 7.2.1998 / 19:26:50 / cg" |
|
783 | 496 |
! |
497 |
||
1225 | 498 |
isMethodDefinitionChange |
499 |
^ false |
|
500 |
! |
|
501 |
||
2167 | 502 |
isMethodPackageChange |
503 |
^ false |
|
504 |
||
505 |
"Created: / 08-04-2009 / 09:00:21 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
506 |
! |
|
507 |
||
1163
4886886a78b7
#isMethodRemoveChange query added
Claus Gittinger <cg@exept.de>
parents:
1147
diff
changeset
|
508 |
isMethodRemoveChange |
4886886a78b7
#isMethodRemoveChange query added
Claus Gittinger <cg@exept.de>
parents:
1147
diff
changeset
|
509 |
^ false |
4886886a78b7
#isMethodRemoveChange query added
Claus Gittinger <cg@exept.de>
parents:
1147
diff
changeset
|
510 |
! |
4886886a78b7
#isMethodRemoveChange query added
Claus Gittinger <cg@exept.de>
parents:
1147
diff
changeset
|
511 |
|
2610 | 512 |
isNameSpaceCreationChange |
513 |
^ false |
|
514 |
||
515 |
"Created: / 24-11-2011 / 12:10:06 / cg" |
|
516 |
! |
|
517 |
||
2882 | 518 |
isOtherChange |
519 |
^ false |
|
520 |
! |
|
521 |
||
783 | 522 |
isPrimitiveChange |
523 |
^ false |
|
524 |
||
525 |
! |
|
526 |
||
527 |
isPrimitiveDefinitionsChange |
|
528 |
^ false |
|
529 |
||
530 |
! |
|
531 |
||
532 |
isPrimitiveFunctionsChange |
|
533 |
^ false |
|
534 |
||
535 |
! |
|
536 |
||
537 |
isPrimitiveVariablesChange |
|
538 |
^ false |
|
539 |
||
1868
301a5aeb8176
+isPrivateClassDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
1510
diff
changeset
|
540 |
! |
301a5aeb8176
+isPrivateClassDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
1510
diff
changeset
|
541 |
|
301a5aeb8176
+isPrivateClassDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
1510
diff
changeset
|
542 |
isPrivateClassDefinitionChange |
301a5aeb8176
+isPrivateClassDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
1510
diff
changeset
|
543 |
^ false |
301a5aeb8176
+isPrivateClassDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
1510
diff
changeset
|
544 |
|
301a5aeb8176
+isPrivateClassDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
1510
diff
changeset
|
545 |
"Created: / 12-10-2006 / 22:59:04 / cg" |
651 | 546 |
! ! |
547 |
||
3158
f8c56a311307
Merged 87750af738dc and 72ca7e81fbbf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
548 |
|
2618
853321d00a7e
visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents:
2610
diff
changeset
|
549 |
!Change methodsFor:'visiting'! |
853321d00a7e
visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents:
2610
diff
changeset
|
550 |
|
853321d00a7e
visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents:
2610
diff
changeset
|
551 |
acceptChangeVisitor:aVisitor |
853321d00a7e
visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents:
2610
diff
changeset
|
552 |
^ aVisitor visitChange:self. |
853321d00a7e
visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents:
2610
diff
changeset
|
553 |
|
853321d00a7e
visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents:
2610
diff
changeset
|
554 |
"Created: / 25-11-2011 / 17:12:05 / cg" |
853321d00a7e
visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents:
2610
diff
changeset
|
555 |
! ! |
853321d00a7e
visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents:
2610
diff
changeset
|
556 |
|
3158
f8c56a311307
Merged 87750af738dc and 72ca7e81fbbf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
557 |
|
633 | 558 |
!Change class methodsFor:'documentation'! |
235 | 559 |
|
2490 | 560 |
version |
3136 | 561 |
^ '$Header: /cvs/stx/stx/libbasic3/Change.st,v 1.63 2013-03-26 12:13:16 cg Exp $' |
2185 | 562 |
! |
563 |
||
3121
19723298dd2c
Bugfix: reading of Java class extensions methods.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3095
diff
changeset
|
564 |
version_HG |
19723298dd2c
Bugfix: reading of Java class extensions methods.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3095
diff
changeset
|
565 |
|
19723298dd2c
Bugfix: reading of Java class extensions methods.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3095
diff
changeset
|
566 |
^ '$Changeset: <not expanded> $' |
19723298dd2c
Bugfix: reading of Java class extensions methods.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3095
diff
changeset
|
567 |
! |
19723298dd2c
Bugfix: reading of Java class extensions methods.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3095
diff
changeset
|
568 |
|
2378 | 569 |
version_SVN |
2882 | 570 |
^ '§Id: Change.st 1942 2012-07-27 14:53:23Z vranyj1 §' |
235 | 571 |
! ! |
3136 | 572 |