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