eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'Tools::TextDiff3Tool::MergeService':

Home

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

Class: MergeService (private in TextDiff3Tool

This class is only visible from within TextDiff3Tool.

Inheritance:

   Object
   |
   +--Tools::CodeViewService
      |
      +--Tools::TextDiff3Tool::MergeService

Package:
stx:libtool
Category:
Interface-Diff
Owner:
Tools::TextDiff3Tool

Class protocol:

accessing
o  label
Answers short label - for UI

queries
o  isUsefulFor: aCodeView
this filters useful services.
must be redefined to return true in subclasses (but each class must do it only
for itself - not for subclasses

testing
o  isAvailable
Should be installed explicitly"


Instance protocol:

accessing
o  infoAtLine: lineNr

o  sectionInterval

o  sectionInterval: anObject

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

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

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

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

change & update
o  dataChanged
Merge data has changes, update text view

o  dataHolderChanged

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

o  updateSelection: lineNr
For given number, update sectionInterval

drawing
o  drawLine: lineNo in: view atX: x y: yBaseline width: w height: hFont ascent: aFont from: startCol to: endColOrNil with: fg and: bg
Called by both gutterView and textView (well, not yet) to
allow services to draw custom things on text view.
Ask JV what the args means if unsure (I'm lazy to document
them, now it is just an experiment...)

event handling
o  buttonPress: button x: x y: y in: view
Handles an event in given view (a subview of codeView).
If the method returns true, it has eaten the event and it will not be processed
by the view.

o  linesModifiedFrom: start to: end

registering
o  registerIn: aCodeView
Installs myself in aCodeView



ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Fri, 14 May 2021 17:17:03 GMT