Class orion.DiffTreeNavigator.DiffTreeNavigator
				
				
			
				A tree model based iterator component.
				
				
					
Defined in:  </shared/eclipse/e4/orion/I201404012230/bundles/org.eclipse.orion.client.ui/web/orion/compare/diffTreeNavigator.js>.
				
			
| Constructor Attributes | Constructor Name and Description | 
|---|---|
| 
							 
								orion.DiffTreeNavigator.DiffTreeNavigator(firstLevelChildren, options)
							 
							Creates a new diff tree model. 
						 | 
					
| Method Attributes | Method Name and Description | 
|---|---|
| 
								 destroy()
								 
								
							 | 
						|
| 
								 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)
								 
								
							 | 
						|
| 
								 gotoDiff(caretPosition, textView)
								 
								
							 | 
						|
| 
								 initAll(charOrWordDiff, oldEditor, newEditor, oldDiffBlockFeeder, newDiffBlockFeeder, overviewRuler, curveRuler)
								 
								
							 | 
						|
| 
								 initMapper(mapper)
								 
								
							 | 
						|
| 
								 iterateOnBlock(forward, roundTrip)
								 
								
							 | 
						|
| 
								 iterateOnChange(forward)
								 
								
							 | 
						|
| 
								 matchPositionFromOverview(lineIndex)
								 
								
							 | 
						|
| 
								 nextDiff()
								 
								
							 | 
						|
| 
								 prevDiff()
								 
								
							 | 
						|
| 
								 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
 
					
					
					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()
					
					
					
					
					
					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