author | mawalch |
Wed, 17 May 2017 12:52:38 +0200 | |
changeset 4238 | e3824d6ddfb7 |
parent 4237 | 278c21407942 |
child 4306 | 5392ae495a46 |
permissions | -rw-r--r-- |
4237 | 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 |
||
2471 | 175 |
imageSource |
2844 | 176 |
"Return the source of the in-image version |
177 |
or nil if there is no source for this change" |
|
2471 | 178 |
|
2844 | 179 |
^ nil |
2471 | 180 |
|
181 |
"Created: / 19-07-2011 / 11:58:39 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
2844 | 182 |
"Modified (format): / 25-07-2012 / 17:37:23 / cg" |
2471 | 183 |
! |
184 |
||
2816 | 185 |
nameSpaceOverride:ns |
186 |
||
187 |
"Created: / 20-03-2012 / 17:18:17 / cg" |
|
188 |
! |
|
189 |
||
2411 | 190 |
nonMetaClassName |
191 |
||
192 |
^nil |
|
193 |
||
194 |
"Created: / 26-11-2009 / 16:14:26 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
195 |
! |
|
196 |
||
909 | 197 |
objectType:aSymbol |
198 |
^ self "/ to be added as instvar |
|
199 |
! |
|
200 |
||
2287 | 201 |
package |
202 |
^ nil |
|
203 |
! |
|
204 |
||
1052 | 205 |
prettyPrintedSource |
206 |
"return the prettyPrinted or normal source of the change" |
|
207 |
||
208 |
^ self source |
|
209 |
! |
|
210 |
||
647 | 211 |
selector |
212 |
^ nil |
|
213 |
||
214 |
"Created: / 6.2.1998 / 13:29:35 / cg" |
|
787 | 215 |
! |
216 |
||
217 |
source |
|
218 |
"return the source of the change" |
|
219 |
||
1096 | 220 |
|s| |
221 |
||
222 |
source isNil ifTrue:[ |
|
1385
495fc9f2c9da
replaced '' writeStream by String writeStream
Claus Gittinger <cg@exept.de>
parents:
1290
diff
changeset
|
223 |
s := String writeStream. |
1096 | 224 |
self printOn:s. |
225 |
^ s contents. |
|
226 |
]. |
|
787 | 227 |
^ source |
228 |
||
229 |
"Modified: 15.7.1996 / 09:26:34 / cg" |
|
230 |
! |
|
231 |
||
232 |
source:someString |
|
233 |
"set the source of the change" |
|
234 |
||
1290 | 235 |
"/ debugging only ... |
236 |
someString isString ifFalse:[ |
|
237 |
(someString respondsTo:#string) ifFalse:[ |
|
238 |
self halt:'argument should be string-like' |
|
239 |
] |
|
240 |
]. |
|
787 | 241 |
source := someString |
242 |
||
243 |
"Modified: / 15.7.1996 / 09:26:34 / cg" |
|
244 |
"Created: / 16.2.1998 / 13:05:16 / cg" |
|
1147 | 245 |
! |
246 |
||
247 |
timeOfChangeIfKnown |
|
248 |
^ timeOfChangeIfKnown |
|
249 |
! |
|
250 |
||
251 |
timeStamp:aTimestamp |
|
252 |
timeOfChangeIfKnown := aTimestamp |
|
647 | 253 |
! ! |
254 |
||
849 | 255 |
!Change methodsFor:'applying'! |
256 |
||
257 |
apply |
|
258 |
"apply the change" |
|
259 |
||
260 |
self subclassResponsibility |
|
1873
2cbdfc5da6d7
changes for compare-project functionality
Claus Gittinger <cg@exept.de>
parents:
1868
diff
changeset
|
261 |
|
2cbdfc5da6d7
changes for compare-project functionality
Claus Gittinger <cg@exept.de>
parents:
1868
diff
changeset
|
262 |
"Modified: / 13-10-2006 / 00:41:05 / cg" |
3461 | 263 |
! |
264 |
||
265 |
applyWithNameSpaceOverride: nameSpaceOrNameSpaceName |
|
266 |
"Apply the change, overriding a namespace to given one" |
|
267 |
||
268 |
self apply |
|
269 |
||
270 |
"Created: / 04-02-2014 / 18:21:33 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
849 | 271 |
! ! |
272 |
||
1234 | 273 |
!Change methodsFor:'change notification'! |
274 |
||
275 |
sendChangeNotificationThroughSmalltalk |
|
276 |
"intentionally left blank" |
|
277 |
! ! |
|
278 |
||
784
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
279 |
!Change methodsFor:'comparing'! |
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
280 |
|
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
281 |
isForSameAs:changeB |
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
282 |
"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
|
283 |
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
|
284 |
|
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
285 |
^ false |
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 |
! |
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
288 |
|
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
289 |
sameAs:changeB |
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
290 |
"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
|
291 |
|
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
292 |
^ false |
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 |
|
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
296 |
sameSourceAs:changeB |
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
297 |
"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
|
298 |
|
1510 | 299 |
^ 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
|
300 |
|
1510 | 301 |
"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
|
302 |
! ! |
1e50cc7fd07d
added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents:
783
diff
changeset
|
303 |
|
2411 | 304 |
!Change methodsFor:'converting'! |
305 |
||
306 |
asAntiChange |
|
4237 | 307 |
"Returns my anti-change, i.e. change that does the |
308 |
opposite. For class definition change it returns |
|
4238 | 309 |
class remove change, for method definition change |
2411 | 310 |
it returns method remove change. If there is no way |
4237 | 311 |
how to revert the change, an error is triggered. |
2411 | 312 |
|
313 |
JV: personal note: we should switch to deltastreams |
|
314 |
(http://wiki.squeak.org/squeak/6001) |
|
3136 | 315 |
|
316 |
CG: is the above really true - what about a classDefChange for |
|
317 |
an existing class???? |
|
2411 | 318 |
" |
319 |
||
320 |
"/self error: 'Could not create antichange' |
|
321 |
^self copy |
|
322 |
||
323 |
"Created: / 02-11-2009 / 11:11:03 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
324 |
"Modified: / 26-11-2009 / 16:10:44 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
4238 | 325 |
"Modified (comment): / 17-05-2017 / 12:51:41 / mawalch" |
2411 | 326 |
! ! |
2378 | 327 |
|
328 |
!Change methodsFor:'enumerating'! |
|
329 |
||
330 |
do: aBlock |
|
331 |
||
332 |
^aBlock value: self |
|
333 |
||
334 |
"Created: / 29-10-2010 / 14:02:31 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
335 |
! ! |
|
336 |
||
337 |
!Change methodsFor:'fileout'! |
|
338 |
||
339 |
basicFileOutOn: aStream |
|
340 |
||
341 |
aStream |
|
342 |
cr; |
|
343 |
nextPutAllAsChunk: self source; |
|
344 |
cr; |
|
345 |
nextPutChunkSeparator; cr |
|
346 |
! |
|
347 |
||
348 |
fileOutOn: aStream |
|
349 |
||
350 |
self removed ifFalse:[self basicFileOutOn: aStream] |
|
351 |
! ! |
|
352 |
||
4237 | 353 |
|
778 | 354 |
!Change methodsFor:'printing & storing'! |
355 |
||
897 | 356 |
printStringWithoutClassName |
778 | 357 |
|s| |
358 |
||
1385
495fc9f2c9da
replaced '' writeStream by String writeStream
Claus Gittinger <cg@exept.de>
parents:
1290
diff
changeset
|
359 |
s := String writeStream. |
897 | 360 |
self printWithoutClassNameOn:s. |
778 | 361 |
^ s contents |
362 |
! |
|
363 |
||
897 | 364 |
printWithoutClassNameOn:aStream |
778 | 365 |
self printOn:aStream |
366 |
||
367 |
||
368 |
! ! |
|
369 |
||
3212 | 370 |
|
2167 | 371 |
!Change methodsFor:'queries'! |
372 |
||
373 |
isForGeneratedSubject |
|
374 |
" |
|
375 |
Answers true iff subject of this method is somewhat |
|
376 |
auto-generated by some tool - just like version methods |
|
377 |
are. |
|
378 |
" |
|
379 |
||
380 |
^ false |
|
381 |
||
382 |
"Created: / 08-04-2009 / 09:45:26 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
383 |
"Modified: / 17-08-2009 / 18:55:20 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
384 |
! ! |
|
385 |
||
2135 | 386 |
!Change methodsFor:'testing'! |
651 | 387 |
|
1175 | 388 |
isClassCategoryChange |
2135 | 389 |
"return true, if this is a class-category change" |
390 |
||
1175 | 391 |
^ false |
392 |
||
393 |
"Created: / 7.2.1998 / 19:26:50 / cg" |
|
394 |
! |
|
395 |
||
932 | 396 |
isClassChange |
2135 | 397 |
"return true, if this is a class-related change" |
398 |
||
932 | 399 |
^ false |
400 |
||
401 |
"Created: / 7.2.1998 / 19:26:50 / cg" |
|
402 |
! |
|
403 |
||
777 | 404 |
isClassCommentChange |
2135 | 405 |
"return true, if this is a class-comment change" |
406 |
||
777 | 407 |
^ false |
408 |
||
409 |
"Created: / 7.2.1998 / 19:26:50 / cg" |
|
410 |
! |
|
411 |
||
771 | 412 |
isClassDefinitionChange |
2135 | 413 |
"return true, if this is a class-definition change" |
414 |
||
771 | 415 |
^ false |
416 |
||
417 |
"Created: / 7.2.1998 / 19:26:50 / cg" |
|
418 |
! |
|
419 |
||
3531 | 420 |
isClassInitializeChange |
421 |
^ false |
|
422 |
! |
|
423 |
||
798 | 424 |
isClassInstVarDefinitionChange |
425 |
^ false |
|
426 |
||
427 |
! |
|
428 |
||
1234 | 429 |
isClassRemoveChange |
430 |
^ false |
|
431 |
||
432 |
"Created: / 7.2.1998 / 19:26:50 / cg" |
|
433 |
! |
|
434 |
||
2411 | 435 |
isClassRemoveChangeOrMethodRemoveChange |
436 |
^self isClassRemoveChange or: [self isMethodRemoveChange] |
|
437 |
||
438 |
"Created: / 25-11-2009 / 08:16:17 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
439 |
! |
|
440 |
||
1234 | 441 |
isClassRenameChange |
442 |
^ false |
|
443 |
||
444 |
"Created: / 7.2.1998 / 19:26:50 / cg" |
|
445 |
! |
|
446 |
||
2378 | 447 |
isCompositeChange |
448 |
^ false |
|
449 |
||
450 |
"Created: / 7.2.1998 / 19:26:50 / cg" |
|
451 |
! |
|
452 |
||
3212 | 453 |
isConflict |
454 |
"true if this change is different than what is already in the image |
|
455 |
(i.e. it overwrites some existing code)" |
|
456 |
||
457 |
^ true |
|
458 |
! |
|
459 |
||
773 | 460 |
isDoIt |
461 |
^ false |
|
462 |
||
463 |
"Created: / 7.2.1998 / 19:26:50 / cg" |
|
464 |
! |
|
465 |
||
964
64282b5e5c48
added #isMEthodCategoryChange
Claus Gittinger <cg@exept.de>
parents:
932
diff
changeset
|
466 |
isMethodCategoryChange |
64282b5e5c48
added #isMEthodCategoryChange
Claus Gittinger <cg@exept.de>
parents:
932
diff
changeset
|
467 |
^ false |
64282b5e5c48
added #isMEthodCategoryChange
Claus Gittinger <cg@exept.de>
parents:
932
diff
changeset
|
468 |
! |
64282b5e5c48
added #isMEthodCategoryChange
Claus Gittinger <cg@exept.de>
parents:
932
diff
changeset
|
469 |
|
1234 | 470 |
isMethodCategoryRenameChange |
471 |
^ false |
|
472 |
||
473 |
"Created: / 7.2.1998 / 19:26:50 / cg" |
|
474 |
! |
|
475 |
||
651 | 476 |
isMethodChange |
2135 | 477 |
"true if this is a method related change" |
478 |
||
479 |
^ false |
|
480 |
||
481 |
"Created: / 7.2.1998 / 19:26:50 / cg" |
|
482 |
! |
|
483 |
||
3461 | 484 |
isMethodChangeForCopyrightMethod |
485 |
"Return true if this is a change of #copyright method" |
|
486 |
||
487 |
^ false |
|
488 |
||
489 |
"Created: / 01-08-2012 / 16:34:39 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
490 |
! |
|
491 |
||
2945 | 492 |
isMethodChangeForExtensionsVersionMethod |
493 |
"true if this is a change for an extensionsVersion method" |
|
494 |
||
495 |
^ false |
|
496 |
||
497 |
"Created: / 7.2.1998 / 19:26:50 / cg" |
|
498 |
! |
|
499 |
||
2185 | 500 |
isMethodChangeForVersionMethod |
2945 | 501 |
"true if this is a change for a version method" |
2185 | 502 |
|
503 |
^ false |
|
504 |
||
505 |
"Created: / 7.2.1998 / 19:26:50 / cg" |
|
506 |
! |
|
507 |
||
2135 | 508 |
isMethodCodeChange |
509 |
"true if this is a method's code change (not package, category etc.)" |
|
510 |
||
651 | 511 |
^ false |
512 |
||
513 |
"Created: / 7.2.1998 / 19:26:50 / cg" |
|
783 | 514 |
! |
515 |
||
1225 | 516 |
isMethodDefinitionChange |
517 |
^ false |
|
518 |
! |
|
519 |
||
2167 | 520 |
isMethodPackageChange |
521 |
^ false |
|
522 |
||
523 |
"Created: / 08-04-2009 / 09:00:21 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
524 |
! |
|
525 |
||
1163
4886886a78b7
#isMethodRemoveChange query added
Claus Gittinger <cg@exept.de>
parents:
1147
diff
changeset
|
526 |
isMethodRemoveChange |
4886886a78b7
#isMethodRemoveChange query added
Claus Gittinger <cg@exept.de>
parents:
1147
diff
changeset
|
527 |
^ false |
4886886a78b7
#isMethodRemoveChange query added
Claus Gittinger <cg@exept.de>
parents:
1147
diff
changeset
|
528 |
! |
4886886a78b7
#isMethodRemoveChange query added
Claus Gittinger <cg@exept.de>
parents:
1147
diff
changeset
|
529 |
|
2610 | 530 |
isNameSpaceCreationChange |
531 |
^ false |
|
532 |
||
533 |
"Created: / 24-11-2011 / 12:10:06 / cg" |
|
534 |
! |
|
535 |
||
3493
9ee153674732
category change for isXXX testers;
Claus Gittinger <cg@exept.de>
parents:
3461
diff
changeset
|
536 |
isOrContainsClassDefinitionChange |
9ee153674732
category change for isXXX testers;
Claus Gittinger <cg@exept.de>
parents:
3461
diff
changeset
|
537 |
^ false |
9ee153674732
category change for isXXX testers;
Claus Gittinger <cg@exept.de>
parents:
3461
diff
changeset
|
538 |
|
9ee153674732
category change for isXXX testers;
Claus Gittinger <cg@exept.de>
parents:
3461
diff
changeset
|
539 |
"Created: / 7.2.1998 / 19:26:50 / cg" |
9ee153674732
category change for isXXX testers;
Claus Gittinger <cg@exept.de>
parents:
3461
diff
changeset
|
540 |
! |
9ee153674732
category change for isXXX testers;
Claus Gittinger <cg@exept.de>
parents:
3461
diff
changeset
|
541 |
|
2882 | 542 |
isOtherChange |
543 |
^ false |
|
544 |
! |
|
545 |
||
783 | 546 |
isPrimitiveChange |
547 |
^ false |
|
548 |
||
549 |
! |
|
550 |
||
551 |
isPrimitiveDefinitionsChange |
|
552 |
^ false |
|
553 |
||
554 |
! |
|
555 |
||
556 |
isPrimitiveFunctionsChange |
|
557 |
^ false |
|
558 |
||
559 |
! |
|
560 |
||
561 |
isPrimitiveVariablesChange |
|
562 |
^ false |
|
563 |
||
1868
301a5aeb8176
+isPrivateClassDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
1510
diff
changeset
|
564 |
! |
301a5aeb8176
+isPrivateClassDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
1510
diff
changeset
|
565 |
|
301a5aeb8176
+isPrivateClassDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
1510
diff
changeset
|
566 |
isPrivateClassDefinitionChange |
301a5aeb8176
+isPrivateClassDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
1510
diff
changeset
|
567 |
^ false |
301a5aeb8176
+isPrivateClassDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
1510
diff
changeset
|
568 |
|
301a5aeb8176
+isPrivateClassDefinitionChange
Claus Gittinger <cg@exept.de>
parents:
1510
diff
changeset
|
569 |
"Created: / 12-10-2006 / 22:59:04 / cg" |
651 | 570 |
! ! |
571 |
||
2618
853321d00a7e
visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents:
2610
diff
changeset
|
572 |
!Change methodsFor:'visiting'! |
853321d00a7e
visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents:
2610
diff
changeset
|
573 |
|
853321d00a7e
visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents:
2610
diff
changeset
|
574 |
acceptChangeVisitor:aVisitor |
853321d00a7e
visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents:
2610
diff
changeset
|
575 |
^ aVisitor visitChange:self. |
853321d00a7e
visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents:
2610
diff
changeset
|
576 |
|
853321d00a7e
visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents:
2610
diff
changeset
|
577 |
"Created: / 25-11-2011 / 17:12:05 / cg" |
853321d00a7e
visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents:
2610
diff
changeset
|
578 |
! ! |
853321d00a7e
visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents:
2610
diff
changeset
|
579 |
|
633 | 580 |
!Change class methodsFor:'documentation'! |
235 | 581 |
|
2490 | 582 |
version |
4015 | 583 |
^ '$Header$' |
584 |
! |
|
585 |
||
586 |
version_CVS |
|
587 |
^ '$Header$' |
|
2185 | 588 |
! |
589 |
||
2378 | 590 |
version_SVN |
4015 | 591 |
^ '$Id$' |
235 | 592 |
! ! |
3136 | 593 |