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 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 be null
      • 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 be null
      • 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 be null
      • setLeft

        void setLeft​(org.eclipse.compare.ITypedElement left)
        Sets the left typed element.
        Parameters:
        left - the left typed element to set, cannot be null
      • setRight

        void setRight​(org.eclipse.compare.ITypedElement right)
        Sets the right typed element.
        Parameters:
        right - the right typed element to set, cannot be null
      • setAncestor

        void setAncestor​(org.eclipse.compare.ITypedElement ancestor)
        Sets the ancestor typed element.
        Parameters:
        ancestor - the ancestor typed element to set, cannot be null
      • 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 be null
      • 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 be null