upidiff.merge
Class Merge.MergeListener

java.lang.Object
  |
  +--upidiff.merge.Merge.MergeListener
All Implemented Interfaces:
DocumentListener, EventListener
Enclosing class:
Merge

class Merge.MergeListener
extends Object
implements DocumentListener

This class represents the DocumentListener for the MergeDocument After an editing in the document or a merged ChangeObject it calls the method to correct the offset.

Author:
Alexander Jung

Constructor Summary
(package private) Merge.MergeListener()
           
 
Method Summary
 void changedUpdate(DocumentEvent e)
          This method is called after an change in the document It's not interesting for the merge class.
 void insertUpdate(DocumentEvent e)
          This method is called after an insert in the document It fetches the inserted Text and passes it for analysing in the addEditedString method
 void removeUpdate(DocumentEvent e)
          This method is called after an remove in the document It passes the informantion to the removeEditedString method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Merge.MergeListener

Merge.MergeListener()
Method Detail

insertUpdate

public void insertUpdate(DocumentEvent e)
This method is called after an insert in the document It fetches the inserted Text and passes it for analysing in the addEditedString method

Specified by:
insertUpdate in interface DocumentListener
Parameters:
e - The occured DocumentEvent

removeUpdate

public void removeUpdate(DocumentEvent e)
This method is called after an remove in the document It passes the informantion to the removeEditedString method

Specified by:
removeUpdate in interface DocumentListener
Parameters:
e - The occured DocumentEvent

changedUpdate

public void changedUpdate(DocumentEvent e)
This method is called after an change in the document It's not interesting for the merge class.

Specified by:
changedUpdate in interface DocumentListener
Parameters:
e - The occure DocumentEvent