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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
fireChange()
Fires a merge input change event.String
getAbsentTypedElementMessage()
Returns the message to show in UI if the typed element is absent.String
getCurrentViewerDescriptorId()
Returns current viewer descriptor id.org.eclipse.jface.text.codemining.ICodeMiningProvider
getLeftCodeMiningProvider()
Returns the left code mining provider.List<MergeResultDifference>
getMergeConflicts()
Returns the merge conflicts.org.eclipse.compare.ITypedElement
getMergeResult()
Returns the merge result element of this input.org.eclipse.jface.text.codemining.ICodeMiningProvider
getRightCodeMiningProvider()
Returns the right code mining provider.void
setAncestor(org.eclipse.compare.ITypedElement ancestor)
Sets the ancestor typed element.void
setCurrentViewerDescriptorId(String id)
Sets current viewer descriptor id.void
setLeft(org.eclipse.compare.ITypedElement left)
Sets the left typed element.void
setLeftCodeMiningProvider(org.eclipse.jface.text.codemining.ICodeMiningProvider codeMiningProvider)
Sets the left code mining provider.void
setMergeConflicts(List<MergeResultDifference> mergeConflicts)
Sets the merge conflicts.void
setMergeResult(org.eclipse.compare.ITypedElement mergeResult)
Sets the merge result element of this input.void
setRight(org.eclipse.compare.ITypedElement right)
Sets the right typed element.void
setRightCodeMiningProvider(org.eclipse.jface.text.codemining.ICodeMiningProvider codeMiningProvider)
Sets the right code mining provider.
-
-
-
Method Detail
-
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
null
for three-way conflict merge
-
setMergeConflicts
void setMergeConflicts(List<MergeResultDifference> mergeConflicts)
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
void setCurrentViewerDescriptorId(String id)
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
-
-