Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse Plug-in Developer Guide
Previous Page Home Next Page


Eclipse Platform
Release 3.5

Package org.eclipse.compare.rangedifferencer

Provides support for finding the differences between two or three sequences of comparable entities.

See:
           Description

Interface Summary
IRangeComparator For breaking an object to compare into a sequence of comparable entities.
 

Class Summary
AbstractRangeDifferenceFactory  
RangeDifference Description of a change between two or three ranges of comparable entities.
RangeDifferencer A RangeDifferencer finds the differences between two or three IRangeComparators.
 

Package org.eclipse.compare.rangedifferencer Description

Provides support for finding the differences between two or three sequences of comparable entities.

Package Specification

The class RangeDifferencer finds longest sequences of matching and non-matching comparable entities.

Clients must supply the input to the differencer as an implementation of the IRangeComparator interface. An IRangeComparator breaks the input data into a sequence of entities and provides a method for comparing one entity with the entity in another IRangeComparator.

For example, to compare two text documents and find longest common sequences of matching and non-matching lines, the implementation of IRangeComparator must break the document into lines and provide a method for testing whether two lines are considered equal. See org.eclipse.compare.internal.DocLineComparator for how this can be done.

The differencer returns the differences among these sequences as an array of RangeDifference objects. Every single RangeDifference describes the kind of difference (no change, change, addition, deletion) and the corresponding ranges of the underlying comparable entities in the two or three inputs.


Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire