|
Class: Diff3TextView
Object
|
+--GraphicsMedium
|
+--DisplaySurface
|
+--SimpleView
|
+--SyncedMultiColumnTextView
|
+--ThreeColumnTextView
|
+--Diff3TextView
- Package:
- stx:libtool
- Category:
- Views-Text
- Version:
- rev:
1.15
date: 2021/03/08 21:47:43
- user: cg
- file: Diff3TextView.st directory: libtool
- module: stx stc-classLibrary: libtool
a view showing merged diff3 (see rcsmerge / merge unix manual pages) output in a
user-friendly form.
The view is created and opened with:
d := Diff3TextView openOn:text label:l1 label:l2 label:l3.
and it will show the 3 versions side-by-side
Its main use is for the SourceCodeManager, to show merged sources after
a failed checkin.
Notice:
This has diff3 output (or cvs diff output) hardwired into it.
Needs to be adapted, if that format ever changes.
copyrightCOPYRIGHT (c) 1995 by Claus Gittinger
All Rights Reserved
This software is furnished under a license and may be used
only in accordance with the terms of that license and with the
inclusion of the above copyright notice. This software may not
be provided or otherwise made available to, or used by, any
other person. No title to or ownership of the software is
hereby transferred.
instance creation
-
openOnMergedText: text label: firstLabel label: secondLabel label: thirdLabel
-
open up a view showing firstText, secondText and thirdText side-by-side,
and labels for all views.
public helpers
-
emphasizeMergedDiff3Text: mergedText emphasize1: e1 emphasize2: e2 emphasizeSep: e3
-
given the merge()/rcsmerge() merged output (as created by 'cvs update'),
create & return a text object which contains the conflicts
highlighted.
CAVEAT: this is a highly specialized method - probably not the right place
for it here ...
-
emphasizeMergedDiff3TextFromPerforce: mergedText origEmphasis: origEmphasize otherEmphasis: otherEmphasize yourEmphasis: yourEmphasize separatorEmphasis: separatorEmphasize
-
given the merge()/rcsmerge() merged output (as created by 'cvs update'),
create & return a text object which contains the conflicts
highlighted.
CAVEAT: this is a highly specialized method - probably not the right place
for it here ...
initialization
-
initStyle
-
(comment from inherited method)
this method sets up all style dependent things.
If redefined, make sure that super initStyle is sent
private
-
updateListsFromMergedText: mergedText
-
given the merge()/rcsmerge() merged output (as created by 'cvs update'),
update my views' contents
|