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