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.10 date: 2022/02/10 11:52:49
user: cg
file: Tools__TextDiff2Tool.st directory: libtool
module: stx stc-classLibrary: libtool

Description:


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


[instance variables:]

[class variables:]

copyright

COPYRIGHT (c) 2006 by eXept Software AG 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:

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::TextDiff2Tool andSelector:#nothingSpec
     Tools::TextDiff2Tool 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.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Sat, 27 Jul 2024 06:53:34 GMT