Class Index | File Index

Classes


Class orion.DiffTreeNavigator.DiffTreeNavigator

A tree model based iterator component.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.ui/web/orion/compare/diffTreeNavigator.js>.

Class Summary
Constructor Attributes Constructor Name and Description
 
orion.DiffTreeNavigator.DiffTreeNavigator(firstLevelChildren, options)
Creates a new diff tree model.
Method Summary
Method Attributes Method Name and Description
 
 
generateBlockDiffAnnotations(wrapperIndex, diffBlockIndex)
 
generatePairBlockAnnotations(parentObj, diffBlockIndex)
 
generatePairWordAnnotations(parentObj, diffBlockIndex, jsDiffAdapter)
 
generateWordDiffAnnotations(wrapperIndex, diffBlockAnnotaionArray, startIndex, charDiffMap, startColumn, endColumn)
 
getAnnoModelList(wrapperIndex, wordOrBlock, annoType)
 
 
 
 
getFeeder(left)
 
 
gotoBlock(blockIndex, changeIndex)
 
gotoChange(caretPosition, textView)
 
gotoChangeUsingIndex(changeIndex)
Goes to the change at the specified changeIndex in the current file.
 
gotoDiff(caretPosition, textView)
 
initAll(charOrWordDiff, oldEditor, newEditor, oldDiffBlockFeeder, newDiffBlockFeeder, overviewRuler, curveRuler)
 
initMapper(mapper)
 
iterateOnBlock(forward, roundTrip)
 
iterateOnChange(forward)
 
 
 
 
 
 
renderAnnotations(ignoreWhitespace)
 
replaceAllAnnotations(removeExisting, wrapperIndex, wordOrBlock, normal, replacingList)
 
replaceDiffAnnotations(editor, overallAnnotations, type, removeExisting)
 
updateCurrentAnnotation(moveSelection, textView)
Class Detail
orion.DiffTreeNavigator.DiffTreeNavigator(firstLevelChildren, options)
Creates a new diff tree model. A diff tree model represents a tree structure of diffs. The top level children represents all the diff blocks based on lines, where each diff block contains a list of word level diffs.
Parameters:
{list} firstLevelChildren
The first level children of the tree root, each item has children and parent property recursively.
{Object} options
The options object which provides iterate patterns and all call back functions when iteration happens.
Method Detail
destroy()

generateBlockDiffAnnotations(wrapperIndex, diffBlockIndex)
Parameters:
wrapperIndex
diffBlockIndex

generatePairBlockAnnotations(parentObj, diffBlockIndex)
Parameters:
parentObj
diffBlockIndex

generatePairWordAnnotations(parentObj, diffBlockIndex, jsDiffAdapter)
Parameters:
parentObj
diffBlockIndex
jsDiffAdapter

generateWordDiffAnnotations(wrapperIndex, diffBlockAnnotaionArray, startIndex, charDiffMap, startColumn, endColumn)
Parameters:
wrapperIndex
diffBlockAnnotaionArray
startIndex
charDiffMap
startColumn
endColumn

getAnnoModelList(wrapperIndex, wordOrBlock, annoType)
Parameters:
wrapperIndex
wordOrBlock
annoType

getCurrentBlockIndex()

getCurrentMapperIndex()

getCurrentPosition()

getFeeder(left)
Parameters:
left

getMapper()

gotoBlock(blockIndex, changeIndex)
Parameters:
blockIndex
changeIndex

gotoChange(caretPosition, textView)
Parameters:
caretPosition
textView

gotoChangeUsingIndex(changeIndex)
Goes to the change at the specified changeIndex in the current file.
Parameters:
changeIndex

gotoDiff(caretPosition, textView)
Parameters:
caretPosition
textView

initAll(charOrWordDiff, oldEditor, newEditor, oldDiffBlockFeeder, newDiffBlockFeeder, overviewRuler, curveRuler)
Parameters:
charOrWordDiff
oldEditor
newEditor
oldDiffBlockFeeder
newDiffBlockFeeder
overviewRuler
curveRuler

initMapper(mapper)
Parameters:
mapper

iterateOnBlock(forward, roundTrip)
Parameters:
forward
roundTrip

iterateOnChange(forward)
Parameters:
forward

matchPositionFromOverview(lineIndex)
Parameters:
lineIndex

nextChange()

nextDiff()

prevChange()

prevDiff()

renderAnnotations(ignoreWhitespace)
Parameters:
ignoreWhitespace

replaceAllAnnotations(removeExisting, wrapperIndex, wordOrBlock, normal, replacingList)
Parameters:
removeExisting
wrapperIndex
wordOrBlock
normal
replacingList

replaceDiffAnnotations(editor, overallAnnotations, type, removeExisting)
Parameters:
editor
overallAnnotations
type
removeExisting

updateCurrentAnnotation(moveSelection, textView)
Parameters:
moveSelection
textView

Documentation generated by JsDoc Toolkit 2.4.0 on Fri Mar 17 2017 08:51:35 GMT-0400 (EDT)