Class AbstractSynchronizationLabelProvider

    • Constructor Detail

      • AbstractSynchronizationLabelProvider

        public AbstractSynchronizationLabelProvider()
    • Method Detail

      • getDiff

        protected IDiff getDiff​(Object element)
        Description copied from class: AbstractSynchronizeLabelProvider
        Return the sync kind of the given element. This is used to determine how to decorate the image and label of the element. The sync kind is described in the SyncInfo class. A null is returned by default.
        Overrides:
        getDiff in class AbstractSynchronizeLabelProvider
        Parameters:
        element - the element being tested
        Returns:
        the sync kind of the given element
      • getDirection

        protected int getDirection​(Object element)
        Returns the direction of the difference of the specified refactoring history object.

        The result of this method is used to compose an icon which reflects the direction of the difference between the two or three versions of the refactoring history object.

        Parameters:
        element - the refactoring history object
        Returns:
        the direction of the difference
        See Also:
        IThreeWayDiff.getDirection()
      • getKind

        protected int getKind​(Object element)
        Returns the kind of difference between the three sides ancestor, left and right of the specified refactoring history object.

        The result of this method is used to compose an icon which reflects the kind of difference between the two or three versions of the refactoring history object.

        Parameters:
        element - the refactoring history object
        Returns:
        the kind of difference
        See Also:
        IDiff.getKind()