Class orion.diff.mapperItem
This object describes a mapper item representing a diff block, which is an array of 3 numbers.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.ui/web/orion/compare/jsdiffAdapter.js>.
Constructor Attributes | Constructor Name and Description |
---|---|
Field Attributes | Field Name and Description |
---|---|
mapperItem[0][0]
the number of lines in the new version of the string.
|
|
mapperItem[1][1]
the number of lines in the old version of the string.
|
|
mapperItem[2][2]
the number that indicates the state of the diff block:
|
Field Detail
{number}
mapperItem[0]
the number of lines in the new version of the string.
{number}
mapperItem[1]
the number of lines in the old version of the string.
{number}
mapperItem[2]
the number that indicates the state of the diff block:
- 0 - the diff block represents same lines on both side. mapperItem[0] and mapperItem[1] should be identical to represent the number of the same lines
- -1 - the diff block represents that the new version has deleted lines. mapperItem[0] should be 0 and mapperItem[1] should represent the line number that was deleted
- >0 - the diff block represents that the new version has added linies and the old version has deleted lines, if any. mapperItem[0] should be greater than 0 and mapperItem[1] should represent the line number that was deleted