eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'Tools::TextDiff2Tool':

Home

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

Class: TextDiff2Tool (in Tools)


Inheritance:

   Object
   |
   +--Model
      |
      +--ApplicationModel
         |
         +--Tools::TextDiffTool
            |
            +--Tools::TextDiff2Tool

Package:
stx:libtool
Category:
Interface-Diff
Version:
rev: 1.6 date: 2015/06/30 06:18:39
user: cg
file: Tools__TextDiff2Tool.st directory: libtool
module: stx stc-classLibrary: libtool
Author:
Jan Vrany <jan.vrany@fit.cvut.cz>

Description:


a little UI around the DiffTextView,
to show two texts side by side.


[instance variables:]

[class variables:]


Related information:



Class protocol:

interface opening
o  openOn: textA label: labelA and: textB label: labelB

interface specs
o  diffSpec
This resource specification was automatically generated
by the UIPainter of ST/X.
usage example(s):
     UIPainter new openOnClass:Tools::TextDiff2Tool andSelector:#diffSpec
     Tools::TextDiff2Tool new openInterface:#diffSpec

o  nothingSpec
This resource specification was automatically generated
by the UIPainter of ST/X.
usage example(s):
     UIPainter new openOnClass:Tools::TextDiffTool andSelector:#nothingSpec
     Tools::TextDiffTool new openInterface:#nothingSpec

o  textAViewSpec
This resource specification was automatically generated
by the UIPainter of ST/X.

o  textBViewSpec
This resource specification was automatically generated
by the UIPainter of ST/X.

o  versionAOnlySpec
This resource specification was automatically generated
by the UIPainter of ST/X.
usage example(s):
     UIPainter new openOnClass:Tools::TextDiffTool andSelector:#versionAOnlySpec
     Tools::TextDiffTool new openInterface:#versionAOnlySpec

o  versionBOnlySpec
This resource specification was automatically generated
by the UIPainter of ST/X.
usage example(s):
     UIPainter new openOnClass:Tools::TextDiffTool andSelector:#versionBOnlySpec
     Tools::TextDiffTool new openInterface:#versionBOnlySpec

plugIn spec
o  aspectSelectors
This resource specification was automatically generated
by the UIPainter of ST/X.


Instance protocol:

accessing
o  title: aString

aspects
o  showDiffHolder
return/create the 'showDiffHolder' value holder (automatically generated)

o  showDiffHolder: something
set the 'showDiffHolder' value holder (automatically generated)

change & update
o  codeAspect

o  update: something with: aParameter from: changedObject
Invoked when an object that I depend upon sends a change notification.

o  updateAfterAorBorCChanged
(comment from inherited method)
Called whenever one of the texts changes

o  updateDiffFromChangedText

o  updateViews

hooks
o  postBuildCodeView: aScrollableView

o  postBuildDiffView: aScrollableView

initialization
o  initializeDiffView
superclass Tools::TextDiffTool says that I am responsible to implement this method

private
o  showDiff

o  showNothing

o  showTextOnly

o  showVersionA

o  showVersionB

testing
o  isDiff2


Examples:


    |text1 text2|

    text1 := 'hello world
here is some difference
more text
this line has been removed
more text
more text
'.

    text2 := 'hello world
where is the difference ?
more text
more text
more text
this line has been added
'.

    TextDiff2Tool openOn:text1 label:'text1'
                     and:text2 label:'text2'


ST/X 7.1.0.0; WebServer 1.663 at exept.de:8081; Sun, 19 May 2019 06:26:13 GMT