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 of IThreeSideTextMergeInput.
  • 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 be null
      right - the right typed element, can not be null
      ancestor - the ancestor typed element, can not be null
      mergeResult - the initial merge result typed element, can not be null
      absentTypedElementMessage - the absent typed element message, can not be null
  • Method Details

    • getLeft

      public org.eclipse.compare.ITypedElement getLeft()
      Specified by:
      getLeft in interface org.eclipse.compare.structuremergeviewer.ICompareInput
    • getRight

      public org.eclipse.compare.ITypedElement getRight()
      Specified by:
      getRight in interface org.eclipse.compare.structuremergeviewer.ICompareInput
    • getAncestor

      public org.eclipse.compare.ITypedElement getAncestor()
      Specified by:
      getAncestor in interface org.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 interface IThreeSideTextMergeInput
      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 interface IThreeSideTextMergeInput
      Parameters:
      mergeResult - the merge result element of this input, can be null
    • 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 interface IThreeSideTextMergeInput
    • getName

      public String getName()
      Specified by:
      getName in interface org.eclipse.compare.structuremergeviewer.ICompareInput
    • getImage

      public org.eclipse.swt.graphics.Image getImage()
      Specified by:
      getImage in interface org.eclipse.compare.structuremergeviewer.ICompareInput
    • getKind

      public int getKind()
      Specified by:
      getKind in interface org.eclipse.compare.structuremergeviewer.ICompareInput
    • addCompareInputChangeListener

      public void addCompareInputChangeListener(org.eclipse.compare.structuremergeviewer.ICompareInputChangeListener listener)
      Specified by:
      addCompareInputChangeListener in interface org.eclipse.compare.structuremergeviewer.ICompareInput
    • removeCompareInputChangeListener

      public void removeCompareInputChangeListener(org.eclipse.compare.structuremergeviewer.ICompareInputChangeListener listener)
      Specified by:
      removeCompareInputChangeListener in interface org.eclipse.compare.structuremergeviewer.ICompareInput
    • copy

      public void copy(boolean leftToRight)
      Specified by:
      copy in interface org.eclipse.compare.structuremergeviewer.ICompareInput
    • getMergeConflicts

      public List<MergeResultDifference> getMergeConflicts()
      Description copied from interface: IThreeSideTextMergeInput
      Returns the merge conflicts.
      Specified by:
      getMergeConflicts in interface IThreeSideTextMergeInput
      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 interface IThreeSideTextMergeInput
      Parameters:
      conflicts - the merge conflicts, cannot be null
    • getCurrentViewerDescriptorId

      public String getCurrentViewerDescriptorId()
      Description copied from interface: IThreeSideTextMergeInput
      Returns current viewer descriptor id.
      Specified by:
      getCurrentViewerDescriptorId in interface IThreeSideTextMergeInput
      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 interface IThreeSideTextMergeInput
      Parameters:
      id - the current viewer descriptor id, can be null
    • setLeft

      public void setLeft(org.eclipse.compare.ITypedElement left)
      Description copied from interface: IThreeSideTextMergeInput
      Sets the left typed element.
      Specified by:
      setLeft in interface IThreeSideTextMergeInput
      Parameters:
      left - the left typed element to set, cannot be null
    • setRight

      public void setRight(org.eclipse.compare.ITypedElement right)
      Description copied from interface: IThreeSideTextMergeInput
      Sets the right typed element.
      Specified by:
      setRight in interface IThreeSideTextMergeInput
      Parameters:
      right - the right typed element to set, cannot be null
    • setAncestor

      public void setAncestor(org.eclipse.compare.ITypedElement ancestor)
      Description copied from interface: IThreeSideTextMergeInput
      Sets the ancestor typed element.
      Specified by:
      setAncestor in interface IThreeSideTextMergeInput
      Parameters:
      ancestor - the ancestor typed element to set, cannot be null
    • 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 interface IThreeSideTextMergeInput
      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 interface IThreeSideTextMergeInput
      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 interface IThreeSideTextMergeInput
      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 interface IThreeSideTextMergeInput
      Parameters:
      codeMiningProvider - the left code mining provider to set, may be null
    • 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 interface IThreeSideTextMergeInput
      Parameters:
      codeMiningProvider - the right code mining provider to set, may be null