Class FactoryServiceProvider
- java.lang.Object
-
- com.e1c.g5.v8.dt.lcore.ui.templates.contentassist.parsing.FactoryServiceProvider
-
- All Implemented Interfaces:
IFactoryServiceProvider
public class FactoryServiceProvider extends Object implements IFactoryServiceProvider
This class provides service for creating variables for certain languages
-
-
Constructor Summary
Constructors Constructor Description FactoryServiceProvider()
Creates new instance of this with factories contributed to extension point and a few default factories
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Collection<? extends IVariableFactory>
collectContributedFactories()
Creates collection of contributed factoriesprotected Collection<? extends IVariableFactory>
collectDefaultFactories()
Creates collection of default factoriesList<IVariable>
createVariables(String language, String pattern, IVariableFinder finder, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context)
Creates variables for given parametersList<IVariablePresentation>
getPresentations(String language)
Returns the presentations maintained by this service for given language
-
-
-
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 interfaceIFactoryServiceProvider
- Parameters:
language
- The language that variables are created for, cannot benull
pattern
- The pattern of the template, cannot benull
finder
- The finder to find variable occurrences, cannot benull
context
- The context of content assist invocation, cannot benull
- Returns:
- The list of created variables, cannot be
null
-
getPresentations
public final List<IVariablePresentation> getPresentations(String language)
Description copied from interface:IFactoryServiceProvider
Returns the presentations maintained by this service for given language- Specified by:
getPresentations
in interfaceIFactoryServiceProvider
- Parameters:
language
- The language to get presentations for, cannot benull
- Returns:
- The list of presentations associated with given language, 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
-
-