author | Claus Gittinger <cg@exept.de> |
Tue, 30 Oct 2012 16:26:38 +0100 | |
changeset 11961 | 094f448dc1f0 |
parent 11958 | 949cbf2cbeb2 |
child 11962 | 1d931eea22af |
permissions | -rw-r--r-- |
2626 | 1 |
" |
2 |
COPYRIGHT (c) 2000 by eXept Software AG |
|
11453 | 3 |
All Rights Reserved |
2626 | 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 |
" |
|
2650
447c99ac6f76
oops - inspect & browse menu was broken.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
12 |
"{ Package: 'stx:libtool' }" |
447c99ac6f76
oops - inspect & browse menu was broken.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
13 |
|
2221 | 14 |
ApplicationModel subclass:#VersionDiffBrowser |
2856 | 15 |
instanceVariableNames:'classChangeSet diffTextView boxAVisible boxBVisible boxMVisible |
16 |
classIfSingleClassDiff versionAIfSingleClassDiff |
|
3147 | 17 |
versionBIfSingleClassDiff changedLabelHolder diffTextLabelA |
11596
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
18 |
diffTextLabelB methodText methodsChanged methodsChangedFiltered |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
19 |
methodsChangedSelection methodsOnlyInA methodsOnlyInAFiltered |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
20 |
methodsOnlyInASelection methodsOnlyInB methodsOnlyInBFiltered |
5182 | 21 |
methodsOnlyInBSelection onlyInALabelHolder onlyInBLabelHolder |
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
22 |
classHolder versionAHolder versionBHolder infoHolder |
11596
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
23 |
includeExtensionsHolder canIncludeExtensionsHolder |
11958 | 24 |
includeCategoryChangesHolder includeVersionMethodsHolder' |
2221 | 25 |
classVariableNames:'' |
26 |
poolDictionaries:'' |
|
27 |
category:'Interface-Browsers' |
|
28 |
! |
|
29 |
||
2497 | 30 |
HierarchicalItem subclass:#ClassChangeSet |
8891 | 31 |
instanceVariableNames:'classBeingCompared labelA labelB diffSet versionA versionB' |
2497 | 32 |
classVariableNames:'' |
33 |
poolDictionaries:'' |
|
34 |
privateIn:VersionDiffBrowser |
|
35 |
! |
|
36 |
||
2626 | 37 |
!VersionDiffBrowser class methodsFor:'documentation'! |
38 |
||
39 |
copyright |
|
40 |
" |
|
41 |
COPYRIGHT (c) 2000 by eXept Software AG |
|
11453 | 42 |
All Rights Reserved |
2626 | 43 |
|
44 |
This software is furnished under a license and may be used |
|
45 |
only in accordance with the terms of that license and with the |
|
46 |
inclusion of the above copyright notice. This software may not |
|
47 |
be provided or otherwise made available to, or used by, any |
|
48 |
other person. No title to or ownership of the software is |
|
49 |
hereby transferred. |
|
50 |
" |
|
51 |
||
52 |
! |
|
53 |
||
54 |
documentation |
|
55 |
" |
|
56 |
This is not yet finished (work in progress). |
|
57 |
||
58 |
A browser to show differences between class versions, |
|
59 |
allowing easy comparison; will also eventually add capabilities |
|
60 |
to checkIn / load classes into / from the repository. |
|
61 |
||
62 |
[see also:] |
|
63 |
||
64 |
[instance variables:] |
|
65 |
||
66 |
[class variables:] |
|
67 |
" |
|
68 |
||
69 |
||
70 |
! ! |
|
2221 | 71 |
|
72 |
!VersionDiffBrowser class methodsFor:'interface specs'! |
|
73 |
||
74 |
windowSpec |
|
75 |
"This resource specification was automatically generated |
|
76 |
by the UIPainter of ST/X." |
|
77 |
||
78 |
"Do not manually edit this!! If it is corrupted, |
|
79 |
the UIPainter may not be able to read the specification." |
|
80 |
||
81 |
" |
|
82 |
UIPainter new openOnClass:VersionDiffBrowser andSelector:#windowSpec |
|
83 |
VersionDiffBrowser new openInterface:#windowSpec |
|
84 |
VersionDiffBrowser open |
|
85 |
" |
|
86 |
||
87 |
<resource: #canvas> |
|
88 |
||
11453 | 89 |
^ |
5150
4a469455c4b4
Remove max windowsize constraint from windowSpecs.
Stefan Vogel <sv@exept.de>
parents:
4653
diff
changeset
|
90 |
#(FullSpec |
11453 | 91 |
name: windowSpec |
92 |
window: |
|
5150
4a469455c4b4
Remove max windowsize constraint from windowSpecs.
Stefan Vogel <sv@exept.de>
parents:
4653
diff
changeset
|
93 |
(WindowSpec |
11453 | 94 |
label: 'Version DiffBrowser' |
95 |
name: 'Version DiffBrowser' |
|
96 |
min: (Point 10 10) |
|
97 |
bounds: (Rectangle 0 0 865 504) |
|
98 |
menu: mainMenu |
|
99 |
) |
|
100 |
component: |
|
5150
4a469455c4b4
Remove max windowsize constraint from windowSpecs.
Stefan Vogel <sv@exept.de>
parents:
4653
diff
changeset
|
101 |
(SpecCollection |
11453 | 102 |
collection: ( |
103 |
(VariableVerticalPanelSpec |
|
104 |
name: 'VariableVerticalPanel1' |
|
105 |
layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 -25 1.0) |
|
106 |
component: |
|
107 |
(SpecCollection |
|
108 |
collection: ( |
|
109 |
(HorizontalPanelViewSpec |
|
110 |
name: 'TopHorizontalPanel' |
|
111 |
horizontalLayout: fit |
|
112 |
verticalLayout: fit |
|
113 |
horizontalSpace: 3 |
|
114 |
verticalSpace: 3 |
|
115 |
component: |
|
116 |
(SpecCollection |
|
117 |
collection: ( |
|
118 |
(ViewSpec |
|
119 |
name: 'BoxA' |
|
120 |
level: 0 |
|
121 |
visibilityChannel: boxAVisible |
|
122 |
component: |
|
123 |
(SpecCollection |
|
124 |
collection: ( |
|
125 |
(LabelSpec |
|
126 |
label: 'Only in A' |
|
127 |
name: 'OnlyInALabel' |
|
128 |
layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 20 0) |
|
129 |
translateLabel: true |
|
130 |
labelChannel: onlyInALabelHolder |
|
131 |
) |
|
132 |
(SequenceViewSpec |
|
133 |
name: 'ListA' |
|
134 |
layout: (LayoutFrame 0 0.0 20 0.0 0 1.0 -3 1.0) |
|
135 |
model: methodsOnlyInASelection |
|
136 |
menu: menuA |
|
137 |
hasHorizontalScrollBar: true |
|
138 |
hasVerticalScrollBar: true |
|
139 |
miniScrollerHorizontal: true |
|
140 |
doubleClickSelector: methodInADoubleClicked: |
|
141 |
valueChangeSelector: methodsOnlyInASelectionChanged |
|
142 |
useIndex: true |
|
143 |
sequenceList: methodsOnlyInA |
|
144 |
) |
|
145 |
) |
|
146 |
||
147 |
) |
|
148 |
extent: (Point 286 199) |
|
149 |
) |
|
150 |
(ViewSpec |
|
151 |
name: 'BoxM' |
|
152 |
visibilityChannel: boxMVisible |
|
153 |
component: |
|
154 |
(SpecCollection |
|
155 |
collection: ( |
|
156 |
(LabelSpec |
|
157 |
label: 'Changed' |
|
158 |
name: 'ChangedLabel' |
|
159 |
layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 20 0) |
|
160 |
translateLabel: true |
|
161 |
labelChannel: changedLabelHolder |
|
162 |
) |
|
163 |
(SequenceViewSpec |
|
164 |
name: 'ListM' |
|
165 |
layout: (LayoutFrame 0 0.0 20 0.0 0 1.0 -3 1.0) |
|
166 |
model: methodsChangedSelection |
|
167 |
menu: menuM |
|
168 |
hasHorizontalScrollBar: true |
|
169 |
hasVerticalScrollBar: true |
|
170 |
miniScrollerHorizontal: true |
|
171 |
doubleClickSelector: methodInChangedDoubleClicked: |
|
172 |
valueChangeSelector: methodsChangedSelectionChanged |
|
173 |
useIndex: true |
|
174 |
sequenceList: methodsChanged |
|
175 |
) |
|
176 |
) |
|
177 |
||
178 |
) |
|
179 |
extent: (Point 286 199) |
|
180 |
) |
|
181 |
(ViewSpec |
|
182 |
name: 'BoxB' |
|
183 |
visibilityChannel: boxBVisible |
|
184 |
component: |
|
185 |
(SpecCollection |
|
186 |
collection: ( |
|
187 |
(LabelSpec |
|
188 |
label: 'Only in B' |
|
189 |
name: 'OnlyInBLabel' |
|
190 |
layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 20 0) |
|
191 |
translateLabel: true |
|
192 |
labelChannel: onlyInBLabelHolder |
|
193 |
) |
|
194 |
(SequenceViewSpec |
|
195 |
name: 'ListB' |
|
196 |
layout: (LayoutFrame 0 0.0 20 0.0 0 1.0 -3 1.0) |
|
197 |
model: methodsOnlyInBSelection |
|
198 |
menu: menuB |
|
199 |
hasHorizontalScrollBar: true |
|
200 |
hasVerticalScrollBar: true |
|
201 |
miniScrollerHorizontal: true |
|
202 |
doubleClickSelector: methodInBDoubleClicked: |
|
203 |
valueChangeSelector: methodsOnlyInBSelectionChanged |
|
204 |
useIndex: true |
|
205 |
sequenceList: methodsOnlyInB |
|
206 |
) |
|
207 |
) |
|
208 |
||
209 |
) |
|
210 |
extent: (Point 287 199) |
|
211 |
) |
|
212 |
) |
|
213 |
||
214 |
) |
|
215 |
) |
|
216 |
(ViewSpec |
|
217 |
name: 'Box4' |
|
218 |
component: |
|
219 |
(SpecCollection |
|
220 |
collection: ( |
|
221 |
(ViewSpec |
|
222 |
name: 'diffTextViewBox' |
|
223 |
layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0) |
|
224 |
initiallyInvisible: true |
|
225 |
component: |
|
226 |
(SpecCollection |
|
227 |
collection: ( |
|
228 |
(LabelSpec |
|
229 |
label: 'A' |
|
230 |
name: 'DiffTextLabelA' |
|
231 |
layout: (LayoutFrame 0 0 0 0 0 0.5 20 0) |
|
232 |
translateLabel: true |
|
233 |
labelChannel: diffTextLabelA |
|
234 |
) |
|
235 |
(LabelSpec |
|
236 |
label: 'B' |
|
237 |
name: 'DiffTextLabelB' |
|
238 |
layout: (LayoutFrame 0 0.5 0 0 0 1 20 0) |
|
239 |
translateLabel: true |
|
240 |
labelChannel: diffTextLabelB |
|
241 |
) |
|
242 |
(ArbitraryComponentSpec |
|
243 |
name: 'diffTextView' |
|
244 |
layout: (LayoutFrame 0 0.0 20 0.0 0 1.0 0 1.0) |
|
245 |
hasBorder: false |
|
246 |
component: diffTextView |
|
247 |
) |
|
248 |
) |
|
249 |
||
250 |
) |
|
251 |
) |
|
252 |
(CodeViewSpec |
|
253 |
name: 'singleTextView' |
|
254 |
layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0) |
|
255 |
model: methodText |
|
256 |
hasHorizontalScrollBar: true |
|
257 |
hasVerticalScrollBar: true |
|
258 |
miniScrollerHorizontal: true |
|
259 |
isReadOnly: true |
|
260 |
hasKeyboardFocusInitially: false |
|
261 |
) |
|
262 |
) |
|
263 |
||
264 |
) |
|
265 |
) |
|
266 |
) |
|
267 |
||
268 |
) |
|
269 |
handles: (Any 0.42379958246347 1.0) |
|
270 |
) |
|
271 |
(LabelSpec |
|
272 |
name: 'InfoLabel' |
|
273 |
layout: (LayoutFrame 0 0 -25 1 0 1 0 1) |
|
274 |
level: -1 |
|
275 |
translateLabel: true |
|
276 |
labelChannel: infoHolder |
|
277 |
adjust: left |
|
278 |
) |
|
279 |
) |
|
280 |
||
281 |
) |
|
2221 | 282 |
) |
283 |
! ! |
|
284 |
||
285 |
!VersionDiffBrowser class methodsFor:'menu specs'! |
|
286 |
||
287 |
mainMenu |
|
288 |
"This resource specification was automatically generated |
|
289 |
by the MenuEditor of ST/X." |
|
290 |
||
291 |
"Do not manually edit this!! If it is corrupted, |
|
292 |
the MenuEditor may not be able to read the specification." |
|
293 |
||
10703 | 294 |
|
2221 | 295 |
" |
296 |
MenuEditor new openOnClass:VersionDiffBrowser andSelector:#mainMenu |
|
297 |
(Menu new fromLiteralArrayEncoding:(VersionDiffBrowser mainMenu)) startUp |
|
298 |
" |
|
299 |
||
300 |
<resource: #menu> |
|
301 |
||
11596
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
302 |
^ |
7419
e4e108674fe6
conditionalRight in startGroup
Claus Gittinger <cg@exept.de>
parents:
7396
diff
changeset
|
303 |
#(Menu |
11596
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
304 |
( |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
305 |
(MenuItem |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
306 |
label: 'File' |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
307 |
submenu: |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
308 |
(Menu |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
309 |
( |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
310 |
(MenuItem |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
311 |
label: 'Create PatchFile...' |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
312 |
itemValue: createPatchFile |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
313 |
) |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
314 |
(MenuItem |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
315 |
label: '-' |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
316 |
) |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
317 |
(MenuItem |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
318 |
label: 'Exit' |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
319 |
itemValue: closeRequest |
11853
fe611dbb05ca
added: #removeClassFromChangeSet
Claus Gittinger <cg@exept.de>
parents:
11596
diff
changeset
|
320 |
) |
fe611dbb05ca
added: #removeClassFromChangeSet
Claus Gittinger <cg@exept.de>
parents:
11596
diff
changeset
|
321 |
) |
fe611dbb05ca
added: #removeClassFromChangeSet
Claus Gittinger <cg@exept.de>
parents:
11596
diff
changeset
|
322 |
nil |
fe611dbb05ca
added: #removeClassFromChangeSet
Claus Gittinger <cg@exept.de>
parents:
11596
diff
changeset
|
323 |
nil |
fe611dbb05ca
added: #removeClassFromChangeSet
Claus Gittinger <cg@exept.de>
parents:
11596
diff
changeset
|
324 |
) |
fe611dbb05ca
added: #removeClassFromChangeSet
Claus Gittinger <cg@exept.de>
parents:
11596
diff
changeset
|
325 |
) |
fe611dbb05ca
added: #removeClassFromChangeSet
Claus Gittinger <cg@exept.de>
parents:
11596
diff
changeset
|
326 |
(MenuItem |
fe611dbb05ca
added: #removeClassFromChangeSet
Claus Gittinger <cg@exept.de>
parents:
11596
diff
changeset
|
327 |
label: 'Class' |
fe611dbb05ca
added: #removeClassFromChangeSet
Claus Gittinger <cg@exept.de>
parents:
11596
diff
changeset
|
328 |
submenu: |
fe611dbb05ca
added: #removeClassFromChangeSet
Claus Gittinger <cg@exept.de>
parents:
11596
diff
changeset
|
329 |
(Menu |
fe611dbb05ca
added: #removeClassFromChangeSet
Claus Gittinger <cg@exept.de>
parents:
11596
diff
changeset
|
330 |
( |
fe611dbb05ca
added: #removeClassFromChangeSet
Claus Gittinger <cg@exept.de>
parents:
11596
diff
changeset
|
331 |
(MenuItem |
fe611dbb05ca
added: #removeClassFromChangeSet
Claus Gittinger <cg@exept.de>
parents:
11596
diff
changeset
|
332 |
label: 'Remove from Changeset' |
fe611dbb05ca
added: #removeClassFromChangeSet
Claus Gittinger <cg@exept.de>
parents:
11596
diff
changeset
|
333 |
itemValue: removeClassFromChangeSet |
11596
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
334 |
) |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
335 |
) |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
336 |
nil |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
337 |
nil |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
338 |
) |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
339 |
) |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
340 |
(MenuItem |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
341 |
label: 'View' |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
342 |
submenu: |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
343 |
(Menu |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
344 |
( |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
345 |
(MenuItem |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
346 |
enabled: canIncludeExtensionsHolder |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
347 |
label: 'Include Extensions' |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
348 |
itemValue: includeExtensions: |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
349 |
indication: includeExtensionsHolder |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
350 |
) |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
351 |
(MenuItem |
11958 | 352 |
enabled: canIncludeExtensionsHolder |
353 |
label: 'Include Version Methods' |
|
354 |
itemValue: includeVersionMethods: |
|
355 |
indication: includeVersionMethodsHolder |
|
356 |
) |
|
357 |
(MenuItem |
|
358 |
label: '-' |
|
359 |
) |
|
360 |
(MenuItem |
|
11596
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
361 |
label: 'Include Category Changes' |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
362 |
itemValue: includeCategoryChanges: |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
363 |
indication: includeCategoryChangesHolder |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
364 |
) |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
365 |
) |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
366 |
nil |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
367 |
nil |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
368 |
) |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
369 |
) |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
370 |
(MenuItem |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
371 |
label: 'Help' |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
372 |
startGroup: conditionalRight |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
373 |
submenu: |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
374 |
(Menu |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
375 |
( |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
376 |
(MenuItem |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
377 |
label: 'Documentation' |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
378 |
itemValue: openDocumentation |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
379 |
) |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
380 |
(MenuItem |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
381 |
label: '-' |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
382 |
) |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
383 |
(MenuItem |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
384 |
label: 'About this Application...' |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
385 |
itemValue: openAboutThisApplication |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
386 |
) |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
387 |
) |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
388 |
nil |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
389 |
nil |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
390 |
) |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
391 |
) |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
392 |
) |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
393 |
nil |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
394 |
nil |
2221 | 395 |
) |
396 |
! |
|
397 |
||
398 |
menuA |
|
399 |
"This resource specification was automatically generated |
|
400 |
by the MenuEditor of ST/X." |
|
401 |
||
402 |
"Do not manually edit this!! If it is corrupted, |
|
403 |
the MenuEditor may not be able to read the specification." |
|
404 |
||
405 |
" |
|
406 |
MenuEditor new openOnClass:VersionDiffBrowser andSelector:#menu1 |
|
407 |
(Menu new fromLiteralArrayEncoding:(VersionDiffBrowser menu1)) startUp |
|
408 |
" |
|
409 |
||
410 |
<resource: #menu> |
|
411 |
||
11453 | 412 |
^ |
2221 | 413 |
#(#Menu |
11453 | 414 |
#( |
415 |
#(#MenuItem |
|
416 |
#label: 'Apply' |
|
417 |
#translateLabel: true |
|
418 |
#value: #applySelectedChangeInA |
|
419 |
#enabled: #hasChangeSelectedInA |
|
420 |
) |
|
421 |
#(#MenuItem |
|
422 |
#label: 'Browse' |
|
423 |
#translateLabel: true |
|
424 |
#value: #browseClassInA |
|
425 |
#enabled: #hasChangeSelectedInA |
|
426 |
) |
|
427 |
#(#MenuItem |
|
428 |
#label: '-' |
|
429 |
) |
|
430 |
#(#MenuItem |
|
431 |
#label: 'Inspect' |
|
432 |
#translateLabel: true |
|
433 |
#value: #inspectSelectedChangeInA |
|
434 |
#choiceValue: 'nil "UndefinedObject" ' |
|
435 |
#enabled: #hasChangeSelectedInA |
|
436 |
) |
|
437 |
) |
|
438 |
nil |
|
439 |
nil |
|
2221 | 440 |
) |
441 |
! |
|
442 |
||
443 |
menuB |
|
444 |
"This resource specification was automatically generated |
|
445 |
by the MenuEditor of ST/X." |
|
446 |
||
447 |
"Do not manually edit this!! If it is corrupted, |
|
448 |
the MenuEditor may not be able to read the specification." |
|
449 |
||
450 |
" |
|
451 |
MenuEditor new openOnClass:VersionDiffBrowser andSelector:#menuB |
|
452 |
(Menu new fromLiteralArrayEncoding:(VersionDiffBrowser menuB)) startUp |
|
453 |
" |
|
454 |
||
455 |
<resource: #menu> |
|
456 |
||
11453 | 457 |
^ |
2221 | 458 |
#(#Menu |
11453 | 459 |
#( |
460 |
#(#MenuItem |
|
461 |
#label: 'Apply' |
|
462 |
#translateLabel: true |
|
463 |
#value: #applySelectedChangeInB |
|
464 |
#enabled: #hasChangeSelectedInB |
|
465 |
) |
|
466 |
#(#MenuItem |
|
467 |
#label: 'Browse' |
|
468 |
#translateLabel: true |
|
469 |
#value: #browseClassInB |
|
470 |
#enabled: #hasChangeSelectedInB |
|
471 |
) |
|
472 |
#(#MenuItem |
|
473 |
#label: '-' |
|
474 |
) |
|
475 |
#(#MenuItem |
|
476 |
#label: 'Remove in Image' |
|
477 |
#translateLabel: true |
|
478 |
#value: #removeSelectedChangeInBFromImage |
|
479 |
#enabled: #hasChangeSelectedInB |
|
480 |
) |
|
481 |
#(#MenuItem |
|
482 |
#label: '-' |
|
483 |
) |
|
484 |
#(#MenuItem |
|
485 |
#label: 'Inspect' |
|
486 |
#translateLabel: true |
|
487 |
#value: #inspectSelectedChangeInB |
|
488 |
#choiceValue: 'nil "UndefinedObject" ' |
|
489 |
#enabled: #hasChangeSelectedInB |
|
490 |
) |
|
491 |
) |
|
492 |
nil |
|
493 |
nil |
|
2221 | 494 |
) |
9550
531c77d5d3e3
added: #removeSelectedChangeInBFromImage
Claus Gittinger <cg@exept.de>
parents:
9383
diff
changeset
|
495 |
|
531c77d5d3e3
added: #removeSelectedChangeInBFromImage
Claus Gittinger <cg@exept.de>
parents:
9383
diff
changeset
|
496 |
"Modified: / 15-08-2010 / 21:24:49 / cg" |
2221 | 497 |
! |
498 |
||
499 |
menuM |
|
500 |
"This resource specification was automatically generated |
|
501 |
by the MenuEditor of ST/X." |
|
502 |
||
503 |
"Do not manually edit this!! If it is corrupted, |
|
504 |
the MenuEditor may not be able to read the specification." |
|
505 |
||
506 |
" |
|
507 |
MenuEditor new openOnClass:VersionDiffBrowser andSelector:#menu1 |
|
508 |
(Menu new fromLiteralArrayEncoding:(VersionDiffBrowser menu1)) startUp |
|
509 |
" |
|
510 |
||
511 |
<resource: #menu> |
|
512 |
||
11453 | 513 |
^ |
2221 | 514 |
#(#Menu |
11453 | 515 |
#( |
516 |
#(#MenuItem |
|
517 |
#label: 'Browse' |
|
518 |
#translateLabel: true |
|
519 |
#value: #browseClassInM |
|
520 |
#enabled: #hasChangeSelectedInM |
|
521 |
) |
|
522 |
#(#MenuItem |
|
523 |
#label: '-' |
|
524 |
) |
|
525 |
#(#MenuItem |
|
526 |
#label: 'Apply Left Version' |
|
527 |
#translateLabel: true |
|
528 |
#value: #acceptInLeftView |
|
529 |
#enabled: #hasChangeSelectedInM |
|
530 |
) |
|
531 |
#(#MenuItem |
|
532 |
#label: 'Apply Right Version' |
|
533 |
#translateLabel: true |
|
534 |
#value: #acceptInRightView |
|
535 |
#enabled: #hasChangeSelectedInM |
|
536 |
) |
|
537 |
#(#MenuItem |
|
538 |
#label: '-' |
|
539 |
) |
|
540 |
#(#MenuItem |
|
541 |
#label: 'Inspect both' |
|
542 |
#translateLabel: true |
|
543 |
#value: #inspectSelectedChangeInM |
|
544 |
#choiceValue: 'nil "UndefinedObject" ' |
|
545 |
#enabled: #hasChangeSelectedInM |
|
546 |
) |
|
547 |
) |
|
548 |
nil |
|
549 |
nil |
|
2221 | 550 |
) |
7833 | 551 |
|
552 |
"Modified: / 31-08-2007 / 14:16:39 / cg" |
|
2221 | 553 |
! ! |
554 |
||
2695 | 555 |
!VersionDiffBrowser class methodsFor:'plugIn spec'! |
556 |
||
557 |
aspectSelectors |
|
558 |
"This resource specification was automatically generated |
|
559 |
by the UIPainter of ST/X." |
|
560 |
||
561 |
"Do not manually edit this. If it is corrupted, |
|
562 |
the UIPainter may not be able to read the specification." |
|
563 |
||
564 |
"Return a description of exported aspects; |
|
565 |
these can be connected to aspects of an embedding application |
|
566 |
(if this app is embedded in a subCanvas)." |
|
567 |
||
568 |
^ #( |
|
11453 | 569 |
#changedLabelHolder |
570 |
#onlyInALabelHolder |
|
571 |
#onlyInBLabelHolder |
|
2695 | 572 |
). |
573 |
||
574 |
! ! |
|
575 |
||
2221 | 576 |
!VersionDiffBrowser class methodsFor:'startup'! |
577 |
||
11453 | 578 |
openOnClass:aClass againstVersion:aVersionA |
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
579 |
"create a VersionDiffBrowser instance and set the class change set of the |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
580 |
browser. The class diff set is generated from aClasses current against some version |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
581 |
via the source code manager." |
2507 | 582 |
|
2497 | 583 |
|theBrowser| |
2224 | 584 |
|
2497 | 585 |
theBrowser := self new. |
586 |
theBrowser allButOpen. |
|
2695 | 587 |
theBrowser setupForClass:aClass againstVersion:aVersionA. |
2497 | 588 |
theBrowser openWindow. |
589 |
^ theBrowser. |
|
2224 | 590 |
|
2695 | 591 |
" |
592 |
self openOnClass:Array againstVersion:'1.116' |
|
593 |
self openOnClass:Array againstVersion:nil - against the version on which Array is based upon |
|
594 |
self openOnClass:Array againstVersion:#newest - against the newest repository version |
|
595 |
||
596 |
self openOnClass:VersionDiffBrowser againstVersion:nil |
|
597 |
self openOnClass:VersionDiffBrowser againstVersion:#newest |
|
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
598 |
|
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
599 |
(self openOnClass:ByteArray againstVersion:'1.116') includeExtensionsHolder value:true |
2695 | 600 |
" |
601 |
! |
|
602 |
||
11453 | 603 |
openOnClass:classA labelA:aLabelA andClass:classB labelB:aLabelB title:ignoredTitle |
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
604 |
"create a VersionDiffBrowser instance and set the class change set of the |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
605 |
browser. The class diff set is generated from two classes." |
2949 | 606 |
|
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
607 |
^ self |
11453 | 608 |
openOnClass:classA labelA:aLabelA |
609 |
andClass:classB labelB:aLabelB |
|
610 |
title:ignoredTitle ifSame:nil |
|
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
611 |
|
3147 | 612 |
" |
11453 | 613 |
self |
614 |
openOnClass:Array labelA:'Array' |
|
615 |
andClass:Collection labelB:'Collection' |
|
616 |
title:'Array vs. Collection' |
|
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
617 |
" |
2949 | 618 |
! |
619 |
||
620 |
openOnClass:classA labelA:aLabelA andClass:classB labelB:aLabelB title:ignoredTitle ifSame:sameAction |
|
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
621 |
"create a VersionDiffBrowser instance and set the class change set of the |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
622 |
browser. The class diff set is generated from two classes." |
2949 | 623 |
|
8891 | 624 |
|classChangeSet| |
2949 | 625 |
|
8891 | 626 |
classChangeSet := ClassChangeSet newForClass:classA labelA:aLabelA andClass:classB labelB:aLabelB. |
627 |
classChangeSet removeAllVersionMethods. |
|
2949 | 628 |
sameAction notNil ifTrue:[ |
11453 | 629 |
"/ check if same ... |
630 |
(classChangeSet methodsOnlyInA isEmpty |
|
631 |
and:[classChangeSet methodsOnlyInB isEmpty |
|
632 |
and:[classChangeSet diffSet isEmpty]]) ifTrue:[ |
|
633 |
sameAction value. |
|
634 |
^ self "/ do not open |
|
635 |
] |
|
2949 | 636 |
]. |
8891 | 637 |
|
638 |
^ self openOnClassChangeSet:classChangeSet title:ignoredTitle |
|
2949 | 639 |
! |
640 |
||
11453 | 641 |
openOnClass:aClass labelA:aLabelA sourceA:aSourceA labelB:aLabelB sourceB:aSourceB |
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
642 |
"create a VersionDiffBrowser instance and set the class change set of the |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
643 |
browser. The class diff set is generated from two source files." |
2695 | 644 |
|
2716
8451e7057f00
some common startup protocol between DiffViewer and VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents:
2714
diff
changeset
|
645 |
^ self |
11453 | 646 |
openOnClass:aClass labelA:aLabelA sourceA:aSourceA labelB:aLabelB sourceB:aSourceB |
647 |
title:nil |
|
2716
8451e7057f00
some common startup protocol between DiffViewer and VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents:
2714
diff
changeset
|
648 |
! |
8451e7057f00
some common startup protocol between DiffViewer and VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents:
2714
diff
changeset
|
649 |
|
8451e7057f00
some common startup protocol between DiffViewer and VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents:
2714
diff
changeset
|
650 |
openOnClass:aClass labelA:aLabelA sourceA:aSourceA labelB:aLabelB sourceB:aSourceB title:ignoredTitle |
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
651 |
"create a VersionDiffBrowser instance and set the class change set of the |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
652 |
browser. The class diff set is generated from two source files." |
2716
8451e7057f00
some common startup protocol between DiffViewer and VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents:
2714
diff
changeset
|
653 |
|
11453 | 654 |
^ self |
655 |
openOnClass:aClass labelA:aLabelA sourceA:aSourceA |
|
656 |
labelB:aLabelB sourceB:aSourceB |
|
657 |
title:ignoredTitle ifSame:nil |
|
2849 | 658 |
! |
659 |
||
660 |
openOnClass:aClass labelA:aLabelA sourceA:aSourceA labelB:aLabelB sourceB:aSourceB title:ignoredTitle ifSame:sameAction |
|
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
661 |
"create a VersionDiffBrowser instance and set the class change set of the |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
662 |
browser. The class diff set is generated from two source files." |
8891 | 663 |
|
664 |
|diffs hasChangedMethods classChangeSet versionMethodChanges| |
|
2695 | 665 |
|
8891 | 666 |
classChangeSet := ClassChangeSet newForClass:aClass labelA:aLabelA sourceA:aSourceA labelB:aLabelB sourceB:aSourceB. |
667 |
classChangeSet removeAllVersionMethods. |
|
2849 | 668 |
sameAction notNil ifTrue:[ |
11453 | 669 |
"/ check if same ... |
670 |
(classChangeSet methodsOnlyInA isEmpty |
|
671 |
and:[classChangeSet methodsOnlyInB isEmpty]) ifTrue:[ |
|
672 |
diffs := classChangeSet diffSet. |
|
3853
f3ce00da9b68
ignore any changes in the version method, when compating
Claus Gittinger <cg@exept.de>
parents:
3843
diff
changeset
|
673 |
|
11453 | 674 |
hasChangedMethods := diffs changed notEmpty. |
675 |
hasChangedMethods ifTrue:[ |
|
676 |
versionMethodChanges := diffs changed select:[:eachDifference | |
|
677 |
|eachChange| |
|
678 |
eachChange := eachDifference first. |
|
679 |
(eachChange isMethodChange |
|
680 |
and:[ (AbstractSourceCodeManager isVersionMethodSelector:eachChange selector) |
|
681 |
and:[ eachChange changeClass isMeta ]]). |
|
682 |
]. |
|
683 |
diffs changed size == versionMethodChanges size ifTrue: [ |
|
684 |
hasChangedMethods := false. |
|
685 |
]. |
|
8811
65e08571a2f3
changed: #openOnClass:labelA:sourceA:labelB:sourceB:title:ifSame:
fm
parents:
8657
diff
changeset
|
686 |
"/ diffs changed size == 1 ifTrue:[ |
65e08571a2f3
changed: #openOnClass:labelA:sourceA:labelB:sourceB:title:ifSame:
fm
parents:
8657
diff
changeset
|
687 |
"/ theOnlyDifference := diffs changed first. |
65e08571a2f3
changed: #openOnClass:labelA:sourceA:labelB:sourceB:title:ifSame:
fm
parents:
8657
diff
changeset
|
688 |
"/ theOnlyChange := theOnlyDifference first. |
11453 | 689 |
"/ (theOnlyChange isMethodChange |
8811
65e08571a2f3
changed: #openOnClass:labelA:sourceA:labelB:sourceB:title:ifSame:
fm
parents:
8657
diff
changeset
|
690 |
"/ and:[ ((theOnlyChange selector == #version) or:[theOnlyChange selector startsWith:'version_']) |
65e08571a2f3
changed: #openOnClass:labelA:sourceA:labelB:sourceB:title:ifSame:
fm
parents:
8657
diff
changeset
|
691 |
"/ and:[ theOnlyChange changeClass isMeta ]]) ifTrue:[ |
65e08571a2f3
changed: #openOnClass:labelA:sourceA:labelB:sourceB:title:ifSame:
fm
parents:
8657
diff
changeset
|
692 |
"/ hasChangedMethods := false |
65e08571a2f3
changed: #openOnClass:labelA:sourceA:labelB:sourceB:title:ifSame:
fm
parents:
8657
diff
changeset
|
693 |
"/ ] |
65e08571a2f3
changed: #openOnClass:labelA:sourceA:labelB:sourceB:title:ifSame:
fm
parents:
8657
diff
changeset
|
694 |
"/ ] |
11453 | 695 |
]. |
3853
f3ce00da9b68
ignore any changes in the version method, when compating
Claus Gittinger <cg@exept.de>
parents:
3843
diff
changeset
|
696 |
|
11453 | 697 |
(hasChangedMethods not |
698 |
and:[diffs onlyInArg isEmpty |
|
699 |
and:[diffs onlyInReceiver isEmpty]]) ifTrue:[ |
|
700 |
sameAction value. |
|
701 |
^ self "/ do not open |
|
702 |
]. |
|
703 |
] |
|
2849 | 704 |
]. |
8891 | 705 |
|
706 |
^ self openOnClassChangeSet:classChangeSet title:ignoredTitle |
|
7396 | 707 |
|
708 |
"Modified: / 13-10-2006 / 01:01:05 / cg" |
|
2224 | 709 |
! |
710 |
||
2497 | 711 |
openOnClass:aClass versionA:aVersionA versionB:aVersionB |
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
712 |
"create a VersionDiffBrowser instance and set the class change set of the |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
713 |
browser. The class diff set is generated from two versions of aClass via |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
714 |
the source code manager." |
2507 | 715 |
|
2497 | 716 |
|theBrowser| |
2221 | 717 |
|
2497 | 718 |
theBrowser := self new. |
719 |
theBrowser allButOpen. |
|
2695 | 720 |
theBrowser setupForClass:aClass versionA:aVersionA versionB:aVersionB. |
2497 | 721 |
theBrowser openWindow. |
722 |
^ theBrowser. |
|
2221 | 723 |
|
724 |
" |
|
725 |
self openOnClass:Array versionA:'1.116' versionB:'1.113' |
|
726 |
" |
|
3678 | 727 |
! |
728 |
||
8891 | 729 |
openOnClassChangeSet:classChangeSet title:ignoredTitle |
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
730 |
"create a VersionDiffBrowser instance and set the class change set of the |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
731 |
browser. The class diff set is generated from two classes." |
8891 | 732 |
|
733 |
|theBrowser| |
|
734 |
||
735 |
theBrowser := self new. |
|
736 |
theBrowser allButOpen. |
|
737 |
theBrowser classChangeSet:classChangeSet. |
|
738 |
theBrowser openWindow. |
|
739 |
^ theBrowser. |
|
740 |
! |
|
741 |
||
3678 | 742 |
openOnDiffSet:diffSet labelA:aLabelA labelB:aLabelB title:ignoredTitle |
10691 | 743 |
^ self |
11961
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
744 |
openOnDiffSet:diffSet |
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
745 |
labelA:aLabelA labelB:aLabelB |
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
746 |
title:ignoredTitle |
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
747 |
ignoreExtensions:false |
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
748 |
ignoreVersionMethods:false |
10691 | 749 |
|
750 |
"Modified: / 12-09-2011 / 11:52:44 / cg" |
|
751 |
! |
|
752 |
||
11961
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
753 |
openOnDiffSet:diffSet labelA:aLabelA labelB:aLabelB title:ignoredTitle ignoreExtensions:ignoreExtensionsBoolean |
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
754 |
^ self |
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
755 |
openOnDiffSet:diffSet |
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
756 |
labelA:aLabelA labelB:aLabelB |
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
757 |
title:ignoredTitle |
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
758 |
ignoreExtensions:ignoreExtensionsBoolean |
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
759 |
ignoreVersionMethods:false |
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
760 |
! |
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
761 |
|
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
762 |
openOnDiffSet:diffSet labelA:aLabelA labelB:aLabelB title:ignoredTitle ignoreExtensions:ignoreExtensionsBoolean ignoreVersionMethods:ignoreVersionMethodsBoolean |
3678 | 763 |
|theBrowser| |
764 |
||
765 |
theBrowser := self new. |
|
11961
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
766 |
theBrowser ignoreExtensions:ignoreExtensionsBoolean. |
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
767 |
theBrowser ignoreVersionMethods:ignoreVersionMethodsBoolean. |
3678 | 768 |
theBrowser allButOpen. |
769 |
theBrowser setupForDiffSet:diffSet labelA:aLabelA labelB:aLabelB. |
|
770 |
theBrowser window label:ignoredTitle. |
|
771 |
theBrowser openWindow. |
|
772 |
^ theBrowser. |
|
10691 | 773 |
|
774 |
"Created: / 12-09-2011 / 11:50:18 / cg" |
|
5520 | 775 |
! |
776 |
||
777 |
openOnDiffsBetweenFile:file1 and:file2 |
|
778 |
|set1 set2 diffset theBrowser| |
|
779 |
||
780 |
set1 := ChangeSet fromFile:file1. |
|
781 |
set2 := ChangeSet fromFile:file2. |
|
782 |
diffset := set1 diffSetsAgainst:set2. |
|
783 |
||
784 |
theBrowser := self new. |
|
785 |
theBrowser allButOpen. |
|
786 |
theBrowser setupForDiffSet:diffset labelA:file1 asFilename baseName labelB:file2 asFilename baseName. |
|
787 |
theBrowser window label:('%1 vs. %2' bindWith:file1 asFilename baseName with:file2 asFilename baseName). |
|
788 |
theBrowser openWindow. |
|
789 |
^ theBrowser. |
|
790 |
||
791 |
" |
|
11453 | 792 |
VersionDiffBrowser |
793 |
openOnDiffsBetweenFile:'/phys/exept/tmp/ws/Workflow::BlockDescription.st' |
|
794 |
and:'/phys/exept/tmp/workflowClasses/Workflow::BlockDescription.st' |
|
5520 | 795 |
" |
2221 | 796 |
! ! |
797 |
||
798 |
!VersionDiffBrowser methodsFor:'accessing'! |
|
799 |
||
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
800 |
canIncludeExtensions:something |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
801 |
self canIncludeExtensionsHolder value:something. |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
802 |
! |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
803 |
|
2497 | 804 |
changeSetA |
3147 | 805 |
" |
806 |
gets the change set which contains only the new methods |
|
807 |
in versionA of the class |
|
2221 | 808 |
|
3147 | 809 |
<return: ChangeSet> |
810 |
" |
|
2221 | 811 |
|
2497 | 812 |
^ self classChangeSet methodsOnlyInA |
2221 | 813 |
! |
814 |
||
2497 | 815 |
changeSetB |
3147 | 816 |
" |
817 |
gets the change set which contains only the new methods |
|
818 |
in versionB of the class |
|
2497 | 819 |
|
3147 | 820 |
<return: ChangeSet> |
821 |
" |
|
2497 | 822 |
|
823 |
^ self classChangeSet methodsOnlyInB |
|
824 |
! |
|
825 |
||
2856 | 826 |
class:aClass versionA:revA versionB:revB |
827 |
classIfSingleClassDiff := aClass. |
|
828 |
versionAIfSingleClassDiff := revA. |
|
829 |
versionBIfSingleClassDiff := revB. |
|
830 |
! |
|
831 |
||
2497 | 832 |
classBeingCompared |
3147 | 833 |
" |
834 |
gets the class from the change set which is compared. |
|
2224 | 835 |
|
3147 | 836 |
<return: Class> |
11453 | 837 |
" |
2497 | 838 |
^ self classChangeSet classBeingCompared |
839 |
! |
|
840 |
||
841 |
classChangeSet |
|
11453 | 842 |
"returns the class change set which is the model of the version diff browser." |
2224 | 843 |
|
2507 | 844 |
^ classChangeSet |
845 |
! |
|
2497 | 846 |
|
2507 | 847 |
classChangeSet:aClassChangeSet |
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
848 |
"sets the class change set which is the model of the version diff browser. |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
849 |
The labels, the lists, the visibility and the selection of the lists must be reseted |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
850 |
when a new change set is given." |
2497 | 851 |
|
2507 | 852 |
classChangeSet := aClassChangeSet. |
2501 | 853 |
self updateLabels. |
854 |
self updateLists. |
|
855 |
self resetSelectionHolders. |
|
856 |
! |
|
2224 | 857 |
|
10691 | 858 |
ignoreExtensions |
859 |
"if true, extension methods are suppressed. |
|
860 |
Ignoring is useful when comparing for baseClass checkin, |
|
861 |
as opposed to extension-checking, where extensions should not be ignored. |
|
862 |
the default is false" |
|
863 |
||
11371
920084723b9c
exclude extension stuff fixed
Claus Gittinger <cg@exept.de>
parents:
10892
diff
changeset
|
864 |
^ self includeExtensions not |
10691 | 865 |
|
866 |
"Created: / 12-09-2011 / 11:54:11 / cg" |
|
867 |
! |
|
868 |
||
869 |
ignoreExtensions:aBoolean |
|
870 |
"if true, extension methods are suppressed. |
|
871 |
Ignoring is useful when comparing for baseClass checkin, |
|
872 |
as opposed to extension-checking, where extensions should not be ignored. |
|
873 |
the default is false" |
|
874 |
||
11371
920084723b9c
exclude extension stuff fixed
Claus Gittinger <cg@exept.de>
parents:
10892
diff
changeset
|
875 |
self includeExtensions:aBoolean not |
10691 | 876 |
|
11371
920084723b9c
exclude extension stuff fixed
Claus Gittinger <cg@exept.de>
parents:
10892
diff
changeset
|
877 |
"Modified: / 06-03-2012 / 15:37:32 / cg" |
10691 | 878 |
! |
879 |
||
11961
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
880 |
ignoreVersionMethods:aBoolean |
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
881 |
"if true, version methods (version and version_XXX) are suppressed. |
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
882 |
Ignoring is useful when comparing for real code changes. |
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
883 |
the default is false" |
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
884 |
|
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
885 |
self includeVersionMethods:aBoolean not |
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
886 |
|
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
887 |
"Modified: / 06-03-2012 / 15:37:32 / cg" |
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
888 |
! |
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
889 |
|
2507 | 890 |
selectedChangeInA |
3147 | 891 |
" |
892 |
gets the selected method change for the 'method only in version A'. |
|
2507 | 893 |
|
3147 | 894 |
<return: MethodChange | nil> |
895 |
" |
|
2507 | 896 |
|sel change| |
897 |
||
898 |
sel := self methodsOnlyInASelection value. |
|
899 |
sel notNil ifTrue:[ |
|
11453 | 900 |
change := self changeSetA at:sel. |
2507 | 901 |
]. |
3753 | 902 |
^ change |
2507 | 903 |
! |
904 |
||
905 |
selectedChangeInB |
|
3147 | 906 |
" |
907 |
gets the selected method change for the 'method only in version B'. |
|
2507 | 908 |
|
3147 | 909 |
<return: MethodChange | nil> |
910 |
" |
|
2507 | 911 |
|sel change| |
912 |
||
913 |
sel := self methodsOnlyInBSelection value. |
|
914 |
sel notNil ifTrue:[ |
|
11453 | 915 |
change := (self changeSetB at:sel). |
2507 | 916 |
]. |
3753 | 917 |
^ change |
2507 | 918 |
! |
919 |
||
920 |
selectedChangesInM |
|
3147 | 921 |
" |
922 |
get the two method changes for the selected 'changed method'. |
|
2507 | 923 |
|
3147 | 924 |
<return: <Array with:MethodChange with:MethodChange | nil>> |
925 |
" |
|
2745 | 926 |
|sel changeA changeB theTwoChanges| |
2507 | 927 |
|
928 |
sel := self methodsChangedSelection value. |
|
929 |
sel notNil ifTrue:[ |
|
11453 | 930 |
theTwoChanges := self classChangeSet methodsChanged at:sel. |
3753 | 931 |
"/ changeA := theTwoChanges first. |
932 |
"/ changeB := theTwoChanges second. |
|
933 |
"/ ^ Array with:changeA with:changeB. |
|
11453 | 934 |
^ theTwoChanges. |
2507 | 935 |
]. |
3753 | 936 |
^ #(nil nil) |
2507 | 937 |
! |
938 |
||
2221 | 939 |
versionA |
3147 | 940 |
" |
941 |
gets the first class version to be compared |
|
2221 | 942 |
|
3147 | 943 |
<return: String> |
944 |
" |
|
2731 | 945 |
classChangeSet isNil ifTrue:[^ 'A']. |
946 |
^ classChangeSet labelA |
|
2221 | 947 |
! |
948 |
||
949 |
versionB |
|
3147 | 950 |
" |
951 |
gets the second class version to be compared |
|
2221 | 952 |
|
3147 | 953 |
<return: String> |
954 |
" |
|
2731 | 955 |
classChangeSet isNil ifTrue:[^ 'B']. |
956 |
^ classChangeSet labelB |
|
2221 | 957 |
! ! |
958 |
||
959 |
!VersionDiffBrowser methodsFor:'actions'! |
|
960 |
||
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
961 |
acceptInLeftView |
11453 | 962 |
|change| |
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
963 |
|
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
964 |
change := self selectedChangesInM first. |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
965 |
self applyChange:change |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
966 |
! |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
967 |
|
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
968 |
acceptInRightView |
11453 | 969 |
|change| |
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
970 |
|
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
971 |
change := self selectedChangesInM second. |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
972 |
self applyChange:change |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
973 |
! |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
974 |
|
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
975 |
acceptInSingleView |
11453 | 976 |
|change| |
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
977 |
|
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
978 |
change := self selectedChangeInA. |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
979 |
change isNil ifTrue:[ |
11453 | 980 |
change := self selectedChangeInB |
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
981 |
]. |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
982 |
self applyChange:change |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
983 |
! |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
984 |
|
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
985 |
applySelectedChangeInA |
11453 | 986 |
self applyChange:(self selectedChangeInA) |
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
987 |
! |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
988 |
|
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
989 |
applySelectedChangeInB |
11453 | 990 |
self applyChange:(self selectedChangeInB) |
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
991 |
! |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
992 |
|
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
993 |
methodInADoubleClicked:index |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
994 |
"/ |change| |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
995 |
"/ |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
996 |
"/ change := self changeSetA at:index. |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
997 |
"/ self browseChange:change |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
998 |
self browseClassInA |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
999 |
! |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
1000 |
|
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
1001 |
methodInBDoubleClicked:index |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
1002 |
"/ |change| |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
1003 |
"/ |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
1004 |
"/ change := self changeSetB at:index. |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
1005 |
"/ self browseChange:change |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
1006 |
self browseClassInB |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
1007 |
! |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
1008 |
|
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
1009 |
methodInChangedDoubleClicked:index |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
1010 |
self browseClassInM. |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
1011 |
! |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
1012 |
|
2221 | 1013 |
methodsChangedSelectionChanged |
3147 | 1014 |
" |
1015 |
the selection in the list of the 'changed methods' changed. |
|
1016 |
Reset the selection of the two other lists and calc the method change. |
|
2507 | 1017 |
|
3147 | 1018 |
<return: self> |
1019 |
" |
|
8602 | 1020 |
|sel changeA changeB methodsChanged parseError treeA treeB| |
1021 |
||
1022 |
self infoHolder value:''. |
|
2221 | 1023 |
|
1024 |
sel := self methodsChangedSelection value. |
|
1025 |
sel notNil ifTrue:[ |
|
11596
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1026 |
self methodsOnlyInASelection value:nil. |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1027 |
self methodsOnlyInBSelection value:nil. |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1028 |
methodsChanged := self classChangeSet methodsChanged. |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1029 |
changeA := (methodsChangedFiltered at:sel) first. |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1030 |
changeB := (methodsChangedFiltered at:sel) second. |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1031 |
self withReadCursorDo:[ |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1032 |
"/ see if the semantics have changed (or only prettyPrinted) |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1033 |
RBParser notNil ifTrue:[ |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1034 |
(classChangeSet notNil |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1035 |
and:[ classChangeSet classBeingCompared notNil ]) ifTrue:[ |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1036 |
parseError := false. |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1037 |
treeA := RBParser parseMethod:changeA source onError: [:str :pos | parseError := true]. |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1038 |
treeB := RBParser parseMethod:changeB source onError: [:str :pos | parseError := true]. |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1039 |
parseError ifFalse:[ |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1040 |
(treeA equalTo:treeB withMapping:(Dictionary new)) ifTrue:[ |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1041 |
self infoHolder value:'Methods only differ in formatting / comments.'. |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1042 |
] |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1043 |
] |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1044 |
]. |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1045 |
]. |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1046 |
self diffTextView |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1047 |
text1:(changeA prettyPrintedSource) text2:(changeB prettyPrintedSource); |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1048 |
moveToNextChanged |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1049 |
]. |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1050 |
self showDiffTextView. |
2221 | 1051 |
] |
2377 | 1052 |
|
11596
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1053 |
"Modified: / 03-09-1999 / 15:01:30 / ps" |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1054 |
"Modified: / 17-07-2012 / 18:27:06 / cg" |
2221 | 1055 |
! |
1056 |
||
1057 |
methodsOnlyInASelectionChanged |
|
3147 | 1058 |
" |
1059 |
the selection in the list of the 'method only in version A' changed. |
|
1060 |
Reset the selection of the two other lists and show the method in |
|
1061 |
the text view. |
|
2507 | 1062 |
|
3147 | 1063 |
<return: self> |
1064 |
" |
|
2221 | 1065 |
|change sel| |
1066 |
||
8602 | 1067 |
self infoHolder value:''. |
1068 |
||
2221 | 1069 |
sel := self methodsOnlyInASelection value. |
1070 |
sel notNil ifTrue:[ |
|
11596
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1071 |
self methodsOnlyInBSelection value:nil. |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1072 |
self methodsChangedSelection value:nil. |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1073 |
change := methodsOnlyInAFiltered "self changeSetA" at:sel. |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1074 |
self methodText value:(change prettyPrintedSource). |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1075 |
self showSingleTextView. |
2221 | 1076 |
] |
11596
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1077 |
|
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1078 |
"Modified: / 17-07-2012 / 18:31:22 / cg" |
2221 | 1079 |
! |
1080 |
||
1081 |
methodsOnlyInBSelectionChanged |
|
3147 | 1082 |
" |
1083 |
the selection in the list of the 'method only in version B' changed. |
|
1084 |
Reset the selection of the two other lists and show the method in |
|
1085 |
the text view. |
|
2507 | 1086 |
|
3147 | 1087 |
<return: self> |
1088 |
" |
|
2221 | 1089 |
|change sel| |
1090 |
||
8602 | 1091 |
self infoHolder value:''. |
1092 |
||
2221 | 1093 |
sel := self methodsOnlyInBSelection value. |
1094 |
sel notNil ifTrue:[ |
|
11596
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1095 |
self methodsOnlyInASelection value:nil. |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1096 |
self methodsChangedSelection value:nil. |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1097 |
change := methodsOnlyInBFiltered "self changeSetB" at:sel. |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1098 |
self methodText value:(change prettyPrintedSource). |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1099 |
self showSingleTextView. |
2221 | 1100 |
] |
11596
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1101 |
|
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1102 |
"Modified: / 17-07-2012 / 18:31:32 / cg" |
9550
531c77d5d3e3
added: #removeSelectedChangeInBFromImage
Claus Gittinger <cg@exept.de>
parents:
9383
diff
changeset
|
1103 |
! |
531c77d5d3e3
added: #removeSelectedChangeInBFromImage
Claus Gittinger <cg@exept.de>
parents:
9383
diff
changeset
|
1104 |
|
531c77d5d3e3
added: #removeSelectedChangeInBFromImage
Claus Gittinger <cg@exept.de>
parents:
9383
diff
changeset
|
1105 |
removeSelectedChangeInBFromImage |
531c77d5d3e3
added: #removeSelectedChangeInBFromImage
Claus Gittinger <cg@exept.de>
parents:
9383
diff
changeset
|
1106 |
|change cls sel op| |
531c77d5d3e3
added: #removeSelectedChangeInBFromImage
Claus Gittinger <cg@exept.de>
parents:
9383
diff
changeset
|
1107 |
|
531c77d5d3e3
added: #removeSelectedChangeInBFromImage
Claus Gittinger <cg@exept.de>
parents:
9383
diff
changeset
|
1108 |
change := self selectedChangeInB. |
531c77d5d3e3
added: #removeSelectedChangeInBFromImage
Claus Gittinger <cg@exept.de>
parents:
9383
diff
changeset
|
1109 |
change isMethodChange ifTrue:[ |
11453 | 1110 |
(cls := change changeClass) notNil ifTrue:[ |
1111 |
(sel := change selector) notNil ifTrue:[ |
|
1112 |
RefactoryChangeManager notNil ifTrue:[ |
|
1113 |
op := RemoveMethodChange remove:sel from:cls. |
|
1114 |
RefactoryChangeManager performChange: op. |
|
1115 |
] ifFalse:[ |
|
1116 |
cls removeSelector:sel |
|
1117 |
] |
|
1118 |
] |
|
1119 |
] |
|
9550
531c77d5d3e3
added: #removeSelectedChangeInBFromImage
Claus Gittinger <cg@exept.de>
parents:
9383
diff
changeset
|
1120 |
] |
531c77d5d3e3
added: #removeSelectedChangeInBFromImage
Claus Gittinger <cg@exept.de>
parents:
9383
diff
changeset
|
1121 |
|
531c77d5d3e3
added: #removeSelectedChangeInBFromImage
Claus Gittinger <cg@exept.de>
parents:
9383
diff
changeset
|
1122 |
"Modified: / 15-08-2010 / 21:35:00 / cg" |
2221 | 1123 |
! ! |
1124 |
||
1125 |
!VersionDiffBrowser methodsFor:'aspects'! |
|
1126 |
||
2585 | 1127 |
boxAVisible |
2745 | 1128 |
boxAVisible isNil ifTrue:[ |
11453 | 1129 |
boxAVisible := true asValue. |
2585 | 1130 |
]. |
2745 | 1131 |
^ boxAVisible. |
2585 | 1132 |
! |
1133 |
||
1134 |
boxBVisible |
|
2745 | 1135 |
boxBVisible isNil ifTrue:[ |
11453 | 1136 |
boxBVisible := true asValue. |
2585 | 1137 |
]. |
2745 | 1138 |
^ boxBVisible. |
2585 | 1139 |
! |
1140 |
||
1141 |
boxMVisible |
|
2745 | 1142 |
boxMVisible isNil ifTrue:[ |
11453 | 1143 |
boxMVisible := true asValue. |
2585 | 1144 |
]. |
2745 | 1145 |
^ boxMVisible. |
2585 | 1146 |
! |
1147 |
||
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
1148 |
canIncludeExtensionsHolder |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
1149 |
"can include extensions ? (menu item enabler)" |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
1150 |
|
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
1151 |
canIncludeExtensionsHolder isNil ifTrue:[ |
11453 | 1152 |
canIncludeExtensionsHolder := true asValue. |
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
1153 |
]. |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
1154 |
^ canIncludeExtensionsHolder. |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
1155 |
! |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
1156 |
|
2221 | 1157 |
changedLabelHolder |
3147 | 1158 |
" |
1159 |
aspect for the label of the changed method box. |
|
2221 | 1160 |
|
3147 | 1161 |
<return: ValueHolder on: nil> |
1162 |
" |
|
2221 | 1163 |
|
3147 | 1164 |
changedLabelHolder isNil ifTrue:[ |
11453 | 1165 |
changedLabelHolder := ValueHolder new. |
2221 | 1166 |
]. |
3147 | 1167 |
^ changedLabelHolder. |
2221 | 1168 |
! |
1169 |
||
1170 |
diffTextLabelA |
|
3147 | 1171 |
" |
1172 |
aspect for the label for version A. |
|
2221 | 1173 |
|
3147 | 1174 |
<return: ValueHolder on: nil> |
1175 |
" |
|
2221 | 1176 |
|
3147 | 1177 |
diffTextLabelA isNil ifTrue:[ |
11453 | 1178 |
diffTextLabelA := ValueHolder new. |
2221 | 1179 |
]. |
3147 | 1180 |
^ diffTextLabelA. |
2221 | 1181 |
! |
1182 |
||
1183 |
diffTextLabelB |
|
3147 | 1184 |
" |
1185 |
aspect for the label for version B. |
|
2221 | 1186 |
|
3147 | 1187 |
<return: ValueHolder on: nil> |
1188 |
" |
|
2221 | 1189 |
|
3147 | 1190 |
diffTextLabelB isNil ifTrue:[ |
11453 | 1191 |
diffTextLabelB := ValueHolder new. |
2221 | 1192 |
]. |
3147 | 1193 |
^ diffTextLabelB. |
2221 | 1194 |
! |
1195 |
||
2497 | 1196 |
diffTextView |
3147 | 1197 |
" |
1198 |
return the component for the diff text view. |
|
2497 | 1199 |
|
3147 | 1200 |
<return: HVScrollableView> |
1201 |
" |
|
7364
e7613aec8035
use codeViews (instead of TextViews)
Claus Gittinger <cg@exept.de>
parents:
7108
diff
changeset
|
1202 |
|v| |
e7613aec8035
use codeViews (instead of TextViews)
Claus Gittinger <cg@exept.de>
parents:
7108
diff
changeset
|
1203 |
|
2497 | 1204 |
diffTextView isNil ifTrue:[ |
11453 | 1205 |
v := DiffCodeView basicNew. |
1206 |
v textViewClass:CodeView. |
|
1207 |
v initialize. |
|
1208 |
diffTextView := HVScrollableView |
|
1209 |
forView:v |
|
1210 |
miniScrollerH:true miniScrollerV:false. |
|
1211 |
diffTextView addNextPreviousButtons. |
|
2497 | 1212 |
]. |
1213 |
^ diffTextView |
|
7364
e7613aec8035
use codeViews (instead of TextViews)
Claus Gittinger <cg@exept.de>
parents:
7108
diff
changeset
|
1214 |
|
e7613aec8035
use codeViews (instead of TextViews)
Claus Gittinger <cg@exept.de>
parents:
7108
diff
changeset
|
1215 |
"Modified: / 06-10-2006 / 14:30:42 / cg" |
2497 | 1216 |
! |
1217 |
||
11596
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1218 |
includeCategoryChanges |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1219 |
^ self includeCategoryChangesHolder value |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1220 |
|
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1221 |
"Created: / 17-07-2012 / 18:22:34 / cg" |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1222 |
! |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1223 |
|
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1224 |
includeCategoryChanges:aBoolean |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1225 |
self includeCategoryChangesHolder value:aBoolean |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1226 |
|
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1227 |
"Created: / 17-07-2012 / 17:50:41 / cg" |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1228 |
! |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1229 |
|
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1230 |
includeCategoryChangesHolder |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1231 |
includeCategoryChangesHolder isNil ifTrue:[ |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1232 |
includeCategoryChangesHolder := true asValue. |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1233 |
includeCategoryChangesHolder addDependent:self. |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1234 |
]. |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1235 |
^ includeCategoryChangesHolder. |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1236 |
|
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1237 |
"Modified: / 06-03-2012 / 15:36:52 / cg" |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1238 |
"Created: / 17-07-2012 / 16:47:58 / cg" |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1239 |
! |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1240 |
|
10703 | 1241 |
includeExtensions |
11371
920084723b9c
exclude extension stuff fixed
Claus Gittinger <cg@exept.de>
parents:
10892
diff
changeset
|
1242 |
^ self includeExtensionsHolder value |
10703 | 1243 |
|
1244 |
"Created: / 13-09-2011 / 11:48:51 / cg" |
|
1245 |
! |
|
1246 |
||
1247 |
includeExtensions:aBoolean |
|
11371
920084723b9c
exclude extension stuff fixed
Claus Gittinger <cg@exept.de>
parents:
10892
diff
changeset
|
1248 |
self includeExtensionsHolder value:aBoolean |
10703 | 1249 |
|
1250 |
"Created: / 13-09-2011 / 11:48:41 / cg" |
|
1251 |
! |
|
1252 |
||
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
1253 |
includeExtensionsHolder |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
1254 |
"only compare base-methods or include extensions ?" |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
1255 |
|
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
1256 |
includeExtensionsHolder isNil ifTrue:[ |
11453 | 1257 |
includeExtensionsHolder := false asValue. |
1258 |
includeExtensionsHolder addDependent:self. |
|
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
1259 |
]. |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
1260 |
^ includeExtensionsHolder. |
11371
920084723b9c
exclude extension stuff fixed
Claus Gittinger <cg@exept.de>
parents:
10892
diff
changeset
|
1261 |
|
920084723b9c
exclude extension stuff fixed
Claus Gittinger <cg@exept.de>
parents:
10892
diff
changeset
|
1262 |
"Modified: / 06-03-2012 / 15:36:52 / cg" |
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
1263 |
! |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
1264 |
|
11958 | 1265 |
includeVersionMethods |
1266 |
^ self includeVersionMethodsHolder value |
|
1267 |
||
1268 |
"Created: / 13-09-2011 / 11:48:51 / cg" |
|
1269 |
! |
|
1270 |
||
1271 |
includeVersionMethods:aBoolean |
|
1272 |
self includeVersionMethodsHolder value:aBoolean |
|
1273 |
||
1274 |
"Created: / 13-09-2011 / 11:48:41 / cg" |
|
1275 |
! |
|
1276 |
||
1277 |
includeVersionMethodsHolder |
|
1278 |
includeVersionMethodsHolder isNil ifTrue:[ |
|
1279 |
includeVersionMethodsHolder := true asValue. |
|
1280 |
includeVersionMethodsHolder addDependent:self. |
|
1281 |
]. |
|
1282 |
^ includeVersionMethodsHolder. |
|
1283 |
||
1284 |
"Modified: / 06-03-2012 / 15:36:52 / cg" |
|
1285 |
"Created: / 17-07-2012 / 16:47:58 / cg" |
|
1286 |
! |
|
1287 |
||
8602 | 1288 |
infoHolder |
1289 |
infoHolder isNil ifTrue:[ |
|
11453 | 1290 |
infoHolder := ValueHolder new. |
8602 | 1291 |
]. |
1292 |
^ infoHolder. |
|
1293 |
! |
|
1294 |
||
2221 | 1295 |
methodText |
3147 | 1296 |
" |
1297 |
aspect for the text in the method text view. |
|
2221 | 1298 |
|
3147 | 1299 |
<return: ValueHolder on: nil> |
1300 |
" |
|
2221 | 1301 |
|
3147 | 1302 |
methodText isNil ifTrue:[ |
11453 | 1303 |
methodText := ValueHolder new. |
2221 | 1304 |
]. |
3147 | 1305 |
^ methodText. |
2221 | 1306 |
! |
1307 |
||
1308 |
methodsChanged |
|
3147 | 1309 |
" |
1310 |
aspect for the 'changed method' list. |
|
2221 | 1311 |
|
3147 | 1312 |
<return: List> |
1313 |
" |
|
2221 | 1314 |
|
3147 | 1315 |
methodsChanged isNil ifTrue:[ |
11453 | 1316 |
methodsChanged := List new. |
2221 | 1317 |
]. |
3147 | 1318 |
^ methodsChanged. |
2221 | 1319 |
! |
1320 |
||
1321 |
methodsChangedSelection |
|
3147 | 1322 |
" |
1323 |
aspect for the selection holder of 'changed method'-list. |
|
2221 | 1324 |
|
3147 | 1325 |
<return: ValueHolder on: nil> |
1326 |
" |
|
2221 | 1327 |
|
3147 | 1328 |
methodsChangedSelection isNil ifTrue:[ |
11453 | 1329 |
methodsChangedSelection := ValueHolder new. |
2221 | 1330 |
]. |
3147 | 1331 |
^ methodsChangedSelection. |
2221 | 1332 |
! |
1333 |
||
1334 |
methodsOnlyInA |
|
6828 | 1335 |
"aspect for the 'method only in version A' list." |
2221 | 1336 |
|
3147 | 1337 |
methodsOnlyInA isNil ifTrue:[ |
11453 | 1338 |
methodsOnlyInA := List new. |
2221 | 1339 |
]. |
3147 | 1340 |
^ methodsOnlyInA. |
6828 | 1341 |
|
1342 |
"Modified: / 25-07-2006 / 11:14:43 / cg" |
|
2221 | 1343 |
! |
1344 |
||
1345 |
methodsOnlyInASelection |
|
6828 | 1346 |
"aspect for the selection holder of 'method only in version A'-list." |
2221 | 1347 |
|
3147 | 1348 |
methodsOnlyInASelection isNil ifTrue:[ |
11453 | 1349 |
methodsOnlyInASelection := ValueHolder new. |
2221 | 1350 |
]. |
3147 | 1351 |
^ methodsOnlyInASelection. |
6828 | 1352 |
|
1353 |
"Modified: / 25-07-2006 / 11:14:53 / cg" |
|
2221 | 1354 |
! |
1355 |
||
1356 |
methodsOnlyInB |
|
6828 | 1357 |
"aspect for the 'method only in version B' list" |
2221 | 1358 |
|
3147 | 1359 |
methodsOnlyInB isNil ifTrue:[ |
11453 | 1360 |
methodsOnlyInB := List new. |
2221 | 1361 |
]. |
3147 | 1362 |
^ methodsOnlyInB. |
6828 | 1363 |
|
1364 |
"Modified: / 25-07-2006 / 11:14:48 / cg" |
|
2221 | 1365 |
! |
1366 |
||
1367 |
methodsOnlyInBSelection |
|
6828 | 1368 |
"aspect for the selection holder of 'method only in version B'-list." |
2221 | 1369 |
|
3147 | 1370 |
methodsOnlyInBSelection isNil ifTrue:[ |
11453 | 1371 |
methodsOnlyInBSelection := ValueHolder new. |
2221 | 1372 |
]. |
3147 | 1373 |
^ methodsOnlyInBSelection. |
6828 | 1374 |
|
1375 |
"Modified: / 25-07-2006 / 11:15:00 / cg" |
|
2221 | 1376 |
! |
1377 |
||
1378 |
onlyInALabelHolder |
|
6828 | 1379 |
"aspect for the label for 'method only in version A'." |
2221 | 1380 |
|
3147 | 1381 |
onlyInALabelHolder isNil ifTrue:[ |
11453 | 1382 |
onlyInALabelHolder := ValueHolder new. |
2221 | 1383 |
]. |
3147 | 1384 |
^ onlyInALabelHolder. |
6828 | 1385 |
|
1386 |
"Modified: / 25-07-2006 / 11:15:12 / cg" |
|
2221 | 1387 |
! |
1388 |
||
1389 |
onlyInBLabelHolder |
|
6828 | 1390 |
"aspect for the label for 'method only in version B'." |
2221 | 1391 |
|
3147 | 1392 |
onlyInBLabelHolder isNil ifTrue:[ |
11453 | 1393 |
onlyInBLabelHolder := ValueHolder new. |
2221 | 1394 |
]. |
3147 | 1395 |
^ onlyInBLabelHolder. |
6828 | 1396 |
|
1397 |
"Modified: / 25-07-2006 / 11:15:07 / cg" |
|
2221 | 1398 |
! ! |
1399 |
||
2725 | 1400 |
!VersionDiffBrowser methodsFor:'aspects-exported'! |
2695 | 1401 |
|
1402 |
changedLabelHolder:aValueHolder |
|
1403 |
builder aspectAt:#changedLabelHolder put:aValueHolder. |
|
1404 |
||
1405 |
! |
|
1406 |
||
1407 |
classHolder:aValueHolder |
|
5182 | 1408 |
classHolder notNil ifTrue:[ |
11453 | 1409 |
classHolder removeDependent:self |
2695 | 1410 |
]. |
5182 | 1411 |
classHolder := aValueHolder. |
1412 |
classHolder notNil ifTrue:[ |
|
11453 | 1413 |
classHolder addDependent:self |
2695 | 1414 |
] |
1415 |
! |
|
1416 |
||
1417 |
onlyInALabelHolder:aValueHolder |
|
1418 |
builder aspectAt:#onlyInALabelHolder put:aValueHolder. |
|
1419 |
! |
|
1420 |
||
1421 |
onlyInBLabelHolder:aValueHolder |
|
1422 |
builder aspectAt:#onlyInBLabelHolder put:aValueHolder. |
|
1423 |
! |
|
1424 |
||
1425 |
versionAHolder:aValueHolder |
|
5182 | 1426 |
versionAHolder notNil ifTrue:[ |
11453 | 1427 |
versionAHolder removeDependent:self |
2695 | 1428 |
]. |
5182 | 1429 |
versionAHolder := aValueHolder. |
1430 |
versionAHolder notNil ifTrue:[ |
|
11453 | 1431 |
versionAHolder addDependent:self |
2695 | 1432 |
] |
1433 |
! |
|
1434 |
||
1435 |
versionBHolder:aValueHolder |
|
5182 | 1436 |
versionBHolder notNil ifTrue:[ |
11453 | 1437 |
versionBHolder removeDependent:self |
2695 | 1438 |
]. |
5182 | 1439 |
versionBHolder := aValueHolder. |
1440 |
versionBHolder notNil ifTrue:[ |
|
11453 | 1441 |
versionBHolder addDependent:self |
2695 | 1442 |
] |
1443 |
! ! |
|
1444 |
||
4359 | 1445 |
!VersionDiffBrowser methodsFor:'aspects-menu'! |
1446 |
||
1447 |
canAcceptInCodeView |
|
1448 |
^ self hasChangeSelectedInA |
|
1449 |
or:[self hasChangeSelectedInB |
|
1450 |
or:[self hasChangeSelectedInM]] |
|
1451 |
! |
|
1452 |
||
1453 |
hasChangeSelectedInA |
|
1454 |
^ self selectedChangeInA notNil |
|
1455 |
! |
|
1456 |
||
1457 |
hasChangeSelectedInB |
|
1458 |
^ self selectedChangeInB notNil |
|
1459 |
! |
|
1460 |
||
1461 |
hasChangeSelectedInM |
|
1462 |
^ self methodsChangedSelection value notNil |
|
1463 |
! ! |
|
1464 |
||
2695 | 1465 |
!VersionDiffBrowser methodsFor:'change & update'! |
1466 |
||
1467 |
update:something with:parameter from:changedObject |
|
11596
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1468 |
((changedObject == includeExtensionsHolder) |
11958 | 1469 |
or:[ changedObject == includeCategoryChangesHolder |
1470 |
or:[ changedObject == includeVersionMethodsHolder ]]) ifTrue:[ |
|
11596
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1471 |
self updateLists. |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1472 |
^ self |
11371
920084723b9c
exclude extension stuff fixed
Claus Gittinger <cg@exept.de>
parents:
10892
diff
changeset
|
1473 |
]. |
920084723b9c
exclude extension stuff fixed
Claus Gittinger <cg@exept.de>
parents:
10892
diff
changeset
|
1474 |
|
11453 | 1475 |
(changedObject == classHolder |
2695 | 1476 |
or:[changedObject == versionAHolder |
11453 | 1477 |
or:[changedObject == versionBHolder]]) ifTrue:[ |
11596
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1478 |
self setupForClass:(classHolder value) versionA:(versionAHolder value) versionB:(versionBHolder value). |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1479 |
^ self |
2695 | 1480 |
]. |
1481 |
super update:something with:parameter from:changedObject |
|
10703 | 1482 |
|
11596
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1483 |
"Modified: / 17-07-2012 / 17:48:58 / cg" |
2695 | 1484 |
! ! |
1485 |
||
2221 | 1486 |
!VersionDiffBrowser methodsFor:'initialization & release'! |
1487 |
||
1488 |
postBuildWith:aBuilder |
|
3147 | 1489 |
" |
1490 |
components which are invisible should be ignored by the panel. |
|
1491 |
Cannot be set via the interface builder. |
|
2221 | 1492 |
|
3147 | 1493 |
<return: self> |
1494 |
" |
|
1495 |
||
3843
673fbeb191c9
builder componentAt: -> self componentAt:
Claus Gittinger <cg@exept.de>
parents:
3839
diff
changeset
|
1496 |
(self componentAt:#TopHorizontalPanel) ignoreInvisibleComponents:true. |
6642 | 1497 |
super postBuildWith:aBuilder |
2221 | 1498 |
! ! |
1499 |
||
1500 |
!VersionDiffBrowser methodsFor:'menu action'! |
|
1501 |
||
2465 | 1502 |
browseChange:aChange |
6828 | 1503 |
"browse the change in aChange" |
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
1504 |
|
7396 | 1505 |
|cls sel m browserClass| |
2650
447c99ac6f76
oops - inspect & browse menu was broken.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
1506 |
|
2578
29264fb3847e
avoid debugger in browse-menu
Claus Gittinger <cg@exept.de>
parents:
2536
diff
changeset
|
1507 |
aChange isNil ifTrue:[^ self]. |
7396 | 1508 |
browserClass := UserPreferences systemBrowserClass. |
1509 |
||
2650
447c99ac6f76
oops - inspect & browse menu was broken.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
1510 |
cls := aChange changeClass. |
7396 | 1511 |
aChange isMethodChange ifTrue:[ |
11453 | 1512 |
sel := aChange changeSelector. |
7396 | 1513 |
"/ (cls compiledMethodAt:sel) isNil ifTrue:[ |
1514 |
"/ (self confirm:'Method does not exist.\\Browse Class ?' withCRs) ifTrue:[ |
|
1515 |
"/ browserClass openInClass:cls |
|
1516 |
"/ ]. |
|
1517 |
"/ sel := nil. |
|
1518 |
"/ ] |
|
1519 |
]. |
|
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
1520 |
self withWaitCursorDo:[ |
11453 | 1521 |
browserClass openInClass:cls selector:sel. |
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
1522 |
] |
6828 | 1523 |
|
7396 | 1524 |
"Modified: / 12-10-2006 / 23:58:40 / cg" |
2465 | 1525 |
! |
1526 |
||
1527 |
browseClassInA |
|
6828 | 1528 |
"browse the selected method." |
1529 |
self browseChange:(self selectedChangeInA). |
|
2507 | 1530 |
|
6828 | 1531 |
"Modified: / 25-07-2006 / 11:14:02 / cg" |
2465 | 1532 |
! |
2221 | 1533 |
|
2465 | 1534 |
browseClassInB |
6828 | 1535 |
"browse the selected method." |
1536 |
self browseChange:(self selectedChangeInB). |
|
2507 | 1537 |
|
6828 | 1538 |
"Modified: / 25-07-2006 / 11:13:58 / cg" |
2465 | 1539 |
! |
1540 |
||
1541 |
browseClassInM |
|
6828 | 1542 |
"browse the selected method." |
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
1543 |
|
6828 | 1544 |
self browseChange:(self selectedChangesInM first). |
2507 | 1545 |
|
6828 | 1546 |
"Modified: / 25-07-2006 / 11:13:54 / cg" |
2465 | 1547 |
! |
1548 |
||
2469 | 1549 |
createPatchFile |
2856 | 1550 |
"create a patchFile, to patch the old version (versionB) into the new version (versionA). |
1551 |
I.e. a little changeFile to transport those changes." |
|
1552 |
||
6828 | 1553 |
|defaultName f oldVersion newVersion vsnMthdA vsnMthdB vsnA vsnB info classBeingCompared| |
2856 | 1554 |
|
1555 |
defaultName := 'patchFile.chg'. |
|
2469 | 1556 |
|
6828 | 1557 |
classBeingCompared := classChangeSet classBeingCompared. |
1558 |
classBeingCompared notNil ifTrue:[ |
|
11453 | 1559 |
defaultName := classBeingCompared nameWithoutPrefix. |
1560 |
classChangeSet versionA notNil ifTrue:[ |
|
1561 |
defaultName := defaultName , '-'. |
|
1562 |
defaultName := defaultName , classChangeSet versionA. |
|
1563 |
classChangeSet versionB notNil ifTrue:[ |
|
1564 |
defaultName := defaultName , '-'. |
|
1565 |
defaultName := defaultName , classChangeSet versionB. |
|
1566 |
]. |
|
1567 |
]. |
|
1568 |
defaultName := defaultName , '.chg'. |
|
2856 | 1569 |
]. |
11453 | 1570 |
f := Dialog |
1571 |
requestFileNameForSave:'Name of patchFile:' |
|
1572 |
default:defaultName. |
|
2856 | 1573 |
self warn:'Sorry: This function is not yet implemented'. |
2730 | 1574 |
^ self. |
1575 |
||
11453 | 1576 |
"/ vsnMthdA := self changeSetA |
3103 | 1577 |
"/ detect:[:ch | ch isMethodChange |
1578 |
"/ and:[ch changeClass isMeta |
|
1579 |
"/ and:[ch changeSelector = #version]]] |
|
1580 |
"/ ifNone:nil. |
|
11453 | 1581 |
"/ vsnMthdB := self changeSetA |
3103 | 1582 |
"/ detect:[:ch | ch isMethodChange |
1583 |
"/ and:[ch changeClass isMeta |
|
1584 |
"/ and:[ch changeSelector = #version]]] |
|
1585 |
"/ ifNone:nil. |
|
1586 |
"/ |
|
1587 |
"/ vsnMthdA notNil ifTrue:[ |
|
11453 | 1588 |
"/ "/ extract the version |
3103 | 1589 |
"/ vsnA := Class revisionStringFromSource:vsnMthdA source. |
1590 |
"/ vsnA notNil ifTrue:[ |
|
1591 |
"/ info := Class revisionInfoFromString:vsnA. |
|
1592 |
"/ info notNil ifTrue:[ |
|
1593 |
"/ vsnA := info at:#revision ifAbsent:nil. |
|
1594 |
"/ ] ifFalse:[ |
|
1595 |
"/ vsnA := nil. |
|
1596 |
"/ ]. |
|
1597 |
"/ ]. |
|
1598 |
"/ ]. |
|
1599 |
"/ vsnMthdB notNil ifTrue:[ |
|
11453 | 1600 |
"/ "/ extract the version |
3103 | 1601 |
"/ vsnB := Class revisionStringFromSource:vsnMthdB source. |
1602 |
"/ vsnB notNil ifTrue:[ |
|
1603 |
"/ info := Class revisionInfoFromString:vsnB. |
|
1604 |
"/ info notNil ifTrue:[ |
|
1605 |
"/ vsnB := info at:#revision ifAbsent:nil. |
|
1606 |
"/ ] ifFalse:[ |
|
1607 |
"/ vsnB := nil. |
|
1608 |
"/ ]. |
|
1609 |
"/ ]. |
|
1610 |
"/ ]. |
|
1611 |
"/ |
|
1612 |
"/ (vsnA isNil or:[vsnB isNil or:[vsnA = vsnB]]) ifTrue:[ |
|
1613 |
"/ self warn:'The generated patch file will not be able to validate/update the class version'. |
|
1614 |
"/ ]. |
|
1615 |
"/ |
|
1616 |
"/self halt:'not yet finished'. |
|
6828 | 1617 |
|
9602 | 1618 |
"Modified: / 27-10-2010 / 11:34:58 / cg" |
2469 | 1619 |
! |
1620 |
||
2465 | 1621 |
inspectSelectedChangeInA |
6828 | 1622 |
"inspect the selected method change for the 'method only in version A'." |
2507 | 1623 |
|
2465 | 1624 |
self selectedChangeInA inspect. |
6828 | 1625 |
|
1626 |
"Modified: / 25-07-2006 / 11:13:30 / cg" |
|
2221 | 1627 |
! |
1628 |
||
1629 |
inspectSelectedChangeInB |
|
6828 | 1630 |
"inspect the selected method change for the 'method only in version B'." |
2507 | 1631 |
|
2465 | 1632 |
self selectedChangeInB inspect. |
6828 | 1633 |
|
1634 |
"Modified: / 25-07-2006 / 11:13:22 / cg" |
|
2465 | 1635 |
! |
1636 |
||
1637 |
inspectSelectedChangeInM |
|
6828 | 1638 |
"inspect the two method changes for the selected 'changed method'." |
2507 | 1639 |
|
2465 | 1640 |
|changes| |
1641 |
||
1642 |
changes := self selectedChangesInM. |
|
1643 |
changes do:[:change | |
|
11453 | 1644 |
change inspect |
2465 | 1645 |
]. |
6828 | 1646 |
|
1647 |
"Modified: / 25-07-2006 / 11:13:13 / cg" |
|
2465 | 1648 |
! |
1649 |
||
2501 | 1650 |
mainMenu |
6828 | 1651 |
"if this application runs as an subapplication, |
1652 |
the menu bar should not be used." |
|
2507 | 1653 |
|
2501 | 1654 |
self masterApplication isNil ifTrue:[ |
11453 | 1655 |
^ self class mainMenu |
2501 | 1656 |
]. |
1657 |
^ nil |
|
6828 | 1658 |
|
1659 |
"Modified: / 25-07-2006 / 11:13:44 / cg" |
|
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
1660 |
! |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
1661 |
|
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
1662 |
openDocumentation |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
1663 |
HTMLDocumentView openFullOnDocumentationFile:'tools/misc/TOP.html#VERSIONDIFF' |
11855
52fd36ba842f
changed: #removeClassFromChangeSet
Claus Gittinger <cg@exept.de>
parents:
11853
diff
changeset
|
1664 |
! |
52fd36ba842f
changed: #removeClassFromChangeSet
Claus Gittinger <cg@exept.de>
parents:
11853
diff
changeset
|
1665 |
|
52fd36ba842f
changed: #removeClassFromChangeSet
Claus Gittinger <cg@exept.de>
parents:
11853
diff
changeset
|
1666 |
removeClassFromChangeSet |
52fd36ba842f
changed: #removeClassFromChangeSet
Claus Gittinger <cg@exept.de>
parents:
11853
diff
changeset
|
1667 |
|cls ok changedClasses| |
52fd36ba842f
changed: #removeClassFromChangeSet
Claus Gittinger <cg@exept.de>
parents:
11853
diff
changeset
|
1668 |
|
52fd36ba842f
changed: #removeClassFromChangeSet
Claus Gittinger <cg@exept.de>
parents:
11853
diff
changeset
|
1669 |
classChangeSet notNil ifTrue:[ |
52fd36ba842f
changed: #removeClassFromChangeSet
Claus Gittinger <cg@exept.de>
parents:
11853
diff
changeset
|
1670 |
"/ only do if we compare a single class |
52fd36ba842f
changed: #removeClassFromChangeSet
Claus Gittinger <cg@exept.de>
parents:
11853
diff
changeset
|
1671 |
(cls := classChangeSet classBeingCompared) notNil ifTrue:[ |
52fd36ba842f
changed: #removeClassFromChangeSet
Claus Gittinger <cg@exept.de>
parents:
11853
diff
changeset
|
1672 |
ok := classChangeSet diffSet isEmptyOrNil. |
52fd36ba842f
changed: #removeClassFromChangeSet
Claus Gittinger <cg@exept.de>
parents:
11853
diff
changeset
|
1673 |
ok ifFalse:[ |
52fd36ba842f
changed: #removeClassFromChangeSet
Claus Gittinger <cg@exept.de>
parents:
11853
diff
changeset
|
1674 |
changedClasses := classChangeSet diffSet changedClasses. |
52fd36ba842f
changed: #removeClassFromChangeSet
Claus Gittinger <cg@exept.de>
parents:
11853
diff
changeset
|
1675 |
(changedClasses size == 1 |
52fd36ba842f
changed: #removeClassFromChangeSet
Claus Gittinger <cg@exept.de>
parents:
11853
diff
changeset
|
1676 |
and:[ changedClasses anElement theNonMetaclass == cls theNonMetaclass]) ifTrue:[ |
52fd36ba842f
changed: #removeClassFromChangeSet
Claus Gittinger <cg@exept.de>
parents:
11853
diff
changeset
|
1677 |
(methodsChangedFiltered isEmptyOrNil |
52fd36ba842f
changed: #removeClassFromChangeSet
Claus Gittinger <cg@exept.de>
parents:
11853
diff
changeset
|
1678 |
and:[ methodsOnlyInAFiltered isEmptyOrNil |
52fd36ba842f
changed: #removeClassFromChangeSet
Claus Gittinger <cg@exept.de>
parents:
11853
diff
changeset
|
1679 |
and:[ methodsOnlyInBFiltered isEmptyOrNil ]]) ifTrue:[ |
52fd36ba842f
changed: #removeClassFromChangeSet
Claus Gittinger <cg@exept.de>
parents:
11853
diff
changeset
|
1680 |
ok := true. |
52fd36ba842f
changed: #removeClassFromChangeSet
Claus Gittinger <cg@exept.de>
parents:
11853
diff
changeset
|
1681 |
] |
52fd36ba842f
changed: #removeClassFromChangeSet
Claus Gittinger <cg@exept.de>
parents:
11853
diff
changeset
|
1682 |
] |
52fd36ba842f
changed: #removeClassFromChangeSet
Claus Gittinger <cg@exept.de>
parents:
11853
diff
changeset
|
1683 |
]. |
52fd36ba842f
changed: #removeClassFromChangeSet
Claus Gittinger <cg@exept.de>
parents:
11853
diff
changeset
|
1684 |
ok ifTrue:[ |
52fd36ba842f
changed: #removeClassFromChangeSet
Claus Gittinger <cg@exept.de>
parents:
11853
diff
changeset
|
1685 |
ChangeSet current condenseChangesForClass:cls |
52fd36ba842f
changed: #removeClassFromChangeSet
Claus Gittinger <cg@exept.de>
parents:
11853
diff
changeset
|
1686 |
]. |
52fd36ba842f
changed: #removeClassFromChangeSet
Claus Gittinger <cg@exept.de>
parents:
11853
diff
changeset
|
1687 |
]. |
52fd36ba842f
changed: #removeClassFromChangeSet
Claus Gittinger <cg@exept.de>
parents:
11853
diff
changeset
|
1688 |
]. |
2221 | 1689 |
! ! |
1690 |
||
1691 |
!VersionDiffBrowser methodsFor:'private'! |
|
1692 |
||
2745 | 1693 |
addAcceptToTextViewMenus |
8657
4a54180313b5
enable/disable of edit-menu items
Claus Gittinger <cg@exept.de>
parents:
8629
diff
changeset
|
1694 |
"add to the standard diff text view or single text views menu an accept entry. |
4a54180313b5
enable/disable of edit-menu items
Claus Gittinger <cg@exept.de>
parents:
8629
diff
changeset
|
1695 |
The acceptAction will fetch the corresponding change and apply it |
4a54180313b5
enable/disable of edit-menu items
Claus Gittinger <cg@exept.de>
parents:
8629
diff
changeset
|
1696 |
(not the shown text) |
2745 | 1697 |
|
8657
4a54180313b5
enable/disable of edit-menu items
Claus Gittinger <cg@exept.de>
parents:
8629
diff
changeset
|
1698 |
<return: self> |
3147 | 1699 |
" |
2745 | 1700 |
|
8657
4a54180313b5
enable/disable of edit-menu items
Claus Gittinger <cg@exept.de>
parents:
8629
diff
changeset
|
1701 |
|diffTextView leftView rightView singleView| |
2745 | 1702 |
|
1703 |
diffTextView := self diffTextView. |
|
1704 |
leftView := diffTextView leftTextView. |
|
1705 |
rightView := diffTextView rightTextView. |
|
3843
673fbeb191c9
builder componentAt: -> self componentAt:
Claus Gittinger <cg@exept.de>
parents:
3839
diff
changeset
|
1706 |
singleView := self componentAt:#singleTextView. |
2745 | 1707 |
|
11453 | 1708 |
(Array |
1709 |
with:leftView |
|
1710 |
with:rightView |
|
1711 |
with:singleView) |
|
2745 | 1712 |
do:[:v | |
11453 | 1713 |
|mGen| |
8657
4a54180313b5
enable/disable of edit-menu items
Claus Gittinger <cg@exept.de>
parents:
8629
diff
changeset
|
1714 |
|
11453 | 1715 |
mGen := [ |
1716 |
|m| |
|
8657
4a54180313b5
enable/disable of edit-menu items
Claus Gittinger <cg@exept.de>
parents:
8629
diff
changeset
|
1717 |
|
11453 | 1718 |
m := v editMenu. |
8657
4a54180313b5
enable/disable of edit-menu items
Claus Gittinger <cg@exept.de>
parents:
8629
diff
changeset
|
1719 |
|
11453 | 1720 |
(m selectorAt:#accept) isNil ifTrue:[ |
1721 |
m addLabels:(resources array:#('-' 'Accept')) |
|
1722 |
selectors:(Array with:nil with:#accept) |
|
1723 |
after:#copySelection. |
|
1724 |
]. |
|
1725 |
m |
|
1726 |
actionAt:#accept |
|
1727 |
put:[ |
|
1728 |
v == singleView ifTrue:[ |
|
1729 |
self acceptInSingleView |
|
1730 |
] ifFalse:[ |
|
1731 |
v == leftView ifTrue:[ |
|
1732 |
self acceptInLeftView |
|
1733 |
] ifFalse:[ |
|
1734 |
self acceptInRightView |
|
1735 |
]. |
|
1736 |
]. |
|
1737 |
]. |
|
1738 |
m selectorAt:#accept put:nil. |
|
1739 |
m enable:#copySelection. |
|
1740 |
m setEnable:#accept to:[self canAcceptInCodeView]. |
|
1741 |
m |
|
1742 |
]. |
|
1743 |
v menuHolder:mGen. |
|
1744 |
v menuMessage:#value. |
|
2745 | 1745 |
] |
1746 |
! |
|
1747 |
||
3753 | 1748 |
applyChange:change |
1749 |
change notNil ifTrue:[ |
|
11453 | 1750 |
change apply |
3753 | 1751 |
] |
1752 |
! |
|
1753 |
||
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
1754 |
printStringForChange:aChange |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
1755 |
"generate a print string for a change." |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
1756 |
|
11596
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1757 |
|m changeClassName classOrMetaString useChangesString selectorString |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1758 |
singleComparedClass singleComparedClassesName singleComparedMetaclassesName |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1759 |
printString| |
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
1760 |
|
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
1761 |
(singleComparedClass := self classBeingCompared) notNil ifTrue:[ |
11533
106faef31ef5
changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents:
11453
diff
changeset
|
1762 |
singleComparedClassesName := singleComparedClass name. |
106faef31ef5
changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents:
11453
diff
changeset
|
1763 |
singleComparedMetaclassesName := singleComparedClass theMetaclass name. |
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
1764 |
]. |
2497 | 1765 |
|
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
1766 |
aChange isClassDefinitionChange ifTrue:[ |
11533
106faef31ef5
changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents:
11453
diff
changeset
|
1767 |
^ aChange printStringWithoutClassName |
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
1768 |
]. |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
1769 |
aChange isDoIt ifTrue:[ |
11533
106faef31ef5
changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents:
11453
diff
changeset
|
1770 |
^ aChange source , ' (doIt)' |
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
1771 |
]. |
10892
98a427ae867b
changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents:
10829
diff
changeset
|
1772 |
aChange isNameSpaceCreationChange ifTrue:[ |
11533
106faef31ef5
changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents:
11453
diff
changeset
|
1773 |
^ aChange source |
10892
98a427ae867b
changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents:
10829
diff
changeset
|
1774 |
]. |
3678 | 1775 |
|
10892
98a427ae867b
changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents:
10829
diff
changeset
|
1776 |
changeClassName := aChange className. |
98a427ae867b
changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents:
10829
diff
changeset
|
1777 |
changeClassName isNil ifTrue:[ |
11533
106faef31ef5
changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents:
11453
diff
changeset
|
1778 |
^ aChange source |
10892
98a427ae867b
changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents:
10829
diff
changeset
|
1779 |
]. |
11596
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1780 |
|
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
1781 |
useChangesString := false. |
11596
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1782 |
classOrMetaString := ''. |
10892
98a427ae867b
changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents:
10829
diff
changeset
|
1783 |
|
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
1784 |
(changeClassName = singleComparedClassesName) ifTrue:[ |
11596
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1785 |
"/ changeClassName := ''. |
11533
106faef31ef5
changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents:
11453
diff
changeset
|
1786 |
useChangesString := true. |
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
1787 |
] ifFalse:[ |
11533
106faef31ef5
changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents:
11453
diff
changeset
|
1788 |
(changeClassName = singleComparedMetaclassesName) ifTrue:[ |
11596
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1789 |
"/ classOrMetaString := ' class'. |
11533
106faef31ef5
changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents:
11453
diff
changeset
|
1790 |
useChangesString := true. |
106faef31ef5
changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents:
11453
diff
changeset
|
1791 |
] ifFalse:[ |
106faef31ef5
changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents:
11453
diff
changeset
|
1792 |
((changeClassName includes:$:) and:[ changeClassName startsWith:((singleComparedClassesName ? ''),'::') ]) ifTrue:[ |
106faef31ef5
changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents:
11453
diff
changeset
|
1793 |
changeClassName := changeClassName copyFrom:(singleComparedClassesName,'::') size+1. |
106faef31ef5
changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents:
11453
diff
changeset
|
1794 |
]. |
106faef31ef5
changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents:
11453
diff
changeset
|
1795 |
]. |
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
1796 |
]. |
6272 | 1797 |
|
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
1798 |
selectorString := ''. |
11533
106faef31ef5
changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents:
11453
diff
changeset
|
1799 |
(aChange isMethodChange) ifTrue:[ |
106faef31ef5
changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents:
11453
diff
changeset
|
1800 |
selectorString := aChange selector. |
106faef31ef5
changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents:
11453
diff
changeset
|
1801 |
aChange changeClass notNil ifTrue:[ |
106faef31ef5
changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents:
11453
diff
changeset
|
1802 |
m := aChange changeMethod. |
106faef31ef5
changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents:
11453
diff
changeset
|
1803 |
m notNil ifTrue:[ |
106faef31ef5
changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents:
11453
diff
changeset
|
1804 |
m := m originalMethodIfWrapped. |
106faef31ef5
changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents:
11453
diff
changeset
|
1805 |
selectorString := m printStringForBrowserWithSelector:aChange selector inClass:aChange changeClass. |
106faef31ef5
changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents:
11453
diff
changeset
|
1806 |
]. |
106faef31ef5
changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents:
11453
diff
changeset
|
1807 |
]. |
11596
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1808 |
changeClassName notEmptyOrNil ifTrue:[ |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1809 |
selectorString := ' >> ',selectorString |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1810 |
] |
2497 | 1811 |
]. |
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
1812 |
|
11596
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1813 |
printString := changeClassName,classOrMetaString,selectorString. |
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
1814 |
aChange isMethodCategoryChange ifTrue:[ |
11596
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1815 |
^ printString, ' (category)' |
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
1816 |
]. |
11596
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1817 |
^ printString |
9587
9f33d5c62efa
changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents:
9550
diff
changeset
|
1818 |
|
11596
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1819 |
"Modified: / 17-07-2012 / 18:43:27 / cg" |
2497 | 1820 |
! |
1821 |
||
2501 | 1822 |
resetSelectionHolders |
3147 | 1823 |
" |
1824 |
reset all selection holders when a new change set is given. |
|
11453 | 1825 |
First set the selection to nil. |
2507 | 1826 |
|
3147 | 1827 |
<return: self> |
1828 |
" |
|
2501 | 1829 |
|
1830 |
self methodsChangedSelection value:nil. |
|
1831 |
self methodsOnlyInASelection value:nil. |
|
1832 |
self methodsOnlyInBSelection value:nil. |
|
2507 | 1833 |
self diffTextView text1:'' text2:''. |
1834 |
self methodText value:''. |
|
1835 |
||
1836 |
"/ self methodsChangedSelectionChanged. |
|
1837 |
"/ self methodsOnlyInASelectionChanged. |
|
1838 |
"/ self methodsOnlyInBSelectionChanged. |
|
2501 | 1839 |
! |
1840 |
||
2221 | 1841 |
showDiffTextView |
3147 | 1842 |
" |
1843 |
if a method change is selected, then show the diff text view. |
|
1844 |
Add an accept entry to the popup menu. |
|
2507 | 1845 |
|
3147 | 1846 |
<return: self> |
1847 |
" |
|
2694 | 1848 |
|
3843
673fbeb191c9
builder componentAt: -> self componentAt:
Claus Gittinger <cg@exept.de>
parents:
3839
diff
changeset
|
1849 |
(self componentAt:#diffTextViewBox) raise; beVisible. |
673fbeb191c9
builder componentAt: -> self componentAt:
Claus Gittinger <cg@exept.de>
parents:
3839
diff
changeset
|
1850 |
(self componentAt:#singleTextView) beInvisible. |
673fbeb191c9
builder componentAt: -> self componentAt:
Claus Gittinger <cg@exept.de>
parents:
3839
diff
changeset
|
1851 |
(self componentAt:#diffTextView) realizeAllSubViews. |
2694 | 1852 |
|
2465 | 1853 |
self addAcceptToTextViewMenus. |
2221 | 1854 |
! |
1855 |
||
1856 |
showSingleTextView |
|
3147 | 1857 |
" |
1858 |
if a method is selected which is only in version A or B of the class, |
|
1859 |
then show the text view. |
|
1860 |
Add an accept entry to the popup menu. |
|
2507 | 1861 |
|
3147 | 1862 |
<return: self> |
1863 |
" |
|
2507 | 1864 |
|
3843
673fbeb191c9
builder componentAt: -> self componentAt:
Claus Gittinger <cg@exept.de>
parents:
3839
diff
changeset
|
1865 |
(self componentAt:#singleTextView) raise; beVisible. |
673fbeb191c9
builder componentAt: -> self componentAt:
Claus Gittinger <cg@exept.de>
parents:
3839
diff
changeset
|
1866 |
(self componentAt:#diffTextViewBox) beInvisible. |
2501 | 1867 |
self addAcceptToTextViewMenus. |
2221 | 1868 |
! |
1869 |
||
2497 | 1870 |
updateLabels |
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
1871 |
"update the labels of the diff text view. Show the version numbers |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
1872 |
of the class." |
2221 | 1873 |
|
2694 | 1874 |
|theVersionA theVersionB builder| |
2224 | 1875 |
|
2694 | 1876 |
builder := self builder. |
2497 | 1877 |
(theVersionA := self versionA) notNil ifTrue:[ |
11453 | 1878 |
self diffTextLabelA value:theVersionA. |
1879 |
self onlyInALabelHolder value:('Only in ' , theVersionA). |
|
1880 |
(self componentAt:#OnlyInALabel) |
|
1881 |
foregroundColor:Color white; |
|
1882 |
backgroundColor:Color green darkened. |
|
2224 | 1883 |
]. |
2497 | 1884 |
(theVersionB :=self versionB) notNil ifTrue:[ |
11453 | 1885 |
self diffTextLabelB value:theVersionB. |
1886 |
self onlyInBLabelHolder value:('Only in ' , theVersionB). |
|
1887 |
(self componentAt:#OnlyInBLabel) |
|
1888 |
foregroundColor:Color white; |
|
1889 |
backgroundColor:Color red darkened. |
|
2224 | 1890 |
]. |
7396 | 1891 |
|
1892 |
self changedLabelHolder value:('Different'). |
|
1893 |
||
1894 |
"Modified: / 13-10-2006 / 01:07:08 / cg" |
|
2224 | 1895 |
! |
1896 |
||
1897 |
updateLists |
|
11453 | 1898 |
|classChangeSet listOnlyInA listOnlyInB listChanged |
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
1899 |
printStringGenerator sortBlockForChangeLists filteredList |
11961
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
1900 |
isIgnoredChange numIgnoredExtensions numIgnoredVersionMethods |
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
1901 |
info needFilter| |
2230
5e10eebb1de2
move change-compare code to where it belongs (Change-hierarchy)
Claus Gittinger <cg@exept.de>
parents:
2229
diff
changeset
|
1902 |
|
2585 | 1903 |
classChangeSet := self classChangeSet. |
1904 |
||
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
1905 |
printStringGenerator := [:aChange | self printStringForChange:aChange]. |
3839 | 1906 |
sortBlockForChangeLists := [:a :b | (printStringGenerator value:a) < (printStringGenerator value:b)]. |
1907 |
||
11961
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
1908 |
numIgnoredExtensions := numIgnoredVersionMethods := 0. |
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
1909 |
needFilter := self includeExtensions not |
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
1910 |
or:[self includeCategoryChanges not |
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
1911 |
or:[self includeVersionMethods not]]. |
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
1912 |
|
11453 | 1913 |
isIgnoredChange := |
11596
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1914 |
[:change | |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1915 |
|packageOfMethodInChange packageOfMethodInImage changeMethod ignored| |
9242 | 1916 |
|
11596
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1917 |
ignored := false. |
11961
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
1918 |
change isMethodCodeChange ifTrue:[ |
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
1919 |
self includeExtensions ifFalse:[ |
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
1920 |
packageOfMethodInChange := change package. |
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
1921 |
(packageOfMethodInChange notNil |
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
1922 |
and:[ packageOfMethodInChange ~= PackageId noProjectID |
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
1923 |
and:[ packageOfMethodInChange ~= change changeClass package ]]) ifTrue:[ |
11596
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1924 |
ignored := true |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1925 |
]. |
11961
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
1926 |
|
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
1927 |
changeMethod := change changeMethod. |
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
1928 |
changeMethod notNil ifTrue:[ |
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
1929 |
packageOfMethodInImage := changeMethod package. |
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
1930 |
(true "packageOfMethodInImage notNil" |
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
1931 |
and:[ packageOfMethodInImage ~= PackageId noProjectID |
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
1932 |
and:[ packageOfMethodInImage ~= changeMethod mclass package ]]) ifTrue:[ |
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
1933 |
ignored := true |
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
1934 |
]. |
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
1935 |
]. |
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
1936 |
numIgnoredExtensions := numIgnoredExtensions + (ignored ifTrue:[1] ifFalse:[0]). |
11596
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1937 |
]. |
11961
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
1938 |
self includeVersionMethods ifFalse:[ |
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
1939 |
(change isMethodChangeForVersionMethod |
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
1940 |
or:[ change isMethodChangeForExtensionsVersionMethod ]) ifTrue:[ |
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
1941 |
ignored := true. |
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
1942 |
numIgnoredVersionMethods := numIgnoredVersionMethods + 1 |
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
1943 |
]. |
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
1944 |
]. |
11596
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1945 |
] ifFalse:[ |
11961
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
1946 |
change isMethodCategoryChange ifTrue:[ |
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
1947 |
self includeCategoryChanges ifFalse:[ |
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
1948 |
ignored := true |
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
1949 |
] |
11596
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1950 |
]. |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1951 |
]. |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1952 |
ignored. |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1953 |
]. |
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
1954 |
|
11596
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1955 |
listOnlyInA := filteredList := self methodsOnlyInA. |
2731 | 1956 |
listOnlyInA removeAll. |
1957 |
classChangeSet notNil ifTrue:[ |
|
11596
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1958 |
"/ classChangeSet methodsOnlyInA sort:sortBlockForChangeLists. |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1959 |
filteredList := classChangeSet methodsOnlyInA. |
11961
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
1960 |
needFilter ifTrue:[ |
11596
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1961 |
filteredList := filteredList reject:isIgnoredChange. |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1962 |
]. |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1963 |
listOnlyInA addAll: (filteredList collect:printStringGenerator). |
2731 | 1964 |
]. |
11596
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1965 |
methodsOnlyInAFiltered := filteredList. |
2585 | 1966 |
|
11596
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1967 |
listOnlyInB := filteredList := self methodsOnlyInB. |
2731 | 1968 |
listOnlyInB removeAll. |
1969 |
classChangeSet notNil ifTrue:[ |
|
11596
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1970 |
"/ classChangeSet methodsOnlyInB sort:sortBlockForChangeLists. |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1971 |
filteredList := classChangeSet methodsOnlyInB. |
11961
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
1972 |
needFilter ifTrue:[ |
11596
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1973 |
filteredList := filteredList reject:isIgnoredChange. |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1974 |
]. |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1975 |
listOnlyInB addAll: (filteredList collect:printStringGenerator). |
2731 | 1976 |
]. |
11596
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1977 |
methodsOnlyInBFiltered := filteredList. |
2221 | 1978 |
|
11596
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1979 |
listChanged := filteredList := self methodsChanged. |
2731 | 1980 |
listChanged removeAll. |
1981 |
classChangeSet notNil ifTrue:[ |
|
11596
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1982 |
"/ classChangeSet methodsChanged sort:[:a :b | sortBlockForChangeLists value:a first value:b first]. |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1983 |
filteredList := classChangeSet methodsChanged. |
11961
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
1984 |
needFilter ifTrue:[ |
11596
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1985 |
filteredList := filteredList reject:[:entry | isIgnoredChange value:entry first]. |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1986 |
]. |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1987 |
listChanged addAll: (filteredList collect:[:entry| printStringGenerator value:(entry first)]). |
2731 | 1988 |
]. |
11596
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1989 |
methodsChangedFiltered := filteredList. |
2221 | 1990 |
|
2731 | 1991 |
self boxAVisible value:(listOnlyInA notEmpty). |
1992 |
self boxBVisible value:(listOnlyInB notEmpty). |
|
2221 | 1993 |
|
11453 | 1994 |
self boxMVisible value:(listChanged isEmpty |
11596
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1995 |
and: [(listOnlyInA notEmpty |
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
1996 |
or:[listOnlyInB notEmpty])]) not. |
11453 | 1997 |
|
11961
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
1998 |
info := ''. |
11453 | 1999 |
numIgnoredExtensions ~~ 0 ifTrue:[ |
11961
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
2000 |
info := info , ('%1 extension methods ignored. ' bindWith:numIgnoredExtensions). |
11453 | 2001 |
]. |
11961
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
2002 |
numIgnoredVersionMethods ~~ 0 ifTrue:[ |
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
2003 |
info := info , ('%1 version methods ignored.' bindWith:numIgnoredVersionMethods). |
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
2004 |
]. |
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
2005 |
self infoHolder value:info |
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
2006 |
|
11596
a82461d12ced
selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents:
11533
diff
changeset
|
2007 |
"Modified: / 17-07-2012 / 18:34:36 / cg" |
2221 | 2008 |
! ! |
2009 |
||
2501 | 2010 |
!VersionDiffBrowser methodsFor:'setup'! |
2011 |
||
2695 | 2012 |
setupForClass:aClass againstVersion:aVersionA |
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
2013 |
"compute the class change set for the class aClass of its current version against the repository version A. |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
2014 |
When setting the class change set, the labels, list etc. of the receiver |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
2015 |
are updated." |
2695 | 2016 |
|
2731 | 2017 |
|changeSet| |
2018 |
||
2745 | 2019 |
aClass isNil ifTrue:[ |
11453 | 2020 |
changeSet := nil |
2745 | 2021 |
] ifFalse:[ |
11453 | 2022 |
aClass isNameSpace ifFalse:[ |
2023 |
aClass isLoaded ifTrue:[ |
|
2024 |
changeSet := (ClassChangeSet newForClass:aClass againstVersion:aVersionA). |
|
2025 |
] |
|
2026 |
]. |
|
2731 | 2027 |
]. |
2856 | 2028 |
self classChangeSet:changeSet. |
2857
0c467f6b1741
handle case if invoked without versionString
Claus Gittinger <cg@exept.de>
parents:
2856
diff
changeset
|
2029 |
aVersionA isNil ifTrue:[ |
11453 | 2030 |
self class:aClass versionA:'Repository' versionB:'Current'. |
2857
0c467f6b1741
handle case if invoked without versionString
Claus Gittinger <cg@exept.de>
parents:
2856
diff
changeset
|
2031 |
] ifFalse:[ |
11453 | 2032 |
self class:aClass versionA:aVersionA versionB:(aVersionA , 'm'). |
2857
0c467f6b1741
handle case if invoked without versionString
Claus Gittinger <cg@exept.de>
parents:
2856
diff
changeset
|
2033 |
] |
2695 | 2034 |
! |
2035 |
||
2949 | 2036 |
setupForClass:classA labelA:aLabelA andClass:classB labelB:aLabelB |
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
2037 |
"generate the class change set from the two classes A and B. |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
2038 |
When setting the class change set, the labels, list etc. of the receiver |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
2039 |
are updated." |
2949 | 2040 |
|
2041 |
|changeSet| |
|
2042 |
||
2043 |
changeSet := (ClassChangeSet newForClass:classA labelA:aLabelA andClass:classB labelB:aLabelB). |
|
2044 |
self classChangeSet:changeSet |
|
2045 |
! |
|
2046 |
||
2510 | 2047 |
setupForClass:aClass labelA:aLabelA sourceA:aSourceA labelB:aLabelB sourceB:aSourceB |
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
2048 |
"generate the class change set from the two source files A and B. |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
2049 |
When setting the class change set, the labels, list etc. of the receiver |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
2050 |
are updated." |
2510 | 2051 |
|
2731 | 2052 |
|changeSet| |
2053 |
||
9383 | 2054 |
aClass isRealNameSpace ifFalse:[ |
11453 | 2055 |
aClass isLoaded ifTrue:[ |
2056 |
changeSet := (ClassChangeSet newForClass:aClass labelA:aLabelA sourceA:aSourceA labelB:aLabelB sourceB:aSourceB). |
|
2057 |
] |
|
2731 | 2058 |
]. |
2059 |
self classChangeSet:changeSet |
|
7499 | 2060 |
|
2061 |
"Modified: / 10-11-2006 / 17:15:26 / cg" |
|
2510 | 2062 |
! |
2063 |
||
2501 | 2064 |
setupForClass:aClass versionA:aVersionA versionB:aVersionB |
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
2065 |
"compute the class change set for the class aClass and the versions A and B. |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
2066 |
When setting the class change set, the labels, list etc. of the receiver |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
2067 |
are updated." |
2501 | 2068 |
|
2731 | 2069 |
|changeSet| |
2070 |
||
2071 |
aClass isNameSpace ifFalse:[ |
|
11453 | 2072 |
aClass isLoaded ifTrue:[ |
2073 |
changeSet := (ClassChangeSet newForClass:aClass versionA:aVersionA versionB:aVersionB). |
|
2074 |
] |
|
2731 | 2075 |
]. |
2856 | 2076 |
self classChangeSet:changeSet. |
2077 |
self class:aClass versionA:aVersionA versionB:aVersionB. |
|
3678 | 2078 |
! |
2079 |
||
2080 |
setupForDiffSet:diffSet labelA:aLabelA labelB:aLabelB |
|
2081 |
|changeSet| |
|
2082 |
||
2083 |
changeSet := (ClassChangeSet new diffSet:diffSet; labelA:aLabelA; labelB:aLabelB). |
|
2084 |
self classChangeSet:changeSet |
|
2501 | 2085 |
! ! |
2086 |
||
2497 | 2087 |
!VersionDiffBrowser::ClassChangeSet class methodsFor:'instance creation'! |
2088 |
||
11453 | 2089 |
changeSetForClass:aClass |
3756 | 2090 |
"return a ChangeSet for the class aClass and its current source. |
2091 |
The source is generated into a stream and then the change set is generated |
|
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
2092 |
from the source stream." |
2695 | 2093 |
|
3756 | 2094 |
^ ChangeSet forExistingClass:aClass. |
2695 | 2095 |
! |
2096 |
||
2497 | 2097 |
changeSetForClass:aClass andRevision:aVersion |
3594
12071dccbbe4
#valueNowOrOnUnwindDo: -> #ensure:
Claus Gittinger <cg@exept.de>
parents:
3344
diff
changeset
|
2098 |
"return a ChangeSet for the class aClass and version aVersion. |
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
2099 |
The version from the class source stream is checked out from the repositiory |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
2100 |
into a source stream. Then the change set is generated from the source stream." |
3594
12071dccbbe4
#valueNowOrOnUnwindDo: -> #ensure:
Claus Gittinger <cg@exept.de>
parents:
3344
diff
changeset
|
2101 |
|
2497 | 2102 |
|theSourceCodeManager theSourceStream theChangeSet| |
2103 |
||
10829
e57c6dc35f3c
Do not call obsolete methods in SourceCodeManager class
Stefan Vogel <sv@exept.de>
parents:
10703
diff
changeset
|
2104 |
theSourceCodeManager := SourceCodeManagerUtilities default sourceCodeManagerFor:aClass. |
3594
12071dccbbe4
#valueNowOrOnUnwindDo: -> #ensure:
Claus Gittinger <cg@exept.de>
parents:
3344
diff
changeset
|
2105 |
[ |
11453 | 2106 |
theSourceStream := theSourceCodeManager getSourceStreamFor:aClass revision:aVersion. |
2107 |
theSourceStream notNil |
|
2108 |
ifTrue:[theChangeSet := ChangeSet fromStream:theSourceStream] |
|
3594
12071dccbbe4
#valueNowOrOnUnwindDo: -> #ensure:
Claus Gittinger <cg@exept.de>
parents:
3344
diff
changeset
|
2109 |
] ensure:[ |
11453 | 2110 |
theSourceStream notNil ifTrue:[theSourceStream close] |
3594
12071dccbbe4
#valueNowOrOnUnwindDo: -> #ensure:
Claus Gittinger <cg@exept.de>
parents:
3344
diff
changeset
|
2111 |
]. |
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
2112 |
self sortChangeSet:theChangeSet. |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
2113 |
^ theChangeSet |
7108 | 2114 |
|
2115 |
"Modified: / 12-09-2006 / 14:24:51 / cg" |
|
2497 | 2116 |
! |
2117 |
||
11453 | 2118 |
changeSetForClass:aClass andSource:aSource |
3594
12071dccbbe4
#valueNowOrOnUnwindDo: -> #ensure:
Claus Gittinger <cg@exept.de>
parents:
3344
diff
changeset
|
2119 |
"return a ChangeSet for the class aClass and source aSource. |
4638
79734f7bdfc4
Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents:
4359
diff
changeset
|
2120 |
The source is converted to a stream and then the change set is generated |
79734f7bdfc4
Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents:
4359
diff
changeset
|
2121 |
from the source stream. |
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
2122 |
Raise an error if the source stream cannot be opened." |
4638
79734f7bdfc4
Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents:
4359
diff
changeset
|
2123 |
|
2497 | 2124 |
|theChangeSet theSourceStream| |
2125 |
||
3594
12071dccbbe4
#valueNowOrOnUnwindDo: -> #ensure:
Claus Gittinger <cg@exept.de>
parents:
3344
diff
changeset
|
2126 |
[ |
11453 | 2127 |
theSourceStream := aSource readStream. |
2128 |
theChangeSet := ChangeSet fromStream:(theSourceStream := aSource readStream) |
|
3594
12071dccbbe4
#valueNowOrOnUnwindDo: -> #ensure:
Claus Gittinger <cg@exept.de>
parents:
3344
diff
changeset
|
2129 |
] ensure:[ |
11453 | 2130 |
theSourceStream notNil ifTrue:[ |
2131 |
theSourceStream close |
|
2132 |
] |
|
3594
12071dccbbe4
#valueNowOrOnUnwindDo: -> #ensure:
Claus Gittinger <cg@exept.de>
parents:
3344
diff
changeset
|
2133 |
]. |
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
2134 |
self sortChangeSet:theChangeSet. |
4653
0a97ce41f5bd
More openErrorSignal change preparations
Stefan Vogel <sv@exept.de>
parents:
4638
diff
changeset
|
2135 |
^ theChangeSet |
2497 | 2136 |
! |
2137 |
||
2695 | 2138 |
newForClass:aClass againstVersion:aVersionA |
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
2139 |
"return a ClassChangeSet for the class aClass against some verson in the repository. |
11453 | 2140 |
A new instance of ClassChangeSet is generated containing |
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
2141 |
the correspondenting changes." |
2695 | 2142 |
|
8891 | 2143 |
|theClassChangeSet| |
2695 | 2144 |
|
2145 |
theClassChangeSet := self new. |
|
8891 | 2146 |
theClassChangeSet setupForClass:aClass againstVersion:aVersionA. |
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
2147 |
^ theClassChangeSet |
2695 | 2148 |
! |
2149 |
||
2949 | 2150 |
newForClass:classA labelA:aLabelA andClass:classB labelB:aLabelB |
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
2151 |
"return a ClassChangeSet for two classes. |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
2152 |
A new instance of ClassChangeSet is generated containing the correspondenting changes." |
2949 | 2153 |
|
2154 |
|aStream sourceA sourceB theChangeSetA theChangeSetB theClassChangeSet| |
|
2155 |
||
2156 |
theClassChangeSet := self new. |
|
2157 |
theClassChangeSet classBeingCompared:classA. |
|
2158 |
theClassChangeSet labelA:aLabelA. |
|
2159 |
theClassChangeSet labelB:aLabelB. |
|
2160 |
||
2161 |
aStream := '' writeStream. |
|
2162 |
Method flushSourceStreamCache. |
|
2163 |
classA fileOutOn:aStream withTimeStamp:false. |
|
2164 |
sourceA := aStream contents asString. |
|
2165 |
||
2166 |
aStream := '' writeStream. |
|
2167 |
Method flushSourceStreamCache. |
|
2168 |
classB fileOutOn:aStream withTimeStamp:false. |
|
2169 |
sourceB := aStream contents asString. |
|
2170 |
||
11453 | 2171 |
theChangeSetA:=self changeSetForClass:classA andSource:sourceA. |
2949 | 2172 |
theChangeSetB:=self changeSetForClass:classB andSource:sourceB. |
2173 |
theChangeSetA isNil |
|
11453 | 2174 |
ifTrue: [theChangeSetA := ChangeSet new]. |
2949 | 2175 |
theChangeSetB isNil |
11453 | 2176 |
ifTrue: [theChangeSetB := ChangeSet new]. |
2949 | 2177 |
|
2178 |
"/ just in case (if comparing a class against another), |
|
2179 |
"/ unify the classes of the changes (to avoid that all changes are detected as different) |
|
2180 |
||
2181 |
theChangeSetB do:[:eachChange | |
|
11453 | 2182 |
eachChange isMethodChange ifTrue:[ |
2183 |
eachChange changeClass isMeta ifTrue:[ |
|
2184 |
eachChange changeClass ~~ classA theMetaclass ifTrue:[ |
|
2185 |
eachChange changeClass:classA theMetaclass. |
|
2186 |
] |
|
2187 |
] ifFalse:[ |
|
2188 |
eachChange changeClass ~~ classA theNonMetaclass ifTrue:[ |
|
2189 |
eachChange changeClass:classA theNonMetaclass. |
|
2190 |
] |
|
2191 |
]. |
|
2192 |
]. |
|
2949 | 2193 |
]. |
2194 |
"/ remove all #initialize doIts |
|
2195 |
theChangeSetA := theChangeSetA select:[:eachChange | eachChange isDoIt not or:[eachChange isInitialize not]]. |
|
2196 |
theChangeSetB := theChangeSetB select:[:eachChange | eachChange isDoIt not or:[eachChange isInitialize not]]. |
|
2197 |
||
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
2198 |
theClassChangeSet diffSet:(theChangeSetA diffSetsAgainst:theChangeSetB). |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
2199 |
^ theClassChangeSet |
2949 | 2200 |
! |
2201 |
||
2497 | 2202 |
newForClass:aClass labelA:aLabelA sourceA:aSourceA labelB:aLabelB sourceB:aSourceB |
3730
717e425e843e
allow for private classes to be compared
Claus Gittinger <cg@exept.de>
parents:
3687
diff
changeset
|
2203 |
"return a ClassChangeSet for the class aClass and the two sources. |
11453 | 2204 |
The two classes are compared via the source files. A new instance of |
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
2205 |
ClassChangeSet is generated containing the correspondenting changes." |
3730
717e425e843e
allow for private classes to be compared
Claus Gittinger <cg@exept.de>
parents:
3687
diff
changeset
|
2206 |
|
4128 | 2207 |
|theChangeSetA theChangeSetB theClassChangeSet className metaClassName| |
2497 | 2208 |
|
2209 |
theClassChangeSet := self new. |
|
2210 |
theClassChangeSet classBeingCompared:aClass. |
|
2211 |
theClassChangeSet labelA:aLabelA. |
|
2212 |
theClassChangeSet labelB:aLabelB. |
|
11453 | 2213 |
theChangeSetA:=self changeSetForClass:aClass andSource:aSourceA. |
2497 | 2214 |
theChangeSetB:=self changeSetForClass:aClass andSource:aSourceB. |
3730
717e425e843e
allow for private classes to be compared
Claus Gittinger <cg@exept.de>
parents:
3687
diff
changeset
|
2215 |
|
4128 | 2216 |
className := aClass name. |
2217 |
metaClassName := aClass class name. |
|
2218 |
||
3730
717e425e843e
allow for private classes to be compared
Claus Gittinger <cg@exept.de>
parents:
3687
diff
changeset
|
2219 |
aClass isPrivate ifTrue:[ |
11453 | 2220 |
theChangeSetA := theChangeSetA select:[:change | change isMethodChange not |
2221 |
or:[change className = className or:[change className = metaClassName]]]. |
|
2222 |
theChangeSetA := theChangeSetA select:[:change | change isClassDefinitionChange not |
|
2223 |
or:[change className = className or:[change className = metaClassName]]]. |
|
2224 |
theChangeSetA := theChangeSetA select:[:change | change isDoIt not |
|
2225 |
or:[change receiverClassName = className or:[change receiverClassName = metaClassName]]]. |
|
2226 |
theChangeSetB := theChangeSetB select:[:change | change isMethodChange not |
|
2227 |
or:[change className = className or:[change className = metaClassName]]]. |
|
2228 |
theChangeSetB := theChangeSetB select:[:change | change isClassDefinitionChange not |
|
2229 |
or:[change className = className or:[change className = metaClassName]]]. |
|
2230 |
theChangeSetB := theChangeSetB select:[:change | change isDoIt not |
|
2231 |
or:[change receiverClassName = className or:[change receiverClassName = metaClassName]]]. |
|
2232 |
"/ there might be more needed... |
|
3730
717e425e843e
allow for private classes to be compared
Claus Gittinger <cg@exept.de>
parents:
3687
diff
changeset
|
2233 |
]. |
717e425e843e
allow for private classes to be compared
Claus Gittinger <cg@exept.de>
parents:
3687
diff
changeset
|
2234 |
|
2497 | 2235 |
theChangeSetA isNil |
11453 | 2236 |
ifTrue: [theChangeSetA := ChangeSet new]. |
2497 | 2237 |
theChangeSetB isNil |
11453 | 2238 |
ifTrue: [theChangeSetB := ChangeSet new]. |
2947 | 2239 |
|
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
2240 |
theClassChangeSet diffSet:(theChangeSetA diffSetsAgainst:theChangeSetB). |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
2241 |
^ theClassChangeSet |
2465 | 2242 |
! |
2243 |
||
2497 | 2244 |
newForClass:aClass versionA:aVersionA versionB:aVersionB |
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
2245 |
"return a ClassChangeSet for the class aClass and the two versions. |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
2246 |
The two class version are checked out from the repository and then being |
11453 | 2247 |
compared. A new instance of ClassChangeSet is generated containing |
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
2248 |
the correspondenting changes." |
2497 | 2249 |
|
2250 |
|theChangeSetA theChangeSetB theClassChangeSet| |
|
2251 |
||
2252 |
theClassChangeSet := self new. |
|
2253 |
theClassChangeSet classBeingCompared:aClass. |
|
2856 | 2254 |
theClassChangeSet versionA:aVersionA. |
2255 |
theClassChangeSet versionB:aVersionB. |
|
2497 | 2256 |
theClassChangeSet labelA:aVersionA. |
2257 |
theClassChangeSet labelB:aVersionB. |
|
2258 |
theChangeSetA := self changeSetForClass: aClass andRevision: aVersionA. |
|
2259 |
theChangeSetB := self changeSetForClass: aClass andRevision: aVersionB. |
|
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
2260 |
theChangeSetA isNil ifTrue: [theChangeSetA := ChangeSet new]. |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
2261 |
theChangeSetB isNil ifTrue: [theChangeSetB := ChangeSet new]. |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
2262 |
theClassChangeSet diffSet:(theChangeSetA diffSetsAgainst:theChangeSetB). |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
2263 |
^ theClassChangeSet |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
2264 |
! |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
2265 |
|
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
2266 |
sortChangeSet:aChangeSet |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
2267 |
"/ sort by meta and selector |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
2268 |
|
11453 | 2269 |
aChangeSet |
2270 |
sort:[:a :b | |
|
2271 |
a == b ifTrue:[ |
|
2272 |
false |
|
2273 |
] ifFalse:[ |
|
2274 |
a isClassDefinitionChange == b isClassDefinitionChange ifTrue:[ |
|
2275 |
a isClassChange == b isClassChange ifTrue:[ |
|
2276 |
a isClassChange ifTrue:[ |
|
2277 |
a isForMeta == b isForMeta ifTrue:[ |
|
2278 |
a isMethodChange == b isMethodChange ifTrue:[ |
|
2279 |
a className < b className |
|
2280 |
or:[ a className = b className |
|
2281 |
and:[ a isPrimitiveChange not |
|
2282 |
and:[ b isPrimitiveChange not |
|
2283 |
and:[ a selector < b selector ]]]] |
|
2284 |
] ifFalse:[ |
|
2285 |
a isMethodChange not |
|
2286 |
]. |
|
2287 |
] ifFalse:[ |
|
2288 |
a isForMeta |
|
2289 |
]. |
|
2290 |
] ifFalse:[ |
|
2291 |
a printString < b printString |
|
2292 |
]. |
|
2293 |
] ifFalse:[ |
|
2294 |
a isClassChange |
|
2295 |
]. |
|
2296 |
] ifFalse:[ |
|
2297 |
a isClassDefinitionChange |
|
2298 |
]. |
|
2299 |
] |
|
2300 |
]. |
|
2497 | 2301 |
! ! |
2302 |
||
2303 |
!VersionDiffBrowser::ClassChangeSet methodsFor:'accessing'! |
|
2304 |
||
2305 |
classBeingCompared |
|
3756 | 2306 |
"returns the value of the class which is compared" |
2497 | 2307 |
|
2308 |
^ classBeingCompared |
|
2309 |
! |
|
2221 | 2310 |
|
2497 | 2311 |
classBeingCompared:something |
3756 | 2312 |
"set the value of the class which is compared" |
2497 | 2313 |
|
2314 |
classBeingCompared := something. |
|
2315 |
! |
|
2316 |
||
2695 | 2317 |
diffSet |
3756 | 2318 |
"returns a diffSet containing the different changes. |
2319 |
it responds to: |
|
2695 | 2320 |
|
11453 | 2321 |
changed OrderedCollection of arrays containing ChangeSets for methods |
2322 |
which are changed and exists in the class versionA and versionB |
|
3756 | 2323 |
onlyInArg ChangeSet for the methods which exists only in the class versionB |
2324 |
onlyInReceiver ChangeSet for the methods which exists only in the class versionA |
|
11453 | 2325 |
" |
3756 | 2326 |
|
2695 | 2327 |
^ diffSet |
2328 |
! |
|
2329 |
||
2330 |
diffSet:something |
|
3756 | 2331 |
"sets the diffSet containing the different changes. |
2332 |
it responds to: |
|
2695 | 2333 |
|
11453 | 2334 |
changed OrderedCollection of arrays containing ChangeSets for methods |
2335 |
which are changed and exists in the class versionA and versionB |
|
3756 | 2336 |
onlyInArg ChangeSet for the methods which exists only in the class versionB |
2337 |
onlyInReceiver ChangeSet for the methods which exists only in the class versionA |
|
11453 | 2338 |
" |
2695 | 2339 |
|
2340 |
diffSet := something. |
|
2341 |
! |
|
2342 |
||
2497 | 2343 |
labelA |
3756 | 2344 |
"returns the label for the class versionA" |
2497 | 2345 |
|
2346 |
^ labelA |
|
2347 |
! |
|
2348 |
||
2349 |
labelA:something |
|
3756 | 2350 |
"sets the label for the class versionA" |
2497 | 2351 |
|
2352 |
labelA := something. |
|
2353 |
! |
|
2354 |
||
2355 |
labelB |
|
3756 | 2356 |
"returns the label for the class versionB" |
2497 | 2357 |
|
2358 |
^ labelB |
|
2359 |
! |
|
2465 | 2360 |
|
2497 | 2361 |
labelB:something |
3756 | 2362 |
"sets the label for the class versionB" |
2497 | 2363 |
|
2364 |
labelB := something. |
|
2365 |
! |
|
2366 |
||
2367 |
methodsChanged |
|
11453 | 2368 |
"returns an OrderedCollection of arrays containing ChangeSets for methods |
3756 | 2369 |
which are changed and exists in the class versionA and versionB |
2497 | 2370 |
|
3756 | 2371 |
<return: OrderedCollection of Array(2)> |
2372 |
" |
|
2373 |
||
2374 |
^ self diffSet changed |
|
2497 | 2375 |
! |
2376 |
||
2377 |
methodsOnlyInA |
|
11453 | 2378 |
"returns a ChangeSet for the methods which exists only in the class versionA" |
2497 | 2379 |
|
3756 | 2380 |
^ self diffSet onlyInReceiver |
2497 | 2381 |
! |
2382 |
||
2383 |
methodsOnlyInB |
|
11453 | 2384 |
"returns a ChangeSet for the methods which exists only in the class versionB" |
2497 | 2385 |
|
3756 | 2386 |
^ self diffSet onlyInArg |
2856 | 2387 |
! |
2388 |
||
2389 |
versionA |
|
2390 |
^ versionA |
|
2391 |
! |
|
2392 |
||
2393 |
versionA:something |
|
2394 |
versionA := something. |
|
2395 |
! |
|
2396 |
||
2397 |
versionB |
|
2398 |
^ versionB |
|
2399 |
! |
|
2400 |
||
2401 |
versionB:something |
|
2402 |
versionB := something. |
|
2221 | 2403 |
! ! |
2404 |
||
8891 | 2405 |
!VersionDiffBrowser::ClassChangeSet methodsFor:'misc'! |
2406 |
||
2407 |
removeAllVersionMethods |
|
2408 |
diffSet removeAllVersionMethods. |
|
2409 |
! ! |
|
2410 |
||
2411 |
!VersionDiffBrowser::ClassChangeSet methodsFor:'setup'! |
|
2412 |
||
2413 |
setupForClass:aClass againstVersion:aVersionA |
|
2414 |
"return a ClassChangeSet for the class aClass against some verison in the repository. |
|
11453 | 2415 |
A new instance of ClassChangeSet is generated containing |
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
2416 |
the correspondenting changes." |
8891 | 2417 |
|
2418 |
|theChangeSetA theChangeSetB versionCompared| |
|
2419 |
||
2420 |
self classBeingCompared:aClass. |
|
2421 |
versionCompared := aVersionA. |
|
2422 |
aVersionA isNil ifTrue:[ |
|
11453 | 2423 |
self labelA:(versionCompared := aClass revision). |
2424 |
self versionA:versionCompared. |
|
8891 | 2425 |
] ifFalse:[ |
11453 | 2426 |
aVersionA == #newest ifTrue:[ |
2427 |
self labelA:(VersionDiffBrowser resources string:'Newest'). |
|
2428 |
] ifFalse:[ |
|
2429 |
self labelA:versionCompared. |
|
2430 |
self versionA:versionCompared. |
|
2431 |
] |
|
8891 | 2432 |
]. |
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
2433 |
self labelB:(VersionDiffBrowser resources string:'Current'). |
8891 | 2434 |
theChangeSetA := self class changeSetForClass: aClass andRevision: versionCompared. |
2435 |
theChangeSetB := self class changeSetForClass: aClass. |
|
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
2436 |
theChangeSetA isNil ifTrue: [theChangeSetA := ChangeSet new]. |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
2437 |
theChangeSetB isNil ifTrue: [theChangeSetB := ChangeSet new]. |
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
2438 |
|
8891 | 2439 |
"/ if we are comparing a private class, prune out other changes |
2440 |
aClass isPrivate ifTrue:[ |
|
11453 | 2441 |
theChangeSetA removeAllSuchThat:[:aChange | aChange className ~= aClass name ]. |
2442 |
theChangeSetB removeAllSuchThat:[:aChange | aChange className ~= aClass name ]. |
|
8891 | 2443 |
]. |
9239
1cfdf9dae50b
double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents:
8891
diff
changeset
|
2444 |
self activityNotification:'Generating diff-set...'. |
8891 | 2445 |
self diffSet:(theChangeSetA diffSetsAgainst:theChangeSetB). |
2446 |
self activityNotification:nil. |
|
2447 |
^ diffSet |
|
2448 |
! ! |
|
2449 |
||
2221 | 2450 |
!VersionDiffBrowser class methodsFor:'documentation'! |
2451 |
||
2452 |
version |
|
11961
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
2453 |
^ '$Header: /cvs/stx/stx/libtool/VersionDiffBrowser.st,v 1.110 2012-10-30 15:26:38 cg Exp $' |
8811
65e08571a2f3
changed: #openOnClass:labelA:sourceA:labelB:sourceB:title:ifSame:
fm
parents:
8657
diff
changeset
|
2454 |
! |
65e08571a2f3
changed: #openOnClass:labelA:sourceA:labelB:sourceB:title:ifSame:
fm
parents:
8657
diff
changeset
|
2455 |
|
65e08571a2f3
changed: #openOnClass:labelA:sourceA:labelB:sourceB:title:ifSame:
fm
parents:
8657
diff
changeset
|
2456 |
version_CVS |
11961
094f448dc1f0
added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents:
11958
diff
changeset
|
2457 |
^ '$Header: /cvs/stx/stx/libtool/VersionDiffBrowser.st,v 1.110 2012-10-30 15:26:38 cg Exp $' |
2221 | 2458 |
! ! |