Class ThreeSideTextMergeInput
- java.lang.Object
-
- com._1c.g5.v8.dt.compare.ui.mergeviewer.ThreeSideTextMergeInput
-
- All Implemented Interfaces:
IThreeSideTextMergeInput
,org.eclipse.compare.structuremergeviewer.ICompareInput
public class ThreeSideTextMergeInput extends Object implements IThreeSideTextMergeInput
The default implementtaion ofIThreeSideTextMergeInput
.
-
-
Constructor Summary
Constructors Constructor Description ThreeSideTextMergeInput(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCompareInputChangeListener(org.eclipse.compare.structuremergeviewer.ICompareInputChangeListener listener)
void
copy(boolean leftToRight)
void
fireChange()
Fires a merge input change event.String
getAbsentTypedElementMessage()
Returns the message to show in UI if the typed element is absent.org.eclipse.compare.ITypedElement
getAncestor()
String
getCurrentViewerDescriptorId()
Returns current viewer descriptor id.org.eclipse.swt.graphics.Image
getImage()
int
getKind()
org.eclipse.compare.ITypedElement
getLeft()
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.String
getName()
org.eclipse.compare.ITypedElement
getRight()
org.eclipse.jface.text.codemining.ICodeMiningProvider
getRightCodeMiningProvider()
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
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> 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 Detail
-
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 Detail
-
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
public String 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
public List<MergeResultDifference> 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
public void setMergeConflicts(List<MergeResultDifference> conflicts)
Description copied from interface:IThreeSideTextMergeInput
Sets the merge conflicts.- Specified by:
setMergeConflicts
in interfaceIThreeSideTextMergeInput
- Parameters:
conflicts
- the merge conflicts, cannot benull
-
getCurrentViewerDescriptorId
public String 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
public void setCurrentViewerDescriptorId(String id)
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
public String 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
-
-