Prototype for BinaryDocument.ZoneOfInterest objects.
You cannot create zones of interest. To access them inside a document you can do this:
if (doc instanceof BinaryDocument)
{
for (var idxc=0;
idxc<doc.zones_of_interest.length; ++idxc)
{
var
my_conflict = doc.zones_of_interest[idxc];
// do whatever
you like!
}
}
none.
none.
ECMerge 2.4
BinaryDocument.ZoneOfInterest objects give you information
about which bytes of the contents are covered by a zone of
interest.
A zone of interest corresponds to a band of binary
texts which fits naturally in front of each other.
Property | Description |
conflicting | Boolean. True if the zone cannot be solved automatically. |
Logs the start position in the text of the left side for the first zone of interest:
log (current_frame.coordinator.document.zones_of_interest[0].bytes('left').start);
BinaryDocument object
function bytes ( side )
returns a
LinearRange
object
side. Side string. Side for which the range of lines is requested
BinaryDocument.ZoneOfInterest object.
ECMerge 2.4
Returns the range of bytes which are covered by the conflict, in a given side.
Navigates to the start of first zone of interest in the current view:
var doc = current_frame.coordinator.document;
var side = current_frame.coordinator.current_view.role;
var content = doc.contents[side];
current_frame.coordinator.current_view.navigate (
content.position_from_line
(doc.zones_of_interest[0].bytes(side).start) );
BinaryDocument.ZoneOfInterest object, LinearRange object