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