Class ThreeSideTextMergeInput

    • 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 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 Detail

      • 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
      • 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
      • 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
      • 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