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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.swt.graphics.ImagegetImage(Object element)static RightLabelProvidergetInstance()Returns the shared right label provider instance.StringgetSeparatedText(Right right)Returns the separated by lines text presentation of the right.StringgetSeparatedText(String rightName, String separator)Returns the separated by lines text presentation of the right based of right's name.StringgetText(Object element)-
Methods inherited from class org.eclipse.jface.viewers.LabelProvider
createImageProvider, createTextImageProvider, createTextProvider
-
Methods inherited from class org.eclipse.jface.viewers.BaseLabelProvider
addListener, dispose, fireLabelProviderChanged, isLabelProperty, removeListener
-
Methods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.jface.viewers.IBaseLabelProvider
addListener, dispose, isLabelProperty, removeListener
-
-
-
-
Method Detail
-
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:
getTextin interfaceILabelProvider- Overrides:
getTextin classLabelProvider
-
getImage
public org.eclipse.swt.graphics.Image getImage(Object element)
- Specified by:
getImagein interfaceILabelProvider- Overrides:
getImagein classLabelProvider
-
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 nameseparator- the separator- Returns:
- the separated by lines text presentation of the right, never
null
-
-