Class CommandGroupLabelProvider

java.lang.Object
org.eclipse.core.commands.common.EventManager
All Implemented Interfaces:
IBaseLabelProvider, IColorProvider, IFontProvider, ILabelProvider, IToolTipProvider
Direct Known Subclasses:
CommandInterfaceLabelProvider

public class CommandGroupLabelProvider extends ColumnLabelProvider
Commands group label provider.
  • Field Details

    • editingLanguageProvider

      protected final IEditingLanguageManager editingLanguageProvider
      the editing language provider
    • v8project

      protected final IV8Project 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 be null
      v8project - the V8 project, cannot be null
  • Method Details

    • getImage

      public org.eclipse.swt.graphics.Image getImage(Object element)
      Specified by:
      getImage in interface ILabelProvider
      Overrides:
      getImage in class ColumnLabelProvider
    • getText

      public String getText(Object element)
      Specified by:
      getText in interface ILabelProvider
      Overrides:
      getText in class ColumnLabelProvider
    • 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 be null
      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 be null
      languageCode - the language code of configuration editing language by project, may be null
      scriptVariant - the script variant, can not be null
      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 be null
      Returns:
      the command group image, can not be null