8094
|
1 |
"
|
|
2 |
COPYRIGHT (c) 2008 by eXept Software AG
|
|
3 |
All Rights Reserved
|
|
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 |
"
|
|
12 |
"{ Package: 'stx:libtool' }"
|
|
13 |
|
|
14 |
DiffTextView subclass:#DiffCodeView
|
|
15 |
instanceVariableNames:''
|
|
16 |
classVariableNames:''
|
|
17 |
poolDictionaries:''
|
|
18 |
category:'Views-Text'
|
|
19 |
!
|
|
20 |
|
|
21 |
!DiffCodeView class methodsFor:'documentation'!
|
|
22 |
|
|
23 |
copyright
|
|
24 |
"
|
|
25 |
COPYRIGHT (c) 2008 by eXept Software AG
|
|
26 |
All Rights Reserved
|
|
27 |
|
|
28 |
This software is furnished under a license and may be used
|
|
29 |
only in accordance with the terms of that license and with the
|
|
30 |
inclusion of the above copyright notice. This software may not
|
|
31 |
be provided or otherwise made available to, or used by, any
|
|
32 |
other person. No title to or ownership of the software is
|
|
33 |
hereby transferred.
|
|
34 |
"
|
|
35 |
!
|
|
36 |
|
|
37 |
documentation
|
|
38 |
"
|
|
39 |
a view which presents two CodeViews for diffing.
|
|
40 |
Like a regular diffTextView, but the codeViews show a code-aware popUpMenu.
|
|
41 |
|
|
42 |
[see also:]
|
|
43 |
TwoColumnTextView DiffTextView
|
|
44 |
|
|
45 |
[author:]
|
|
46 |
Claus Gittinger
|
|
47 |
"
|
|
48 |
! !
|
|
49 |
|
|
50 |
!DiffCodeView class methodsFor:'defaults'!
|
|
51 |
|
|
52 |
textViewClass
|
|
53 |
"return the type of the synced subViews.
|
|
54 |
Redefined to use a CodeView"
|
|
55 |
|
|
56 |
^ CodeView
|
|
57 |
! !
|
|
58 |
|
12664
|
59 |
!DiffCodeView methodsFor:'initialization'!
|
|
60 |
|
|
61 |
initialize
|
|
62 |
super initialize.
|
|
63 |
|
|
64 |
textViews doWithIndex:[:v :i |
|
|
65 |
v readOnly:true.
|
|
66 |
"/ v acceptAction:[:text | self acceptInView:i ]
|
|
67 |
].
|
|
68 |
!
|
|
69 |
|
|
70 |
leftAcceptAction:aOneArgBlock
|
|
71 |
(textViews at:1) acceptAction:aOneArgBlock
|
|
72 |
!
|
|
73 |
|
|
74 |
rightAcceptAction:aOneArgBlock
|
|
75 |
(textViews at:2) acceptAction:aOneArgBlock
|
|
76 |
! !
|
|
77 |
|
8094
|
78 |
!DiffCodeView class methodsFor:'documentation'!
|
|
79 |
|
|
80 |
version
|
12664
|
81 |
^ '$Header: /cvs/stx/stx/libtool/DiffCodeView.st,v 1.2 2013-04-14 18:10:35 cg Exp $'
|
8094
|
82 |
! !
|
12664
|
83 |
|