Interface IThreeSideTextMergeInput
- All Superinterfaces:
 org.eclipse.compare.structuremergeviewer.ICompareInput
- All Known Implementing Classes:
 ThreeSideTextMergeInput
public interface IThreeSideTextMergeInput
extends org.eclipse.compare.structuremergeviewer.ICompareInput
Interface for objects used as input to a two-way or three-way for the three side text merge viewer.
- 
Method Summary
Modifier and TypeMethodDescriptionvoidFires a merge input change event.Returns the message to show in UI if the typed element is absent.Returns current viewer descriptor id.org.eclipse.jface.text.codemining.ICodeMiningProviderReturns the left code mining provider.Returns the merge conflicts.org.eclipse.compare.ITypedElementReturns the merge result element of this input.org.eclipse.jface.text.codemining.ICodeMiningProviderReturns the right code mining provider.voidsetAncestor(org.eclipse.compare.ITypedElement ancestor) Sets the ancestor typed element.voidSets current viewer descriptor id.voidsetLeft(org.eclipse.compare.ITypedElement left) Sets the left typed element.voidsetLeftCodeMiningProvider(org.eclipse.jface.text.codemining.ICodeMiningProvider codeMiningProvider) Sets the left code mining provider.voidsetMergeConflicts(List<MergeResultDifference> mergeConflicts) Sets the merge conflicts.voidsetMergeResult(org.eclipse.compare.ITypedElement mergeResult) Sets the merge result element of this input.voidsetRight(org.eclipse.compare.ITypedElement right) Sets the right typed element.voidsetRightCodeMiningProvider(org.eclipse.jface.text.codemining.ICodeMiningProvider codeMiningProvider) Sets the right code mining provider.Methods inherited from interface org.eclipse.compare.structuremergeviewer.ICompareInput
addCompareInputChangeListener, copy, getAncestor, getImage, getKind, getLeft, getName, getRight, removeCompareInputChangeListener 
- 
Method Details
- 
getMergeResult
org.eclipse.compare.ITypedElement getMergeResult()Returns the merge result element of this input.- Returns:
 - the merge result element of this input, can be 
null 
 - 
setMergeResult
void setMergeResult(org.eclipse.compare.ITypedElement mergeResult) Sets the merge result element of this input.- Parameters:
 mergeResult- the merge result element of this input, can benull
 - 
fireChange
void fireChange()Fires a merge input change event. This method must be called from the UI thread. - 
getMergeConflicts
List<MergeResultDifference> getMergeConflicts()Returns the merge conflicts.- Returns:
 - the merge conflicts, cannot be 
nullfor three-way conflict merge 
 - 
setMergeConflicts
Sets the merge conflicts.- Parameters:
 mergeConflicts- the merge conflicts, cannot benull
 - 
getCurrentViewerDescriptorId
String getCurrentViewerDescriptorId()Returns current viewer descriptor id.- Returns:
 - the current viewer descriptor id, can be 
null 
 - 
setCurrentViewerDescriptorId
Sets current viewer descriptor id.- Parameters:
 id- the current viewer descriptor id, can benull
 - 
setLeft
void setLeft(org.eclipse.compare.ITypedElement left) Sets the left typed element.- Parameters:
 left- the left typed element to set, cannot benull
 - 
setRight
void setRight(org.eclipse.compare.ITypedElement right) Sets the right typed element.- Parameters:
 right- the right typed element to set, cannot benull
 - 
setAncestor
void setAncestor(org.eclipse.compare.ITypedElement ancestor) Sets the ancestor typed element.- Parameters:
 ancestor- the ancestor typed element to set, cannot benull
 - 
getAbsentTypedElementMessage
String getAbsentTypedElementMessage()Returns the message to show in UI if the typed element is absent.- Returns:
 - the message of the absent typed element, cannot be 
null 
 - 
getLeftCodeMiningProvider
org.eclipse.jface.text.codemining.ICodeMiningProvider getLeftCodeMiningProvider()Returns the left code mining provider.- Returns:
 - the left code mining provider, may be 
null 
 - 
getRightCodeMiningProvider
org.eclipse.jface.text.codemining.ICodeMiningProvider getRightCodeMiningProvider()Returns the right code mining provider.- Returns:
 - the right code mining provider, may be 
null 
 - 
setLeftCodeMiningProvider
void setLeftCodeMiningProvider(org.eclipse.jface.text.codemining.ICodeMiningProvider codeMiningProvider) Sets the left code mining provider.- Parameters:
 codeMiningProvider- the left code mining provider to set, may benull
 - 
setRightCodeMiningProvider
void setRightCodeMiningProvider(org.eclipse.jface.text.codemining.ICodeMiningProvider codeMiningProvider) Sets the right code mining provider.- Parameters:
 codeMiningProvider- the right code mining provider to set, may benull
 
 -