Interface LabelProvider

  • All Known Implementing Classes:
    CustomLabelAwareLabelProvider

    public interface LabelProvider
    The LabelProvider provides a label for an object so you do not necessarily have to fall back to toString().
    Since:
    2.0.0
    Author:
    Oliver Libutzki <[email protected]>
    • Method Summary

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default java.lang.String getLabel​(java.lang.Object object)
      Returns the label of the given object.
    • Method Detail

      • getLabel

        default java.lang.String getLabel​(java.lang.Object object)
        Returns the label of the given object. The default implementation falls back to toString().
        Parameters:
        object - The object which's label should be returned
        Returns:
        the object's label
        Since:
        2.0.0