author | Claus Gittinger <cg@exept.de> |
Fri, 18 Nov 2016 16:14:26 +0100 | |
changeset 1180 | 92753f6cc822 |
parent 1107 | 37eccda26805 |
permissions | -rw-r--r-- |
730 | 1 |
" |
2 |
Copyright (c) 2007-2010 Jan Vrany |
|
3 |
Copyright (c) 2009-2010 eXept Software AG |
|
4 |
||
5 |
Permission is hereby granted, free of charge, to any person |
|
6 |
obtaining a copy of this software and associated documentation |
|
7 |
files (the 'Software'), to deal in the Software without |
|
8 |
restriction, including without limitation the rights to use, |
|
9 |
copy, modify, merge, publish, distribute, sublicense, and/or sell |
|
10 |
copies of the Software, and to permit persons to whom the |
|
11 |
Software is furnished to do so, subject to the following |
|
12 |
conditions: |
|
13 |
||
14 |
The above copyright notice and this permission notice shall be |
|
15 |
included in all copies or substantial portions of the Software. |
|
16 |
||
17 |
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, |
|
18 |
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
|
19 |
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
|
20 |
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
|
21 |
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
|
22 |
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
|
23 |
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
|
24 |
OTHER DEALINGS IN THE SOFTWARE. |
|
25 |
" |
|
391 | 26 |
"{ Package: 'stx:libsvn' }" |
8 | 27 |
|
28 |
"{ NameSpace: SVN }" |
|
29 |
||
30 |
Browser subclass:#RevisionLogBrowser |
|
1107
37eccda26805
Improvements in revision log browser/dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
816
diff
changeset
|
31 |
instanceVariableNames:'branchHolder pathHolder changedPathSelectionHolder infoPanel' |
8 | 32 |
classVariableNames:'' |
33 |
poolDictionaries:'' |
|
34 |
category:'SVN-UI-Browsers' |
|
35 |
! |
|
36 |
||
730 | 37 |
!RevisionLogBrowser class methodsFor:'documentation'! |
38 |
||
39 |
copyright |
|
40 |
" |
|
41 |
Copyright (c) 2007-2010 Jan Vrany |
|
42 |
Copyright (c) 2009-2010 eXept Software AG |
|
43 |
||
44 |
Permission is hereby granted, free of charge, to any person |
|
45 |
obtaining a copy of this software and associated documentation |
|
46 |
files (the 'Software'), to deal in the Software without |
|
47 |
restriction, including without limitation the rights to use, |
|
48 |
copy, modify, merge, publish, distribute, sublicense, and/or sell |
|
49 |
copies of the Software, and to permit persons to whom the |
|
50 |
Software is furnished to do so, subject to the following |
|
51 |
conditions: |
|
52 |
||
53 |
The above copyright notice and this permission notice shall be |
|
54 |
included in all copies or substantial portions of the Software. |
|
55 |
||
56 |
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, |
|
57 |
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
|
58 |
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
|
59 |
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
|
60 |
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
|
61 |
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
|
62 |
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
|
63 |
OTHER DEALINGS IN THE SOFTWARE. |
|
64 |
||
65 |
" |
|
66 |
! |
|
67 |
||
68 |
example1 |
|
69 |
||
70 |
SVN::RevisionLogBrowser new |
|
71 |
branch: self svnRepository branch; |
|
72 |
open |
|
73 |
! |
|
74 |
||
75 |
example2 |
|
76 |
||
77 |
SVN::RevisionLogBrowser new |
|
78 |
open; |
|
79 |
branch: self svnRepository branch |
|
80 |
! ! |
|
81 |
||
82 |
!RevisionLogBrowser class methodsFor:'interface specs'! |
|
83 |
||
84 |
changedPathsTabSpec |
|
85 |
"This resource specification was automatically generated |
|
86 |
by the UIPainter of ST/X." |
|
87 |
||
88 |
"Do not manually edit this!! If it is corrupted, |
|
89 |
the UIPainter may not be able to read the specification." |
|
90 |
||
91 |
" |
|
92 |
UIPainter new openOnClass:SVN::RevisionLogBrowser andSelector:#changedPathsTabSpec |
|
93 |
SVN::RevisionLogBrowser new openInterface:#changedPathsTabSpec |
|
94 |
" |
|
95 |
||
96 |
<resource: #canvas> |
|
97 |
||
98 |
^ |
|
99 |
#(FullSpec |
|
100 |
name: changedPathsTabSpec |
|
101 |
window: |
|
102 |
(WindowSpec |
|
103 |
label: 'Changed paths' |
|
104 |
name: 'Changed paths' |
|
105 |
min: (Point 10 10) |
|
106 |
bounds: (Rectangle 0 0 300 300) |
|
107 |
) |
|
108 |
component: |
|
109 |
(SpecCollection |
|
110 |
collection: ( |
|
111 |
(SelectionInListModelViewSpec |
|
112 |
name: 'ChangedPaths' |
|
113 |
layout: (LayoutFrame 0 0 0 0 0 1 0 1) |
|
114 |
model: changedPathSelectionHolder |
|
115 |
menu: changedPathsMenu |
|
116 |
hasHorizontalScrollBar: true |
|
117 |
hasVerticalScrollBar: true |
|
118 |
listModel: changedPathsHolder |
|
119 |
useIndex: false |
|
120 |
highlightMode: line |
|
121 |
) |
|
122 |
) |
|
123 |
||
124 |
) |
|
125 |
) |
|
8 | 126 |
! |
127 |
||
730 | 128 |
commentTabSpec |
129 |
"This resource specification was automatically generated |
|
130 |
by the UIPainter of ST/X." |
|
8 | 131 |
|
730 | 132 |
"Do not manually edit this!! If it is corrupted, |
133 |
the UIPainter may not be able to read the specification." |
|
134 |
||
135 |
" |
|
136 |
UIPainter new openOnClass:SVN::RevisionLogBrowser andSelector:#commentTabSpec |
|
137 |
SVN::RevisionLogBrowser new openInterface:#commentTabSpec |
|
138 |
" |
|
139 |
||
140 |
<resource: #canvas> |
|
141 |
||
142 |
^ |
|
143 |
#(FullSpec |
|
144 |
name: commentTabSpec |
|
145 |
window: |
|
146 |
(WindowSpec |
|
147 |
label: 'Comment' |
|
148 |
name: 'Comment' |
|
149 |
min: (Point 10 10) |
|
150 |
bounds: (Rectangle 0 0 300 300) |
|
151 |
) |
|
152 |
component: |
|
153 |
(SpecCollection |
|
154 |
collection: ( |
|
155 |
(TextEditorSpec |
|
156 |
name: 'Comment' |
|
157 |
layout: (LayoutFrame 0 0 0 0 0 1 0 1) |
|
158 |
model: messageHolder |
|
159 |
hasHorizontalScrollBar: true |
|
160 |
hasVerticalScrollBar: true |
|
161 |
hasKeyboardFocusInitially: false |
|
162 |
) |
|
163 |
) |
|
164 |
||
165 |
) |
|
166 |
) |
|
167 |
! |
|
168 |
||
169 |
revisionDetailsSpec |
|
170 |
"This resource specification was automatically generated |
|
171 |
by the UIPainter of ST/X." |
|
172 |
||
173 |
"Do not manually edit this!! If it is corrupted, |
|
174 |
the UIPainter may not be able to read the specification." |
|
175 |
||
176 |
" |
|
177 |
UIPainter new openOnClass:SVN::RevisionLogBrowser andSelector:#revisionDetailsSpec |
|
178 |
SVN::RevisionLogBrowser new openInterface:#revisionDetailsSpec |
|
179 |
" |
|
180 |
||
181 |
<resource: #canvas> |
|
182 |
||
183 |
^ |
|
184 |
#(FullSpec |
|
185 |
name: revisionDetailsSpec |
|
186 |
window: |
|
187 |
(WindowSpec |
|
188 |
label: 'Revision Details' |
|
189 |
name: 'Revision Details' |
|
190 |
min: (Point 10 10) |
|
191 |
bounds: (Rectangle 0 0 300 300) |
|
192 |
) |
|
193 |
component: |
|
194 |
(SpecCollection |
|
195 |
collection: ( |
|
196 |
(NoteBookViewSpec |
|
197 |
name: 'EntryDetails' |
|
198 |
layout: (LayoutFrame 0 0 0 0 0 1 0 1) |
|
199 |
menu: entryDetailsTabList |
|
200 |
keepCanvasAlive: true |
|
201 |
) |
|
202 |
) |
|
203 |
||
204 |
) |
|
205 |
) |
|
206 |
! |
|
207 |
||
208 |
revisionListSpec |
|
209 |
"This resource specification was automatically generated |
|
210 |
by the UIPainter of ST/X." |
|
211 |
||
212 |
"Do not manually edit this!! If it is corrupted, |
|
213 |
the UIPainter may not be able to read the specification." |
|
214 |
||
215 |
" |
|
216 |
UIPainter new openOnClass:SVN::RevisionLogBrowser andSelector:#revisionListSpec |
|
217 |
SVN::RevisionLogBrowser new openInterface:#revisionListSpec |
|
218 |
" |
|
219 |
||
220 |
<resource: #canvas> |
|
221 |
||
222 |
^ |
|
223 |
#(FullSpec |
|
224 |
name: revisionListSpec |
|
225 |
window: |
|
226 |
(WindowSpec |
|
227 |
label: 'Revision List' |
|
228 |
name: 'Revision List' |
|
229 |
min: (Point 10 10) |
|
230 |
bounds: (Rectangle 0 0 300 300) |
|
231 |
) |
|
232 |
component: |
|
233 |
(SpecCollection |
|
234 |
collection: ( |
|
235 |
(DataSetSpec |
|
236 |
name: 'RevisionList' |
|
237 |
layout: (LayoutFrame 0 0 0 0 0 1 0 1) |
|
238 |
visibilityChannel: workNotInProgressHolder |
|
239 |
model: selectionHolder |
|
240 |
hasHorizontalScrollBar: true |
|
241 |
hasVerticalScrollBar: true |
|
242 |
dataList: listHolder |
|
243 |
useIndex: false |
|
244 |
columnHolder: tableColumns |
|
245 |
) |
|
246 |
) |
|
247 |
||
248 |
) |
|
249 |
) |
|
250 |
! |
|
8 | 251 |
|
252 |
windowSpec |
|
253 |
"This resource specification was automatically generated |
|
254 |
by the UIPainter of ST/X." |
|
255 |
||
256 |
"Do not manually edit this!! If it is corrupted, |
|
257 |
the UIPainter may not be able to read the specification." |
|
258 |
||
259 |
" |
|
260 |
UIPainter new openOnClass:SVN::RevisionLogBrowser andSelector:#windowSpec |
|
261 |
SVN::RevisionLogBrowser new openInterface:#windowSpec |
|
262 |
SVN::RevisionLogBrowser open |
|
263 |
" |
|
264 |
||
265 |
<resource: #canvas> |
|
266 |
||
267 |
^ |
|
268 |
#(FullSpec |
|
269 |
name: windowSpec |
|
270 |
window: |
|
271 |
(WindowSpec |
|
272 |
label: 'Revision log browser' |
|
273 |
name: 'Revision log browser' |
|
274 |
min: (Point 10 10) |
|
275 |
bounds: (Rectangle 0 0 800 600) |
|
276 |
) |
|
277 |
component: |
|
278 |
(SpecCollection |
|
279 |
collection: ( |
|
1107
37eccda26805
Improvements in revision log browser/dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
816
diff
changeset
|
280 |
(SubCanvasSpec |
37eccda26805
Improvements in revision log browser/dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
816
diff
changeset
|
281 |
name: 'InfoPanel' |
37eccda26805
Improvements in revision log browser/dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
816
diff
changeset
|
282 |
layout: (LayoutFrame 0 0 0 0 0 1 40 0) |
37eccda26805
Improvements in revision log browser/dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
816
diff
changeset
|
283 |
level: 0 |
37eccda26805
Improvements in revision log browser/dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
816
diff
changeset
|
284 |
initiallyInvisible: true |
37eccda26805
Improvements in revision log browser/dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
816
diff
changeset
|
285 |
hasHorizontalScrollBar: false |
37eccda26805
Improvements in revision log browser/dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
816
diff
changeset
|
286 |
hasVerticalScrollBar: false |
37eccda26805
Improvements in revision log browser/dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
816
diff
changeset
|
287 |
clientKey: infoPanel |
37eccda26805
Improvements in revision log browser/dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
816
diff
changeset
|
288 |
createNewBuilder: false |
37eccda26805
Improvements in revision log browser/dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
816
diff
changeset
|
289 |
) |
8 | 290 |
(VariableVerticalPanelSpec |
730 | 291 |
name: 'RevisionLogPanel' |
8 | 292 |
layout: (LayoutFrame 0 0 0 0 0 1 0 1) |
293 |
showHandle: true |
|
294 |
snapMode: both |
|
295 |
component: |
|
296 |
(SpecCollection |
|
297 |
collection: ( |
|
1107
37eccda26805
Improvements in revision log browser/dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
816
diff
changeset
|
298 |
(UISubSpecification |
37eccda26805
Improvements in revision log browser/dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
816
diff
changeset
|
299 |
name: 'RevisionList' |
37eccda26805
Improvements in revision log browser/dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
816
diff
changeset
|
300 |
minorKey: revisionListSpec |
8 | 301 |
) |
730 | 302 |
(UISubSpecification |
303 |
name: 'RevisionDetails' |
|
304 |
minorKey: revisionDetailsSpec |
|
8 | 305 |
) |
306 |
) |
|
307 |
||
308 |
) |
|
1107
37eccda26805
Improvements in revision log browser/dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
816
diff
changeset
|
309 |
handles: (Any 0.7 1.0) |
8 | 310 |
) |
311 |
) |
|
312 |
||
313 |
) |
|
314 |
) |
|
1107
37eccda26805
Improvements in revision log browser/dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
816
diff
changeset
|
315 |
|
37eccda26805
Improvements in revision log browser/dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
816
diff
changeset
|
316 |
"Modified: / 10-07-2012 / 16:38:07 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
8 | 317 |
! ! |
318 |
||
730 | 319 |
!RevisionLogBrowser class methodsFor:'list specs'! |
320 |
||
321 |
entryDetailsTabList |
|
322 |
"This resource specification was automatically generated |
|
323 |
by the TabListEditor of ST/X." |
|
324 |
||
325 |
"Do not manually edit this!! If it is corrupted, |
|
326 |
the TabListEditor may not be able to read the specification." |
|
327 |
||
328 |
" |
|
329 |
TabListEditor new openOnClass: self andSelector:#entryDetailsTabList |
|
330 |
" |
|
331 |
||
332 |
<resource: #tabList> |
|
333 |
||
334 |
^ #( |
|
335 |
(TabItem |
|
336 |
label: 'Comment' |
|
337 |
minorKey: commentTabSpec |
|
338 |
createNewBuilder: false |
|
339 |
) |
|
340 |
(TabItem |
|
341 |
label: 'Changed paths' |
|
342 |
minorKey: changedPathsTabSpec |
|
343 |
createNewBuilder: false |
|
344 |
) |
|
345 |
) |
|
346 |
||
347 |
collect:[:aTab| TabItem new fromLiteralArrayEncoding:aTab ] |
|
348 |
! ! |
|
349 |
||
350 |
!RevisionLogBrowser class methodsFor:'menu specs'! |
|
351 |
||
352 |
changedPathsMenu |
|
353 |
"This resource specification was automatically generated |
|
354 |
by the MenuEditor of ST/X." |
|
355 |
||
356 |
"Do not manually edit this!! If it is corrupted, |
|
357 |
the MenuEditor may not be able to read the specification." |
|
358 |
||
359 |
" |
|
360 |
MenuEditor new openOnClass:SVN::RevisionLogBrowser andSelector:#changedPathsMenu |
|
361 |
(Menu new fromLiteralArrayEncoding:(SVN::RevisionLogBrowser changedPathsMenu)) startUp |
|
362 |
" |
|
363 |
||
364 |
<resource: #menu> |
|
365 |
||
366 |
^ |
|
367 |
#(Menu |
|
368 |
( |
|
369 |
(MenuItem |
|
370 |
label: 'Compare with image' |
|
371 |
itemValue: changedPathCompareWithImage |
|
372 |
translateLabel: true |
|
373 |
) |
|
374 |
(MenuItem |
|
375 |
enabled: false |
|
376 |
label: 'Compare with HEAD' |
|
377 |
itemValue: changedPathCompareWithHead |
|
378 |
translateLabel: true |
|
379 |
) |
|
380 |
(MenuItem |
|
381 |
enabled: false |
|
382 |
label: 'Compare...' |
|
383 |
itemValue: changedPathCompare |
|
384 |
translateLabel: true |
|
385 |
) |
|
386 |
(MenuItem |
|
387 |
label: '-' |
|
388 |
) |
|
389 |
(MenuItem |
|
390 |
label: 'Inspect' |
|
391 |
itemValue: changedPathInspect |
|
392 |
translateLabel: true |
|
393 |
) |
|
394 |
) |
|
395 |
nil |
|
396 |
nil |
|
397 |
) |
|
398 |
! ! |
|
399 |
||
400 |
!RevisionLogBrowser class methodsFor:'others'! |
|
401 |
||
402 |
version_CVS |
|
403 |
^ '$Header$' |
|
404 |
! ! |
|
405 |
||
8 | 406 |
!RevisionLogBrowser class methodsFor:'plugIn spec'! |
407 |
||
408 |
aspectSelectors |
|
409 |
"This resource specification was automatically generated |
|
410 |
by the UIPainter of ST/X." |
|
411 |
||
412 |
"Do not manually edit this. If it is corrupted, |
|
413 |
the UIPainter may not be able to read the specification." |
|
414 |
||
415 |
"Return a description of exported aspects; |
|
416 |
these can be connected to aspects of an embedding application |
|
417 |
(if this app is embedded in a subCanvas)." |
|
418 |
||
419 |
^ #( |
|
730 | 420 |
#branchHolder |
421 |
#pathHolder |
|
8 | 422 |
#selectionHolder |
423 |
). |
|
424 |
||
425 |
! ! |
|
426 |
||
427 |
!RevisionLogBrowser class methodsFor:'tableColumns specs'! |
|
428 |
||
429 |
tableColumns |
|
430 |
"This resource specification was automatically generated |
|
431 |
by the DataSetBuilder of ST/X." |
|
432 |
||
433 |
"Do not manually edit this!! If it is corrupted, |
|
434 |
the DataSetBuilder may not be able to read the specification." |
|
435 |
||
436 |
" |
|
437 |
DataSetBuilder new openOnClass:SVN::RevisionSelectionDialog andSelector:#tableColumns |
|
438 |
" |
|
439 |
||
440 |
<resource: #tableColumns> |
|
441 |
||
442 |
^#( |
|
443 |
(DataSetColumnSpec |
|
444 |
label: 'Revision' |
|
445 |
activeHelpKey: '' |
|
446 |
labelButtonType: Button |
|
447 |
printSelector: revision |
|
448 |
canSelect: false |
|
449 |
showRowSeparator: false |
|
450 |
showColSeparator: false |
|
451 |
) |
|
452 |
(DataSetColumnSpec |
|
453 |
label: 'Author' |
|
454 |
activeHelpKey: '' |
|
455 |
labelButtonType: Button |
|
456 |
printSelector: author |
|
457 |
canSelect: false |
|
458 |
showRowSeparator: false |
|
459 |
showColSeparator: false |
|
460 |
) |
|
461 |
(DataSetColumnSpec |
|
462 |
label: 'Date' |
|
463 |
activeHelpKey: '' |
|
464 |
labelButtonType: Button |
|
465 |
printSelector: date |
|
466 |
canSelect: false |
|
467 |
showRowSeparator: false |
|
468 |
showColSeparator: false |
|
469 |
) |
|
470 |
) |
|
471 |
||
472 |
"Created: / 21-05-2008 / 09:22:21 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
473 |
! ! |
|
474 |
||
730 | 475 |
!RevisionLogBrowser methodsFor:'accessing'! |
476 |
||
477 |
branch |
|
8 | 478 |
|
730 | 479 |
^self branchHolder value |
480 |
! |
|
8 | 481 |
|
730 | 482 |
branch: aSVNBranch |
483 |
||
484 |
^self branchHolder value: aSVNBranch |
|
485 |
! |
|
8 | 486 |
|
1107
37eccda26805
Improvements in revision log browser/dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
816
diff
changeset
|
487 |
infoPanel |
37eccda26805
Improvements in revision log browser/dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
816
diff
changeset
|
488 |
infoPanel isNil ifTrue:[ |
37eccda26805
Improvements in revision log browser/dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
816
diff
changeset
|
489 |
infoPanel := Tools::InlineMessageDialog new |
37eccda26805
Improvements in revision log browser/dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
816
diff
changeset
|
490 |
]. |
37eccda26805
Improvements in revision log browser/dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
816
diff
changeset
|
491 |
^ infoPanel |
37eccda26805
Improvements in revision log browser/dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
816
diff
changeset
|
492 |
|
37eccda26805
Improvements in revision log browser/dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
816
diff
changeset
|
493 |
"Created: / 09-02-2012 / 19:23:51 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
37eccda26805
Improvements in revision log browser/dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
816
diff
changeset
|
494 |
! |
37eccda26805
Improvements in revision log browser/dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
816
diff
changeset
|
495 |
|
730 | 496 |
path |
497 |
||
498 |
^self pathHolder value |
|
8 | 499 |
|
730 | 500 |
"Created: / 25-06-2010 / 10:04:52 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
501 |
! |
|
8 | 502 |
|
730 | 503 |
path: aString |
504 |
||
505 |
^self pathHolder value: aString |
|
506 |
||
507 |
"Created: / 25-06-2010 / 10:05:06 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
8 | 508 |
! ! |
509 |
||
730 | 510 |
!RevisionLogBrowser methodsFor:'aspects'! |
8 | 511 |
|
730 | 512 |
branchHolder |
513 |
"return/create the 'branchHolder' value holder (automatically generated)" |
|
8 | 514 |
|
730 | 515 |
branchHolder isNil ifTrue:[ |
516 |
branchHolder := ValueHolder new. |
|
517 |
branchHolder addDependent:self. |
|
518 |
]. |
|
519 |
^ branchHolder |
|
8 | 520 |
! |
521 |
||
730 | 522 |
branchHolder:something |
523 |
"set the 'branchHolder' value holder (automatically generated)" |
|
8 | 524 |
|
730 | 525 |
|oldValue newValue| |
8 | 526 |
|
730 | 527 |
branchHolder notNil ifTrue:[ |
528 |
oldValue := branchHolder value. |
|
529 |
branchHolder removeDependent:self. |
|
530 |
]. |
|
531 |
branchHolder := something. |
|
532 |
branchHolder notNil ifTrue:[ |
|
533 |
branchHolder addDependent:self. |
|
534 |
]. |
|
535 |
newValue := branchHolder value. |
|
536 |
oldValue ~~ newValue ifTrue:[ |
|
537 |
self update:#value with:newValue from:branchHolder. |
|
538 |
]. |
|
539 |
! |
|
8 | 540 |
|
730 | 541 |
changedPathSelectionHolder |
542 |
<resource: #uiAspect> |
|
543 |
||
544 |
"automatically generated by UIPainter ..." |
|
545 |
||
546 |
"*** the code below creates a default model when invoked." |
|
547 |
"*** (which may not be the one you wanted)" |
|
548 |
"*** Please change as required and accept it in the browser." |
|
549 |
"*** (and replace this comment by something more useful ;-)" |
|
8 | 550 |
|
730 | 551 |
changedPathSelectionHolder isNil ifTrue:[ |
552 |
changedPathSelectionHolder := ValueHolder new. |
|
553 |
"/ if your app needs to be notified of changes, uncomment one of the lines below: |
|
554 |
"/ changedPathSelectionHolder addDependent:self. |
|
555 |
"/ changedPathSelectionHolder onChangeSend:#changedPathSelectionHolderChanged to:self. |
|
556 |
]. |
|
557 |
^ changedPathSelectionHolder. |
|
558 |
! |
|
559 |
||
560 |
changedPathsHolder |
|
561 |
||
562 |
^(AspectAdaptor forAspect:#changedPaths) |
|
563 |
subjectChannel: self selectionHolder |
|
564 |
! |
|
565 |
||
566 |
hasRevisionSelectedHolder |
|
8 | 567 |
|
730 | 568 |
^(AspectAdaptor forAspect:#notNil) |
569 |
subjectChannel: self selectionHolder |
|
570 |
! |
|
571 |
||
572 |
messageHolder |
|
573 |
||
574 |
^(AspectAdaptor forAspect:#message) |
|
575 |
subjectChannel: self selectionHolder |
|
576 |
! |
|
577 |
||
578 |
pathHolder |
|
579 |
"return/create the 'pathHolder' value holder (automatically generated)" |
|
580 |
||
581 |
pathHolder isNil ifTrue:[ |
|
582 |
pathHolder := ValueHolder new. |
|
583 |
pathHolder addDependent:self. |
|
584 |
]. |
|
585 |
^ pathHolder |
|
8 | 586 |
! |
587 |
||
730 | 588 |
pathHolder:something |
589 |
"set the 'pathHolder' value holder (automatically generated)" |
|
8 | 590 |
|
730 | 591 |
|oldValue newValue| |
8 | 592 |
|
730 | 593 |
pathHolder notNil ifTrue:[ |
594 |
oldValue := pathHolder value. |
|
595 |
pathHolder removeDependent:self. |
|
596 |
]. |
|
597 |
pathHolder := something. |
|
598 |
pathHolder notNil ifTrue:[ |
|
599 |
pathHolder addDependent:self. |
|
600 |
]. |
|
601 |
newValue := pathHolder value. |
|
602 |
oldValue ~~ newValue ifTrue:[ |
|
603 |
self update:#value with:newValue from:pathHolder. |
|
604 |
]. |
|
8 | 605 |
! ! |
606 |
||
730 | 607 |
!RevisionLogBrowser methodsFor:'change & update'! |
8 | 608 |
|
730 | 609 |
update: aspect with: param from: sender |
8 | 610 |
|
730 | 611 |
(sender = branchHolder or:[sender = pathHolder]) |
612 |
ifTrue:[self updateList] |
|
8 | 613 |
! ! |
614 |
||
730 | 615 |
!RevisionLogBrowser methodsFor:'hooks'! |
8 | 616 |
|
730 | 617 |
postOpenWith: anUIBuilder |
8 | 618 |
|
730 | 619 |
self updateList |
8 | 620 |
! ! |
621 |
||
730 | 622 |
!RevisionLogBrowser methodsFor:'menu actions'! |
8 | 623 |
|
730 | 624 |
changedPathCompare |
625 |
"automatically generated by UIEditor ..." |
|
8 | 626 |
|
730 | 627 |
"*** the code below performs no action" |
628 |
"*** (except for some feedback on the Transcript)" |
|
629 |
"*** Please change as required and accept in the browser." |
|
630 |
"*** (and replace this comment by something more useful ;-)" |
|
8 | 631 |
|
730 | 632 |
"action to be added ..." |
8 | 633 |
|
730 | 634 |
Transcript showCR:self class name, ': action for #changedPathCompare ...'. |
635 |
! |
|
636 |
||
637 |
changedPathCompareWithHead |
|
638 |
"automatically generated by UIEditor ..." |
|
8 | 639 |
|
730 | 640 |
"*** the code below performs no action" |
641 |
"*** (except for some feedback on the Transcript)" |
|
642 |
"*** Please change as required and accept in the browser." |
|
643 |
"*** (and replace this comment by something more useful ;-)" |
|
8 | 644 |
|
730 | 645 |
"action to be added ..." |
8 | 646 |
|
730 | 647 |
Transcript showCR:self class name, ': action for #changedPathCompareWithHead ...'. |
8 | 648 |
! |
649 |
||
730 | 650 |
changedPathCompareWithImage |
8 | 651 |
|
730 | 652 |
| action entry | |
653 |
action := self changedPathSelectionHolder value. |
|
654 |
action ifNil:[^self]. |
|
655 |
entry := action entry. |
|
656 |
entry programmingLanguage isSmalltalk ifTrue:[ |
|
657 |
| rev imageChangeSet revChangeSet diff | |
|
658 |
rev := self selectionHolder value revision. |
|
659 |
imageChangeSet := (entry path = 'extensions.st') |
|
660 |
ifTrue: [ChangeSet forExistingMethods: (self branch repository packageExtensions)] |
|
661 |
ifFalse:[ChangeSet forExistingClass: (Repository classFromContainerName: entry path)]. |
|
662 |
revChangeSet := ChangeSet fromStream: (self entryContents: entry path atRevision: rev) readStream. |
|
663 |
diff := (ChangeSetDiff versionA: imageChangeSet versionB: revChangeSet) |
|
664 |
name: entry path; |
|
665 |
versionALabel: 'Current (in image)'; |
|
666 |
versionBLabel: rev printString. |
|
667 |
Tools::ChangeSetDiffTool new |
|
668 |
beTwoColumn:false; |
|
669 |
diffset:diff; |
|
670 |
open |
|
671 |
] ifFalse:[ |
|
672 |
self breakPoint: #jv. |
|
673 |
Dialog warn: 'Not yet implemented' |
|
674 |
]. |
|
8 | 675 |
|
730 | 676 |
"Modified: / 25-06-2010 / 11:20:12 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
677 |
"Modified: / 07-07-2011 / 23:08:27 / jv" |
|
8 | 678 |
! |
679 |
||
730 | 680 |
changedPathInspect |
8 | 681 |
|
730 | 682 |
changedPathSelectionHolder value inspect |
683 |
||
684 |
"Modified: / 25-06-2010 / 10:42:12 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
685 |
! ! |
|
8 | 686 |
|
730 | 687 |
!RevisionLogBrowser methodsFor:'private'! |
688 |
||
689 |
entryContents: entry atRevision: rev |
|
8 | 690 |
|
730 | 691 |
^self branch cat: entry revision: rev |
692 |
||
693 |
"Created: / 25-06-2010 / 11:08:10 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
8 | 694 |
! |
695 |
||
730 | 696 |
updateList |
8 | 697 |
|
1107
37eccda26805
Improvements in revision log browser/dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
816
diff
changeset
|
698 |
| panel | |
37eccda26805
Improvements in revision log browser/dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
816
diff
changeset
|
699 |
|
37eccda26805
Improvements in revision log browser/dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
816
diff
changeset
|
700 |
(masterApplication respondsTo: #infoPanel) ifTrue:[ |
37eccda26805
Improvements in revision log browser/dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
816
diff
changeset
|
701 |
panel := masterApplication infoPanel |
37eccda26805
Improvements in revision log browser/dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
816
diff
changeset
|
702 |
] ifFalse:[ |
37eccda26805
Improvements in revision log browser/dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
816
diff
changeset
|
703 |
panel := self infoPanel. |
37eccda26805
Improvements in revision log browser/dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
816
diff
changeset
|
704 |
]. |
37eccda26805
Improvements in revision log browser/dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
816
diff
changeset
|
705 |
|
37eccda26805
Improvements in revision log browser/dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
816
diff
changeset
|
706 |
panel showProgressLabeled: (resources string: 'Reading revision log') while:[ |
37eccda26805
Improvements in revision log browser/dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
816
diff
changeset
|
707 |
| branch path | |
37eccda26805
Improvements in revision log browser/dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
816
diff
changeset
|
708 |
self listHolder value: #(). |
37eccda26805
Improvements in revision log browser/dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
816
diff
changeset
|
709 |
branch := self branchHolder value. |
37eccda26805
Improvements in revision log browser/dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
816
diff
changeset
|
710 |
branch isNil ifTrue:[ ^self ]. |
37eccda26805
Improvements in revision log browser/dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
816
diff
changeset
|
711 |
path := self pathHolder value ? ''. |
37eccda26805
Improvements in revision log browser/dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
816
diff
changeset
|
712 |
self listHolder value:(branch log: path) |
37eccda26805
Improvements in revision log browser/dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
816
diff
changeset
|
713 |
] |
37eccda26805
Improvements in revision log browser/dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
816
diff
changeset
|
714 |
|
37eccda26805
Improvements in revision log browser/dialog
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
816
diff
changeset
|
715 |
"Modified: / 10-07-2012 / 16:03:11 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
8 | 716 |
! ! |
717 |
||
718 |
!RevisionLogBrowser class methodsFor:'documentation'! |
|
719 |
||
816
ce9b03981a90
checkin to get version methods correct
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
730
diff
changeset
|
720 |
version |
ce9b03981a90
checkin to get version methods correct
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
730
diff
changeset
|
721 |
^ '$Header$' |
ce9b03981a90
checkin to get version methods correct
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
730
diff
changeset
|
722 |
! |
ce9b03981a90
checkin to get version methods correct
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
730
diff
changeset
|
723 |
|
143 | 724 |
version_SVN |
816
ce9b03981a90
checkin to get version methods correct
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
730
diff
changeset
|
725 |
^ '§Id: SVN__RevisionLogBrowser.st 363 2011-08-08 13:49:48Z vranyj1 §' |
8 | 726 |
! ! |