Class FactoryServiceProvider

    • Constructor Detail

      • FactoryServiceProvider

        public FactoryServiceProvider()
        Creates new instance of this with factories contributed to extension point and a few default factories
    • Method Detail

      • createVariables

        public final List<IVariable> createVariables​(String language,
                                                     String pattern,
                                                     IVariableFinder finder,
                                                     org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context)
        Description copied from interface: IFactoryServiceProvider
        Creates variables for given parameters
        Specified by:
        createVariables in interface IFactoryServiceProvider
        Parameters:
        language - The language that variables are created for, cannot be null
        pattern - The pattern of the template, cannot be null
        finder - The finder to find variable occurrences, cannot be null
        context - The context of content assist invocation, cannot be null
        Returns:
        The list of created variables, cannot be null
      • collectDefaultFactories

        protected Collection<? extends IVariableFactory> collectDefaultFactories()
        Creates collection of default factories
        Returns:
        The collection of default factories, cannot be null
      • collectContributedFactories

        protected Collection<? extends IVariableFactory> collectContributedFactories()
        Creates collection of contributed factories
        Returns:
        The collection of contributed factories, cannot be null