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