Interface IMergeViewerItem

    • Field Detail

      • IS_INSERTION_POINT

        static final com.google.common.base.Predicate<IMergeViewerItem> IS_INSERTION_POINT
        A predicate to know if the given Item is an insertion point.
    • Method Detail

      • getDiff

        Diff getDiff()
        The Diff associated with the Item.
        Returns:
        the Diff associated with the Item.
      • getLeft

        Object getLeft()
        Returns the left side value of the Diff.
        Returns:
        the left side value of the Diff.
      • getRight

        Object getRight()
        Returns the right side value of the Diff.
        Returns:
        the right side value of the Diff.
      • getAncestor

        Object getAncestor()
        Returns the ancestor side value of the Diff.
        Returns:
        the ancestor side value of the Diff.
      • getSideValue

        Object getSideValue​(IMergeViewer.MergeViewerSide side)
        Returns the appropriate value according to the given side.
        Parameters:
        side - the given side.
        Returns:
        the appropriate value according to the given side.
      • isInsertionPoint

        boolean isInsertionPoint()
        Returns true if the Item is an insertion point, false otherwise.
        Returns:
        true if the Item is an insertion point, false otherwise.
      • getParent

        IMergeViewerItem.Container getParent()
        Returns the parent of this element. If the object is the root of a hierarchy null is returned.
        Returns:
        the parent of this element, or null if the element has no parent