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