eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'Diff3TextView':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: Diff3TextView


Inheritance:

   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

Description:


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.

copyright

COPYRIGHT (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.

Class protocol:

instance creation
o  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
o  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 ...

o  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 ...


Instance protocol:

initialization
o  initStyle
(comment from inherited method)
this method sets up all style dependent things.
If redefined, make sure that super initStyle is sent

private
o  updateListsFromMergedText: mergedText
given the merge()/rcsmerge() merged output (as created by 'cvs update'),
update my views' contents



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Mon, 18 Nov 2024 08:26:19 GMT