Class OslcLabelProvider

All Implemented Interfaces:
IBaseLabelProvider, ILabelProvider

public class OslcLabelProvider extends LabelProvider
A label provider to display OSLC resources.
Since:
1.1.0
  • Constructor Details

    • OslcLabelProvider

      public OslcLabelProvider()
  • Method Details

    • getText

      public String getText(Object element)
      Returns the title of the specified OSLC resource, if any. The title is unescaped, so that HTML special characters are correctly displayed in JFace user interfaces (e.g. '>' is transformed to '>').
      Specified by:
      getText in interface ILabelProvider
      Overrides:
      getText in class LabelProvider
      See Also:
    • getTitle

      protected String getTitle(Object element)
      Returns the title of the specified OSLC resource, if any.
      Parameters:
      element - an element which may be an OSLC resource.
      Returns:
      the title of the OSLC resource, null if none.