Class RightLabelProvider

java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.jface.viewers.BaseLabelProvider
org.eclipse.jface.viewers.LabelProvider
com._1c.g5.v8.dt.rights.ui.providers.RightLabelProvider
All Implemented Interfaces:
IBaseLabelProvider, ILabelProvider

public class RightLabelProvider extends LabelProvider
Right name and image provider.
  • Method Details

    • getInstance

      public static RightLabelProvider getInstance()
      Returns the shared right label provider instance.
      Returns:
      the shared right label provider instance, never null
    • getText

      public String getText(Object element)
      Specified by:
      getText in interface ILabelProvider
      Overrides:
      getText in class LabelProvider
    • getImage

      public org.eclipse.swt.graphics.Image getImage(Object element)
      Specified by:
      getImage in interface ILabelProvider
      Overrides:
      getImage in class LabelProvider
    • getSeparatedText

      public String getSeparatedText(Right right)
      Returns the separated by lines text presentation of the right.
      Returns:
      the separated by lines text presentation of the right, never null
    • getSeparatedText

      public String getSeparatedText(String rightName, String separator)
      Returns the separated by lines text presentation of the right based of right's name.
      Parameters:
      rightName - the right's name
      separator - the separator
      Returns:
      the separated by lines text presentation of the right, never null