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 IEditingLanguageManager
editingLanguageProvider
the editing language providerprotected IV8Project
v8project
the 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 String
getCommandGroupRepresentation(CommandGroup commandGroup)
Gets the command group text representation.protected String
getCommandGroupRepresentationBasename(CommandGroup commandGroup, String languageCode, ScriptVariant scriptVariant)
Gets the command group base name.protected org.eclipse.swt.graphics.Image
getGroupImage(CommandGroup commandGroup)
Gets the given command group image.org.eclipse.swt.graphics.Image
getImage(Object element)
String
getText(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 benull
v8project
- the V8 project, cannot benull
-
-
Method Detail
-
getImage
public org.eclipse.swt.graphics.Image getImage(Object element)
- Specified by:
getImage
in interfaceILabelProvider
- Overrides:
getImage
in classColumnLabelProvider
-
getText
public String getText(Object element)
- Specified by:
getText
in interfaceILabelProvider
- Overrides:
getText
in 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 benull
languageCode
- the language code of configuration editing language by project, may benull
scriptVariant
- 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
-
-