Package com._1c.g5.v8.dt.md.ui.providers
Class CommandGroupLabelProvider
- java.lang.Object
-
- org.eclipse.core.commands.common.EventManager
-
- org.eclipse.jface.viewers.BaseLabelProvider
-
- org.eclipse.jface.viewers.CellLabelProvider
-
- org.eclipse.jface.viewers.ColumnLabelProvider
-
- com._1c.g5.v8.dt.md.ui.providers.CommandGroupLabelProvider
-
- All Implemented Interfaces:
IBaseLabelProvider,IColorProvider,IFontProvider,ILabelProvider,IToolTipProvider
public class CommandGroupLabelProvider extends ColumnLabelProvider
Commands group label provider.
-
-
Field Summary
Fields Modifier and Type Field Description protected IEditingLanguageManagereditingLanguageProviderthe editing language providerprotected IV8Projectv8projectthe V8 project
-
Constructor Summary
Constructors Constructor Description CommandGroupLabelProvider(IEditingLanguageManager editingLanguageProvider, IV8Project v8project)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetCommandGroupRepresentation(CommandGroup commandGroup)Gets the command group text representation.protected StringgetCommandGroupRepresentationBasename(CommandGroup commandGroup, String languageCode, ScriptVariant scriptVariant)Gets the command group base name.protected org.eclipse.swt.graphics.ImagegetGroupImage(CommandGroup commandGroup)Gets the given command group image.org.eclipse.swt.graphics.ImagegetImage(Object element)StringgetText(Object element)-
Methods inherited from class org.eclipse.jface.viewers.ColumnLabelProvider
createImageProvider, createTextImageProvider, createTextProvider, getBackground, getFont, getForeground, update
-
Methods inherited from class org.eclipse.jface.viewers.CellLabelProvider
dispose, getToolTipBackgroundColor, getToolTipDisplayDelayTime, getToolTipFont, getToolTipForegroundColor, getToolTipImage, getToolTipShift, getToolTipStyle, getToolTipText, getToolTipTimeDisplayed, initialize, useNativeToolTip
-
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
-
-
-
-
Field Detail
-
editingLanguageProvider
protected final IEditingLanguageManager editingLanguageProvider
the editing language provider
-
v8project
protected final IV8Project v8project
the V8 project
-
-
Constructor Detail
-
CommandGroupLabelProvider
public CommandGroupLabelProvider(IEditingLanguageManager editingLanguageProvider, IV8Project v8project)
Creates a new instance.- Parameters:
editingLanguageProvider- the editing language provider, can not benullv8project- the V8 project, cannot benull
-
-
Method Detail
-
getImage
public org.eclipse.swt.graphics.Image getImage(Object element)
- Specified by:
getImagein interfaceILabelProvider- Overrides:
getImagein classColumnLabelProvider
-
getText
public String getText(Object element)
- Specified by:
getTextin interfaceILabelProvider- Overrides:
getTextin classColumnLabelProvider
-
getCommandGroupRepresentation
protected String getCommandGroupRepresentation(CommandGroup commandGroup)
Gets the command group text representation. The text representation consists of the category and base name of the given command group.- Parameters:
commandGroup- the given command group, can not benull- Returns:
- the command group text representation, can not be
null
-
getCommandGroupRepresentationBasename
protected String getCommandGroupRepresentationBasename(CommandGroup commandGroup, String languageCode, ScriptVariant scriptVariant)
Gets the command group base name.- Parameters:
commandGroup- the given command group, can not benulllanguageCode- the language code of configuration editing language by project, may benullscriptVariant- the script variant, can not benull- Returns:
- the command group base name, can not be
null
-
getGroupImage
protected org.eclipse.swt.graphics.Image getGroupImage(CommandGroup commandGroup)
Gets the given command group image.- Parameters:
commandGroup- the given command group, can not benull- Returns:
- the command group image, can not be
null
-
-