Class CommandGroupLabelProvider

    • 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 be null
        v8project - the V8 project, cannot be null
    • Method Detail

      • 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