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
- Direct Known Subclasses:
CommandInterfaceLabelProvider
Commands group label provider.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final IEditingLanguageManager
the editing language providerprotected final IV8Project
the V8 project -
Constructor Summary
ConstructorsConstructorDescriptionCommandGroupLabelProvider
(IEditingLanguageManager editingLanguageProvider, IV8Project v8project) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected 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
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 Details
-
editingLanguageProvider
the editing language provider -
v8project
the V8 project
-
-
Constructor Details
-
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 Details
-
getImage
- Specified by:
getImage
in interfaceILabelProvider
- Overrides:
getImage
in classColumnLabelProvider
-
getText
- Specified by:
getText
in interfaceILabelProvider
- Overrides:
getText
in classColumnLabelProvider
-
getCommandGroupRepresentation
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
Gets the given command group image.- Parameters:
commandGroup
- the given command group, can not benull
- Returns:
- the command group image, can not be
null
-