Class BslTemplateProposalProvider

  • All Implemented Interfaces:
    org.eclipse.xtext.ui.editor.contentassist.ITemplateProposalProvider

    public class BslTemplateProposalProvider
    extends TemplateProposalProvider
    Built-in Language implementation of TemplateProposalProvider
    • Constructor Detail

      • BslTemplateProposalProvider

        public BslTemplateProposalProvider()
    • Method Detail

      • getStorageManager

        protected TemplateStorageManager getStorageManager​(org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context)
        Description copied from class: TemplateProposalProvider
        Returns storage manager of templates
        Specified by:
        getStorageManager in class TemplateProposalProvider
        Parameters:
        context - The provided context, cannot be null
        Returns:
        The instance of template storage manager, cannot be null
      • hasAcceptablePrefix

        protected boolean hasAcceptablePrefix​(org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context,
                                              ITemplate template)
        Description copied from class: TemplateProposalProvider
        Checks if prefix is acceptable in given context for given template
        Overrides:
        hasAcceptablePrefix in class TemplateProposalProvider
        Parameters:
        context - The context of invocation, cannot be null
        template - The template to check, cannot be null
        Returns:
      • comparePrefixes

        protected int comparePrefixes​(String prefix1,
                                      String prefix2,
                                      String name)
        Description copied from class: TemplateProposalProvider
        Compares prefixes to get the most common one for given string
        Overrides:
        comparePrefixes in class TemplateProposalProvider
        Parameters:
        prefix1 - The first prefix, cannot be null
        prefix2 - The second prefix, cannot be null
        name - The string to find the most common prefix for, cannot be null
        Returns: