Class ThreeSideTextMergeInput
java.lang.Object
com._1c.g5.v8.dt.compare.ui.mergeviewer.ThreeSideTextMergeInput
- All Implemented Interfaces:
IThreeSideTextMergeInput
,org.eclipse.compare.structuremergeviewer.ICompareInput
The default implementtaion of
IThreeSideTextMergeInput
.-
Constructor Summary
ConstructorsConstructorDescriptionThreeSideTextMergeInput
(org.eclipse.compare.ITypedElement left, org.eclipse.compare.ITypedElement right, org.eclipse.compare.ITypedElement ancestor, org.eclipse.compare.ITypedElement mergeResult, String absentTypedElementMessage) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCompareInputChangeListener
(org.eclipse.compare.structuremergeviewer.ICompareInputChangeListener listener) void
copy
(boolean leftToRight) void
Fires a merge input change event.Returns the message to show in UI if the typed element is absent.org.eclipse.compare.ITypedElement
Returns current viewer descriptor id.org.eclipse.swt.graphics.Image
getImage()
int
getKind()
org.eclipse.compare.ITypedElement
getLeft()
org.eclipse.jface.text.codemining.ICodeMiningProvider
Returns the left code mining provider.Returns the merge conflicts.org.eclipse.compare.ITypedElement
Returns the merge result element of this input.getName()
org.eclipse.compare.ITypedElement
getRight()
org.eclipse.jface.text.codemining.ICodeMiningProvider
Returns the right code mining provider.void
removeCompareInputChangeListener
(org.eclipse.compare.structuremergeviewer.ICompareInputChangeListener listener) void
setAncestor
(org.eclipse.compare.ITypedElement ancestor) Sets the ancestor typed element.void
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> conflicts) 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.
-
Constructor Details
-
ThreeSideTextMergeInput
public ThreeSideTextMergeInput(org.eclipse.compare.ITypedElement left, org.eclipse.compare.ITypedElement right, org.eclipse.compare.ITypedElement ancestor, org.eclipse.compare.ITypedElement mergeResult, String absentTypedElementMessage) Constructor.- Parameters:
left
- the left typed element, can not benull
right
- the right typed element, can not benull
ancestor
- the ancestor typed element, can not benull
mergeResult
- the initial merge result typed element, can not benull
absentTypedElementMessage
- the absent typed element message, can not benull
-
-
Method Details
-
getLeft
public org.eclipse.compare.ITypedElement getLeft()- Specified by:
getLeft
in interfaceorg.eclipse.compare.structuremergeviewer.ICompareInput
-
getRight
public org.eclipse.compare.ITypedElement getRight()- Specified by:
getRight
in interfaceorg.eclipse.compare.structuremergeviewer.ICompareInput
-
getAncestor
public org.eclipse.compare.ITypedElement getAncestor()- Specified by:
getAncestor
in interfaceorg.eclipse.compare.structuremergeviewer.ICompareInput
-
getMergeResult
public org.eclipse.compare.ITypedElement getMergeResult()Description copied from interface:IThreeSideTextMergeInput
Returns the merge result element of this input.- Specified by:
getMergeResult
in interfaceIThreeSideTextMergeInput
- Returns:
- the merge result element of this input, can be
null
-
setMergeResult
public void setMergeResult(org.eclipse.compare.ITypedElement mergeResult) Description copied from interface:IThreeSideTextMergeInput
Sets the merge result element of this input.- Specified by:
setMergeResult
in interfaceIThreeSideTextMergeInput
- Parameters:
mergeResult
- the merge result element of this input, can benull
-
fireChange
public void fireChange()Description copied from interface:IThreeSideTextMergeInput
Fires a merge input change event. This method must be called from the UI thread.- Specified by:
fireChange
in interfaceIThreeSideTextMergeInput
-
getName
- Specified by:
getName
in interfaceorg.eclipse.compare.structuremergeviewer.ICompareInput
-
getImage
public org.eclipse.swt.graphics.Image getImage()- Specified by:
getImage
in interfaceorg.eclipse.compare.structuremergeviewer.ICompareInput
-
getKind
public int getKind()- Specified by:
getKind
in interfaceorg.eclipse.compare.structuremergeviewer.ICompareInput
-
addCompareInputChangeListener
public void addCompareInputChangeListener(org.eclipse.compare.structuremergeviewer.ICompareInputChangeListener listener) - Specified by:
addCompareInputChangeListener
in interfaceorg.eclipse.compare.structuremergeviewer.ICompareInput
-
removeCompareInputChangeListener
public void removeCompareInputChangeListener(org.eclipse.compare.structuremergeviewer.ICompareInputChangeListener listener) - Specified by:
removeCompareInputChangeListener
in interfaceorg.eclipse.compare.structuremergeviewer.ICompareInput
-
copy
public void copy(boolean leftToRight) - Specified by:
copy
in interfaceorg.eclipse.compare.structuremergeviewer.ICompareInput
-
getMergeConflicts
Description copied from interface:IThreeSideTextMergeInput
Returns the merge conflicts.- Specified by:
getMergeConflicts
in interfaceIThreeSideTextMergeInput
- Returns:
- the merge conflicts, cannot be
null
for three-way conflict merge
-
setMergeConflicts
Description copied from interface:IThreeSideTextMergeInput
Sets the merge conflicts.- Specified by:
setMergeConflicts
in interfaceIThreeSideTextMergeInput
- Parameters:
conflicts
- the merge conflicts, cannot benull
-
getCurrentViewerDescriptorId
Description copied from interface:IThreeSideTextMergeInput
Returns current viewer descriptor id.- Specified by:
getCurrentViewerDescriptorId
in interfaceIThreeSideTextMergeInput
- Returns:
- the current viewer descriptor id, can be
null
-
setCurrentViewerDescriptorId
Description copied from interface:IThreeSideTextMergeInput
Sets current viewer descriptor id.- Specified by:
setCurrentViewerDescriptorId
in interfaceIThreeSideTextMergeInput
- Parameters:
id
- the current viewer descriptor id, can benull
-
setLeft
public void setLeft(org.eclipse.compare.ITypedElement left) Description copied from interface:IThreeSideTextMergeInput
Sets the left typed element.- Specified by:
setLeft
in interfaceIThreeSideTextMergeInput
- Parameters:
left
- the left typed element to set, cannot benull
-
setRight
public void setRight(org.eclipse.compare.ITypedElement right) Description copied from interface:IThreeSideTextMergeInput
Sets the right typed element.- Specified by:
setRight
in interfaceIThreeSideTextMergeInput
- Parameters:
right
- the right typed element to set, cannot benull
-
setAncestor
public void setAncestor(org.eclipse.compare.ITypedElement ancestor) Description copied from interface:IThreeSideTextMergeInput
Sets the ancestor typed element.- Specified by:
setAncestor
in interfaceIThreeSideTextMergeInput
- Parameters:
ancestor
- the ancestor typed element to set, cannot benull
-
getAbsentTypedElementMessage
Description copied from interface:IThreeSideTextMergeInput
Returns the message to show in UI if the typed element is absent.- Specified by:
getAbsentTypedElementMessage
in interfaceIThreeSideTextMergeInput
- Returns:
- the message of the absent typed element, cannot be
null
-
getLeftCodeMiningProvider
public org.eclipse.jface.text.codemining.ICodeMiningProvider getLeftCodeMiningProvider()Description copied from interface:IThreeSideTextMergeInput
Returns the left code mining provider.- Specified by:
getLeftCodeMiningProvider
in interfaceIThreeSideTextMergeInput
- Returns:
- the left code mining provider, may be
null
-
getRightCodeMiningProvider
public org.eclipse.jface.text.codemining.ICodeMiningProvider getRightCodeMiningProvider()Description copied from interface:IThreeSideTextMergeInput
Returns the right code mining provider.- Specified by:
getRightCodeMiningProvider
in interfaceIThreeSideTextMergeInput
- Returns:
- the right code mining provider, may be
null
-
setLeftCodeMiningProvider
public void setLeftCodeMiningProvider(org.eclipse.jface.text.codemining.ICodeMiningProvider codeMiningProvider) Description copied from interface:IThreeSideTextMergeInput
Sets the left code mining provider.- Specified by:
setLeftCodeMiningProvider
in interfaceIThreeSideTextMergeInput
- Parameters:
codeMiningProvider
- the left code mining provider to set, may benull
-
setRightCodeMiningProvider
public void setRightCodeMiningProvider(org.eclipse.jface.text.codemining.ICodeMiningProvider codeMiningProvider) Description copied from interface:IThreeSideTextMergeInput
Sets the right code mining provider.- Specified by:
setRightCodeMiningProvider
in interfaceIThreeSideTextMergeInput
- Parameters:
codeMiningProvider
- the right code mining provider to set, may benull
-