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 IEditingLanguageManagerthe editing language providerprotected final IV8Projectthe V8 project -
Constructor Summary
ConstructorsConstructorDescriptionCommandGroupLabelProvider(IEditingLanguageManager editingLanguageProvider, IV8Project v8project) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected 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.ImageMethods inherited from class org.eclipse.jface.viewers.ColumnLabelProvider
createImageProvider, createTextImageProvider, createTextProvider, getBackground, getFont, getForeground, updateMethods inherited from class org.eclipse.jface.viewers.CellLabelProvider
dispose, getToolTipBackgroundColor, getToolTipDisplayDelayTime, getToolTipFont, getToolTipForegroundColor, getToolTipImage, getToolTipShift, getToolTipStyle, getToolTipText, getToolTipTimeDisplayed, initialize, useNativeToolTipMethods inherited from class org.eclipse.jface.viewers.BaseLabelProvider
addListener, dispose, fireLabelProviderChanged, isLabelProperty, removeListenerMethods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObjectMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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 benullv8project- the V8 project, cannot benull
-
-
Method Details
-
getImage
- Specified by:
getImagein interfaceILabelProvider- Overrides:
getImagein classColumnLabelProvider
-
getText
- Specified by:
getTextin interfaceILabelProvider- Overrides:
getTextin 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 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
Gets the given command group image.- Parameters:
commandGroup- the given command group, can not benull- Returns:
- the command group image, can not be
null
-