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